Browse Source

已存在隐患选中状态不变问题修改

feature
mk 2 years ago
parent
commit
290a680837
  1. 15
      src/views/modules/resourceManagement/enterprise/addForm.vue

15
src/views/modules/resourceManagement/enterprise/addForm.vue

@ -550,18 +550,10 @@ export default {
for(let i in this.hiddenDangeArr){
this.checkboxOptions.forEach(item => {
if(item.value == this.hiddenDangeArr[i]){
item.hazardStatus = '0';
this.$set(item,'hazardStatus', '1');
}
})
}
for (let i in this.checkboxOptions) {
let option = this.checkboxOptions[i];
if (this.patrolForm.checkResultFlag === '1') {
option.hazardStatus = '1';
} else if (this.patrolForm.checkResultFlag === '0') {
option.hazardStatus = '0';
}
}
for (let i in this.inputList) {
let option = this.inputList[i];
if (this.patrolForm.checkResultFlag === '1') {
@ -577,13 +569,12 @@ export default {
params.companyId = this.detailId;
params.attachmentUrls = this.fileList;
}
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.$message.success('操作成功');
this.handleCancle();
} else if (code >= 8000) {
this.$message.error(msg);
} else if (code >= 8000) {
this.$message.error(msg);
}
},

Loading…
Cancel
Save