|
|
@ -7,7 +7,7 @@ |
|
|
|
<div>{{ viewTitle }}</div> |
|
|
|
<!--start 添加修改按钮--> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" @click="handleSave()">提交</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">提交</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -202,15 +202,14 @@ export default { |
|
|
|
// this.$message({ showClose: true, type: 'error', message: '请填写巡检情况说明' }) |
|
|
|
// return |
|
|
|
// } |
|
|
|
if (this.formobj.images.length === 0) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请上传相关照片' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.submitdisabled = true |
|
|
|
if (this.formobj.images.length === 0) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请上传相关照片' }) |
|
|
|
return |
|
|
|
} |
|
|
|
req.saveInspection(this.formobj).then((resp) => { |
|
|
|
this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
@ -253,6 +252,7 @@ export default { |
|
|
|
images: [] |
|
|
|
} |
|
|
|
this.list1 = [] |
|
|
|
this.submitdisabled = false |
|
|
|
this.$refs['form_obj'].resetFields() |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|