fix 80960
This commit is contained in:
@@ -65,7 +65,16 @@ export const WorkCenterMixin = {
|
|||||||
// 节点1的草稿回显人员信息
|
// 节点1的草稿回显人员信息
|
||||||
draftInitPersonInfo (personInfoObj) {
|
draftInitPersonInfo (personInfoObj) {
|
||||||
console.log('(((((((((((((draftInitPersonInfo)))))))))))')
|
console.log('(((((((((((((draftInitPersonInfo)))))))))))')
|
||||||
this.personnelInfoData = this.personnelInfoData.map(item => {
|
this.personnelInfoData = this.personnelInfoData.map((item, index) => {
|
||||||
|
// 如果是从草稿进入的保存,只有第一个节点和可以选择的节点需要回显
|
||||||
|
if (this.$route.query.draftId) {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
linkUserIds: index === 0 || item.canChoose === 1 ? personInfoObj[item.variableName] || item.linkUserIds : null,
|
||||||
|
linkUserIds_dictText: index === 0 || item.canChoose === 1 ? personInfoObj[item.variableName + '_dictText'] : null,
|
||||||
|
userList: index === 0 || item.canChoose === 1 ? personInfoObj[item.variableName + '_dictText'] : null
|
||||||
|
}
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
linkUserIds: personInfoObj[item.variableName] || item.linkUserIds,
|
linkUserIds: personInfoObj[item.variableName] || item.linkUserIds,
|
||||||
@@ -85,6 +94,6 @@ export const WorkCenterMixin = {
|
|||||||
},
|
},
|
||||||
switchChange (value) {
|
switchChange (value) {
|
||||||
this.switchValue = value
|
this.switchValue = value
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user