From 00497536629565d93e306f8ac112365aa5f75082 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 14 May 2024 10:03:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B9=9D=E5=B0=8F=E5=9C=BA=E6=89=80?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E7=B1=BB=E5=9E=8B=E6=94=B9=E6=88=90=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/resourceManagement/enterprise/addForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/resourceManagement/enterprise/addForm.vue b/src/views/modules/resourceManagement/enterprise/addForm.vue index 413e1bc2a..d3d527f62 100644 --- a/src/views/modules/resourceManagement/enterprise/addForm.vue +++ b/src/views/modules/resourceManagement/enterprise/addForm.vue @@ -347,7 +347,7 @@ export default { chargePerson:'', mobile:'', nineSmallPlacesFlag:'', - nineSmallPlacesCategory:[] + nineSmallPlacesCategory:'' }, dataRule: { agencyId: [{ required: true, message: '所属组织不能为空', trigger: 'blur' }], From 290a680837b6a3cdb1d235f274273e02fdbc81bd Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 14 May 2024 12:45:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=B7=B2=E5=AD=98=E5=9C=A8=E9=9A=90?= =?UTF-8?q?=E6=82=A3=E9=80=89=E4=B8=AD=E7=8A=B6=E6=80=81=E4=B8=8D=E5=8F=98?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resourceManagement/enterprise/addForm.vue | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/views/modules/resourceManagement/enterprise/addForm.vue b/src/views/modules/resourceManagement/enterprise/addForm.vue index d3d527f62..b6d81bc53 100644 --- a/src/views/modules/resourceManagement/enterprise/addForm.vue +++ b/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); } },