[update] 流程回显人员信息

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