|
@@ -32,6 +32,7 @@
|
|
|
-->
|
|
|
<template>
|
|
|
<el-dialog class="safetyHazard-info-dialog-box" @close="outDialog"
|
|
|
+ v-loading="loading"
|
|
|
:title="infoDialogData.checkHazardApplyDto.rectifyStatus==1?'已完成':(infoDialogData.checkHazardApplyDto.rectifyStatus==2?'待整改':(infoDialogData.checkHazardApplyDto.rectifyStatus==3?'待复核':(infoDialogData.checkHazardApplyDto.rectifyStatus==4?'暂无法整改':'')))"
|
|
|
:visible.sync="infoDialogType" v-if="infoDialogType"
|
|
|
width="1184px" append-to-body>
|
|
@@ -262,6 +263,7 @@
|
|
|
<p class="for-del-button el-icon-circle-close" @click="delImg(imgIndex)"></p>
|
|
|
</div>
|
|
|
<el-upload
|
|
|
+ v-if="addForm.uploadDtoList.length<5"
|
|
|
style="display: inline-block;overflow: hidden"
|
|
|
class="avatar-uploader"
|
|
|
:action="uploadImgUrl"
|
|
@@ -352,6 +354,7 @@
|
|
|
},
|
|
|
data(){
|
|
|
return{
|
|
|
+ loading:false,
|
|
|
upDataName:"",
|
|
|
uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
|
|
|
headers: {
|
|
@@ -536,6 +539,7 @@
|
|
|
},
|
|
|
/*==========上传相关==========*/
|
|
|
handleAvatarSuccess(res,item) {
|
|
|
+ this.$set(this,'loading',false);
|
|
|
if(item.uploadDtoList.length>4){
|
|
|
this.msgError('最多只可上传5张')
|
|
|
return
|
|
@@ -566,10 +570,11 @@
|
|
|
this.msgError('上传图片大小不能超过2M')
|
|
|
return false
|
|
|
}
|
|
|
+ this.$set(this,'loading',true);
|
|
|
this.upDataName = file.name;
|
|
|
type = true;
|
|
|
}else{
|
|
|
- this.msgError('png/jpeg/gif格式')
|
|
|
+ this.msgError('仅支持jpg/png/bmp/gif格式')
|
|
|
type = false;
|
|
|
}
|
|
|
return type;
|
|
@@ -585,8 +590,8 @@
|
|
|
//多次名称匹配
|
|
|
frequencyCalculation(length,type){
|
|
|
let textList = [
|
|
|
- {value:'二次',key:'2'},{value:'三次',key:'3'},{value:'四次',key:'4'},{value:'五次',key:'5'}, {value:'六次',key:'6'}, {value:'七次',key:'7'},
|
|
|
- {value:'八次',key:'8'},{value:'九次',key:'9'},{value:'十次',key:'10'}
|
|
|
+ {value:'二次',key:'2'},{value:'三次',key:'3'},{value:'四次',key:'4'},{value:'五次',key:'5'}, {value:'六次',key:'6'},
|
|
|
+ {value:'七次',key:'7'},{value:'八次',key:'8'},{value:'九次',key:'9'},{value:'十次',key:'10'}
|
|
|
]
|
|
|
let num = type === 2?Math.ceil(length/2):Math.floor(length/2)
|
|
|
if(type == 1){
|