Merge branch 'bjxz-dev' of http://139.9.66.234:18023/dhp/zhgdyun into bjxz-dev

This commit is contained in:
kun 2024-06-14 20:09:02 +08:00
commit dd7ef882b5
4 changed files with 633 additions and 1550 deletions

View File

@ -72,7 +72,7 @@ export default {
IdCardHead: '身份证头像', IdCardHead: '身份证头像',
spotFaceCollection: '现场采集人脸', spotFaceCollection: '现场采集人脸',
// '现场采集人脸要求人脸正面免冠照jpeg或jpg格式图片像素需为640x480像素或以上图片大小需不超过500KB,人脸眼间距需大于60像素点' // '现场采集人脸要求人脸正面免冠照jpeg或jpg格式图片像素需为640x480像素或以上图片大小需不超过500KB,人脸眼间距需大于60像素点'
imgHint: '现场采集人脸要求:人脸正面免冠照,jpg格式图片像素需为640x480像素或以上图片大小需为10-200KB,人脸大小占整张图片1/3以上', imgHint: '现场采集人脸要求:人脸正面免冠照,图片格式为jpg格式、大小为10~200KB人脸大小占整张图片1/3以上',
cancel: '取消', cancel: '取消',
confirm: '确定', confirm: '确定',
noData: '暂无数据', noData: '暂无数据',

View File

@ -1888,7 +1888,7 @@
<!-- </div> --> <!-- </div> -->
</div> </div>
<el-upload <el-upload
accept=".jpg, .jpeg" accept=".jpg"
class="upload-demo" class="upload-demo"
action="uploadUrl" action="uploadUrl"
:on-remove="(file) => handleRemove(file, 7)" :on-remove="(file) => handleRemove(file, 7)"
@ -2204,6 +2204,8 @@
:autoCropHeight="cropperOption.autoCropHeight" :autoCropHeight="cropperOption.autoCropHeight"
:autoCrop="true" :autoCrop="true"
:fixedBox="true" :fixedBox="true"
:outputSize="0.7"
:maxImgSize="300"
></vueCropper> ></vueCropper>
<!-- </vue-scroll> --> <!-- </vue-scroll> -->
</div> </div>
@ -3969,12 +3971,19 @@ export default {
this.$message.error(this.$t("message.companyDiagram.uploadMsg")); // this.$message.error(this.$t("message.companyDiagram.uploadMsg")); //
return false; return false;
} else if (type == 7) { } else if (type == 7) {
console.log(file)
if ( if (
file.type != "image/jpeg" && file.type != "image/jpeg" &&
file.type != "image/jpg" file.type != "image/jpg"
// file.type != "image/png" // file.type != "image/png"
) { ) {
this.$message.error(this.$t("message.laborMange.hint8")); //"jpgjpeg" this.$message.error(this.$t("请上传jpg格式图片")); //"jpgjpeg"
return false;
}
let imgSize = Number(file.size / 1024);
console.log(11111111, imgSize)
if (imgSize <= 10 || imgSize >= 200) {
this.$message.error("文件大小不能超过200kb小于10kb,请重新上传!")
return false; return false;
} }
} }

View File

@ -1209,8 +1209,8 @@ export default {
...res.result, ...res.result,
// xzGasAnalyzeList: res.result.xzGasAnalyzeList, // xzGasAnalyzeList: res.result.xzGasAnalyzeList,
hotWorkExecutionTime: [ hotWorkExecutionTime: [
res.result.workExecutionBeginTime ? res.result.workExecutionBeginTime : "", res.result.actualJobBeginTime ? res.result.actualJobBeginTime : "",
res.result.workExecutionEndTime ? res.result.workExecutionEndTime: "", res.result.actualJobEndTime ? res.result.actualJobEndTime: "",
], ],
}; };
if (this.workDetail.fieldWorkingEnvironment) { if (this.workDetail.fieldWorkingEnvironment) {