[update] 流程回显人员信息

This commit is contained in:
lideqin
2023-11-09 15:49:09 +08:00
parent 370f59d7bd
commit f59b63f011
+20 -9
View File
@@ -34,15 +34,26 @@ export const WorkCenterMixin = {
} }
}) })
}, },
// 待办中进入不是第一个节点时需要初始化人员信息数据,并且都不可选 // 待办中进入时需要初始化人员信息数据
initPersonInfoData () { initPersonInfoData (isFirstNode) {
this.personnelInfoData = this.personnelInfoData.map(item => { if (isFirstNode) {
return { // 是第一个节点,回显数据
...item, this.personnelInfoData = this.personnelInfoData.map(item => {
userList: item.linkUserIds_dictText, return {
canChoose: 0 ...item,
} userList: item.linkUserIds_dictText
}) }
})
} else {
// 不是第一个节点,回显数据,都不可选人
this.personnelInfoData = this.personnelInfoData.map(item => {
return {
...item,
userList: item.linkUserIds_dictText,
canChoose: 0
}
})
}
}, },
// 操作完成返回 // 操作完成返回
goBack () { goBack () {