From 326e90752c6e6f6138abdd6ac319a9b507f04121 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Wed, 20 Sep 2023 14:25:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E4=BB=B6=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=93=20=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/listEditModel.vue | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/listEditModel.vue b/jero-web/src/views/projectManagement/components/listEditModel.vue index 70862e23c..5978a03ed 100644 --- a/jero-web/src/views/projectManagement/components/listEditModel.vue +++ b/jero-web/src/views/projectManagement/components/listEditModel.vue @@ -812,6 +812,7 @@ DeliverableTreeList: [], userInfoQuery: {}, rejectCauseList: [], + platformIds: [], dutyTerritoryList: [] } }, @@ -834,8 +835,34 @@ this.selectedRowKeys = value }, disassociate(val){ - this.dataList = this.dataList.splice(val.id, 1) - console.log(this.dataList) + let _this = this + this.$confirm({ + title: _this.$t('whether') + _this.$t('disassociate') + '?', + content: '', + onOk: + async () => { + _this.platformIds.push(val.id) + _this.dataList = _this.dataList.filter(item => item.id !== val.id); + _this.dataList = [..._this.dataList] + console.log(this.platformIds) + if(this.platformIds){ + this.formInline.platformIds = this.platformIds.join(',') + } + this.formInline.designDutyIdName = this.dataList && this.dataList.length>0 ? this.dataList[0].designDutyIdName : '' + this.formInline.verifyDutyIdName = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyDutyIdName : '' + this.formInline.designDueDate = this.dataList && this.dataList.length>0 ? this.dataList[0].designDueDate : '' + this.formInline.verifyDueDate = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyDueDate : '' + this.formInline.designDeliverableTemplate = this.dataList && this.dataList.length>0 ? this.dataList[0].designDeliverableTemplate : '' + this.formInline.verifyDeliverableTemplate = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyDeliverableTemplate : '' + this.formInline.designDutyDueDate = this.dataList && this.dataList.length>0 ? this.dataList[0].designDutyDueDate : '' + this.formInline.verifyDutyDueDate = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyDutyDueDate : '' + this.formInline.designRemark = this.dataList && this.dataList.length>0 ? this.dataList[0].designRemark : '' + this.formInline.verifyRemark = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyRemark : '' + this.formInline.designDeliverableType = this.dataList && this.dataList.length>0 ? this.dataList[0].designDeliverableType.split(',') : [] + this.formInline.verifyDeliverableType = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyDeliverableType.split(',') : [] + this.formInline = {...this.formInline} + } + }) }, isEdit(val) { // if (val.designFlowStatus == 'Task to be confirmed' || val.designFlowStatus == 'Results to be submitted' ||