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)