|
|
@ -794,7 +794,7 @@ export default {
|
|
|
|
checkType: [ { required: true,message: "排查方式必须选择", trigger: 'blur'}],
|
|
|
|
checkType: [ { required: true,message: "排查方式必须选择", trigger: 'blur'}],
|
|
|
|
/* isTowns: [ { required: true,message: "是否乡镇(街道必须选择", trigger: 'blur'}],*/
|
|
|
|
/* isTowns: [ { required: true,message: "是否乡镇(街道必须选择", trigger: 'blur'}],*/
|
|
|
|
status: [ { required: true,message: "整改进度必须选择", trigger: 'blur'}],
|
|
|
|
status: [ { required: true,message: "整改进度必须选择", trigger: 'blur'}],
|
|
|
|
// rectifyMeasure: [ { type: 'string',required: true,message: "整改措施必填", trigger: 'blur'}],
|
|
|
|
rectifyMeasure: [ { type: 'string',required: true,message: "整改措施必填", trigger: 'blur'}],
|
|
|
|
// rectifyTime: [ { type: 'date',required: true,message: "整改时间必填", trigger: 'blur'}],
|
|
|
|
// rectifyTime: [ { type: 'date',required: true,message: "整改时间必填", trigger: 'blur'}],
|
|
|
|
hiddenDangerImg: [{required:true,message: "隐患照片必填", trigger: 'blur'}],
|
|
|
|
hiddenDangerImg: [{required:true,message: "隐患照片必填", trigger: 'blur'}],
|
|
|
|
rectifyImg: [{ validator: this.validateRectifyImg,message: "整改照片必填", trigger: 'blur'}],
|
|
|
|
rectifyImg: [{ validator: this.validateRectifyImg,message: "整改照片必填", trigger: 'blur'}],
|
|
|
@ -1018,7 +1018,7 @@ export default {
|
|
|
|
validateRectifyImg(rule, value, callback) {
|
|
|
|
validateRectifyImg(rule, value, callback) {
|
|
|
|
if (this.form.status == 10 && !value) {
|
|
|
|
if (this.form.status == 10 && !value) {
|
|
|
|
callback(new Error('整改照片是必填项'));
|
|
|
|
callback(new Error('整改照片是必填项'));
|
|
|
|
this.$message.warning('整改照片不能为空!');
|
|
|
|
this.$message.error('整改照片不能为空!');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
callback();
|
|
|
|
callback();
|
|
|
|
}
|
|
|
|
}
|
|
|
|