From 7e0c7b3c1d18497e194d951fa0431b332afe3631 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Thu, 11 May 2023 14:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=8D=89=E7=A8=BF=E9=87=8D=E5=A4=8D=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/permissionApplication/launch.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/permissionApplication/launch.vue b/src/views/permissionApplication/launch.vue index db27879..19425dc 100644 --- a/src/views/permissionApplication/launch.vue +++ b/src/views/permissionApplication/launch.vue @@ -245,6 +245,7 @@ export default { newParams=this.tableData.map(item=>{ let obj={} obj={ + id:'', prcName:item.name, prcType:item.power==0?'':item.power, createUser:this.userId, @@ -252,7 +253,8 @@ export default { userId:this.userId, dataJson:'', bpnId: this.$store.getters.handleProcess?.id, - reportId: item.reportId + reportId: item.reportId, + } let submitJson={ oneApprove:item.oneApprove, @@ -279,10 +281,16 @@ export default { // 保存 handleSave(){ this.saveLoading = true - + if(this.tableData.length==0){ + this.$message.warning('至少需要选择一条报告数据') + return + } // 处理表格数据 - this.organizeData() - + this.organizeData() + this.params=this.params.map(item=>{ + item.id = this.$store.getters.handleProcess?.id + return item + }) this.saveProcessALL(this.params).then( ()=>{ this.saveLoading = false