diff --git a/src/mixins/WorkCenterMixin.js b/src/mixins/WorkCenterMixin.js index 35d9fb0f..0a6f256a 100644 --- a/src/mixins/WorkCenterMixin.js +++ b/src/mixins/WorkCenterMixin.js @@ -34,15 +34,26 @@ export const WorkCenterMixin = { } }) }, - // 待办中进入不是第一个节点时需要初始化人员信息数据,并且都不可选 - initPersonInfoData () { - this.personnelInfoData = this.personnelInfoData.map(item => { - return { - ...item, - userList: item.linkUserIds_dictText, - canChoose: 0 - } - }) + // 待办中进入时需要初始化人员信息数据 + initPersonInfoData (isFirstNode) { + if (isFirstNode) { + // 是第一个节点,回显数据 + this.personnelInfoData = this.personnelInfoData.map(item => { + return { + ...item, + userList: item.linkUserIds_dictText + } + }) + } else { + // 不是第一个节点,回显数据,都不可选人 + this.personnelInfoData = this.personnelInfoData.map(item => { + return { + ...item, + userList: item.linkUserIds_dictText, + canChoose: 0 + } + }) + } }, // 操作完成返回 goBack () {