[update 标准解读流程] 发起

This commit is contained in:
danshihao
2024-07-16 16:40:47 +08:00
parent d9f603e690
commit 6cd9c01b38
2 changed files with 9 additions and 2 deletions
@@ -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
@@ -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)