From 6cd9c01b388c018e294f1764f0588bbee163fa03 Mon Sep 17 00:00:00 2001 From: danshihao Date: Tue, 16 Jul 2024 16:40:47 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=A0=87=E5=87=86=E8=A7=A3=E8=AF=BB?= =?UTF-8?q?=E6=B5=81=E7=A8=8B]=20=E5=8F=91=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardInterpretationProcess.vue | 6 +++++- .../modules/InterpretationInitiate.vue | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue index 7c4ee44..ad0eac8 100644 --- a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue +++ b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue @@ -403,8 +403,12 @@ export default { if (this.isInitiate) { const standardData = compData.standardData[0] || {} const formData = this.info.data && this.info.data.processStandardInterpret + // 发起节点id和标准id一样,就把id删了 + if (standardData.id === standardData.standardId) { + delete standardData.id + } // 选择的标准数据 - params.data.processStandardInterpret = Object.assign({}, formData, { + params.data.processStandardInterpret = Object.assign({}, formData, standardData, { // 分解单来源 decompositionSource: standardData.decompositionSource, // 标准id diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue index 23a7590..2b330c5 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue @@ -192,7 +192,10 @@ export default { }, // 更新组件内的数据 setData (data) { - this.dataSource = [data.data.processStandardInterpret] + const info = data.data.processStandardInterpret + if (info.standardId) { + this.dataSource = [info] + } // 有数据更新下拉菜单 if (this.dataSource.length) { this.initInterpretGetFileByStandardId(this.dataSource[0].standardId)