Browse Source

Merge branch 'lisu_V4' of http://120.46.222.128:10021/elink-star/epmet-work-pc into lisu_V4

feature
是小王呀\24601 1 year ago
parent
commit
65631d9c4a
  1. 17
      src/views/modules/resourceManagement/enterprise/addForm.vue

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

@ -347,7 +347,7 @@ export default {
chargePerson:'', chargePerson:'',
mobile:'', mobile:'',
nineSmallPlacesFlag:'', nineSmallPlacesFlag:'',
nineSmallPlacesCategory:[] nineSmallPlacesCategory:''
}, },
dataRule: { dataRule: {
agencyId: [{ required: true, message: '所属组织不能为空', trigger: 'blur' }], agencyId: [{ required: true, message: '所属组织不能为空', trigger: 'blur' }],
@ -561,18 +561,10 @@ export default {
for(let i in this.hiddenDangeArr){ for(let i in this.hiddenDangeArr){
this.checkboxOptions.forEach(item => { this.checkboxOptions.forEach(item => {
if(item.value == this.hiddenDangeArr[i]){ 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) { for (let i in this.inputList) {
let option = this.inputList[i]; let option = this.inputList[i];
if (this.patrolForm.checkResultFlag === '1') { if (this.patrolForm.checkResultFlag === '1') {
@ -588,13 +580,12 @@ export default {
params.companyId = this.detailId; params.companyId = this.detailId;
params.attachmentUrls = this.fileList; params.attachmentUrls = this.fileList;
} }
const { data, code, msg } = await requestPost(url, params); const { data, code, msg } = await requestPost(url, params);
if (code === 0) { if (code === 0) {
this.$message.success('操作成功'); this.$message.success('操作成功');
this.handleCancle(); this.handleCancle();
} else if (code >= 8000) { } else if (code >= 8000) {
this.$message.error(msg); this.$message.error(msg);
} }
}, },

Loading…
Cancel
Save