From 5d6e6919d57dc118175d24f0185a02f971e14620 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Mon, 27 Mar 2023 21:21:08 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=BF=E7=AD=96=E6=89=BE=E4=BA=BA?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3=E5=AD=97=E6=AE=B5=E8=81=94?= =?UTF-8?q?=E8=B0=83"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit d5ba85a3e927b847fc8412f53a32ac8a5fc09d45. --- .../modules/communityService/gxxq/addForm.vue | 1 + .../communityService/policy/addPolicy.vue | 18 ++++-------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/views/modules/communityService/gxxq/addForm.vue b/src/views/modules/communityService/gxxq/addForm.vue index da2695acc..9ef5544c1 100644 --- a/src/views/modules/communityService/gxxq/addForm.vue +++ b/src/views/modules/communityService/gxxq/addForm.vue @@ -731,6 +731,7 @@ export default { isOk = true; }else{ isOk = false; + console.log( this.newArr,'没有清空?'); this.$message.error("请选择正确的网格,社区,楼栋!"); return } diff --git a/src/views/modules/communityService/policy/addPolicy.vue b/src/views/modules/communityService/policy/addPolicy.vue index b914a5723..7dd73bcd0 100644 --- a/src/views/modules/communityService/policy/addPolicy.vue +++ b/src/views/modules/communityService/policy/addPolicy.vue @@ -797,27 +797,17 @@ export default { async addFuwu() { // 处理服务范围数据 await this.operationOption(); - console.log( this.fileList); - - let arr = [] - this.fileList.forEach(item=>{ - arr.push({ - name: item.attachmentName, - type: item.attachmentFormat, - duration :0, - url: item.attachmentUrl, - format:item.attachmentType, - }) - }) - this.formData.attachmentList = arr - console.log( this.formData.attachmentList ); + this.formData.attachmentList = [...this.fileList]; + this.formData.assignInfo = this.newFormData; let url = "/governance/policy/addPolicy"; if (this.formType === "add" || this.formType === "copy") { url = "/governance/policy/addPolicy"; + this.formData.policyId = ""; } else { url = "/heart/policy/update"; + this.formData.policyId = this.policyId; } // const url = 'http://yapi.elinkservice.cn/mock/245/heart/icServiceProject/service/initiate'