From c1c332c6ee4d50c910a1360459d006f8b6cbe1f4 Mon Sep 17 00:00:00 2001 From: zyn Date: Tue, 29 Aug 2023 13:41:31 +0800 Subject: [PATCH] =?UTF-8?q?:=E4=BF=AE=E6=94=B9=E6=A0=87=E5=87=86=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E6=B5=81=E7=A8=8B=E4=B8=AD=E5=AD=97=E6=AE=B5=E5=A4=9A?= =?UTF-8?q?=E5=87=BA=E9=80=97=E5=8F=B7=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbrk/stepC6.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/stepC6.vue b/src/pages/processCenter/pages/creatProcess/qbrk/stepC6.vue index 0930c1586..b1451741d 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/stepC6.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/stepC6.vue @@ -2820,7 +2820,19 @@ this.saveLoading = false }) }, + formatList (list) { + return list.filter(item => (item.id || (item.response && item.response.data && item.response.data.id))) + }, + formatAllList () { + this.FBGBUSSFileList = this.formatList(this.FBGBUSSFileList) + this.BZSMBUSSFileList = this.formatList(this.BZSMBUSSFileList) + this.LSBBBUSSFileList = this.formatList(this.LSBBBUSSFileList) + this.QTWJBUSSFileList = this.formatList(this.QTWJBUSSFileList) + this.GLWJBUSSFileList = this.formatList(this.GLWJBUSSFileList) + this.summaryFileList = this.formatList(this.summaryFileList) + }, fileInfoHandle(){ + this.formatAllList() //拼接文件名和id 提交到流程Activity @@ -2834,12 +2846,6 @@ this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",") // this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.id).join(",") - this.LSBBBUSSFileList = this.LSBBBUSSFileList.reduce((init,item)=>{ - if(item.id || (item.response && item.response.data &&item.response.data.id)){ - init.push(item) - } - return init - },[]) this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.id ? item.id : item.response.data.id).join(",") this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")