From d256b7e608d2106c7ae1d90e5134f3057a492788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 19 Oct 2023 14:38:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=94=BF=E7=AD=96=E5=BE=81?= =?UTF-8?q?=E6=B1=82=E6=84=8F=E8=A7=81=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../creatProcess/policyConsultation/components/addModel.vue | 4 +--- .../policyConsultation/components/solicitationList.vue | 6 +++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue index 2dd6cd68f..91e823422 100644 --- a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue @@ -233,8 +233,6 @@ this.$refs.processFileRef.getFile(this.sarStandardsInfoEO[this.fileListName]) }, uploadSuccess(fileList, fileId) { - console.log(fileList); - console.log(fileId); this.sarStandardsInfoEO[this.fileListName] = fileList this.sarStandardsInfoEO[this.fileName] = fileId this.sarStandardsInfoEO = {...this.sarStandardsInfoEO} @@ -262,7 +260,7 @@ return } let timestamp = new Date().getTime(); - if (!this.sarStandardsInfoEO.dataId) { + if (!this.sarStandardsInfoEO.dataId && !this.sarStandardsInfoEO.id) { this.sarStandardsInfoEO.dataId = timestamp } this.isSubmit = true diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue index b461f2cca..b9b56c28a 100644 --- a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue @@ -298,7 +298,11 @@ this.deleteList.push(val.id) } this.histortData = this.histortData.filter(res => { - return res.dataId != val.dataId + if (res.id) { + return res.id != val.id + } else { + return res.dataId != val.dataId + } }) }) this.histortData = [...this.histortData]