[update 标准解读流程] 发起
This commit is contained in:
+5
-1
@@ -403,8 +403,12 @@ export default {
|
|||||||
if (this.isInitiate) {
|
if (this.isInitiate) {
|
||||||
const standardData = compData.standardData[0] || {}
|
const standardData = compData.standardData[0] || {}
|
||||||
const formData = this.info.data && this.info.data.processStandardInterpret
|
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,
|
decompositionSource: standardData.decompositionSource,
|
||||||
// 标准id
|
// 标准id
|
||||||
|
|||||||
+4
-1
@@ -192,7 +192,10 @@ export default {
|
|||||||
},
|
},
|
||||||
// 更新组件内的数据
|
// 更新组件内的数据
|
||||||
setData (data) {
|
setData (data) {
|
||||||
this.dataSource = [data.data.processStandardInterpret]
|
const info = data.data.processStandardInterpret
|
||||||
|
if (info.standardId) {
|
||||||
|
this.dataSource = [info]
|
||||||
|
}
|
||||||
// 有数据更新下拉菜单
|
// 有数据更新下拉菜单
|
||||||
if (this.dataSource.length) {
|
if (this.dataSource.length) {
|
||||||
this.initInterpretGetFileByStandardId(this.dataSource[0].standardId)
|
this.initInterpretGetFileByStandardId(this.dataSource[0].standardId)
|
||||||
|
|||||||
Reference in New Issue
Block a user