fix 80960

This commit is contained in:
赵霄
2024-01-17 16:00:26 +08:00
parent a809454cf8
commit e60a9897c3
+11 -2
View File
@@ -65,7 +65,16 @@ export const WorkCenterMixin = {
// 节点1的草稿回显人员信息
draftInitPersonInfo (personInfoObj) {
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 {
...item,
linkUserIds: personInfoObj[item.variableName] || item.linkUserIds,
@@ -85,6 +94,6 @@ export const WorkCenterMixin = {
},
switchChange (value) {
this.switchValue = value
},
}
}
}