diff --git a/packages/wxwork/AppMassNotification/components/SelectDeptUser.vue b/packages/wxwork/AppMassNotification/components/SelectDeptUser.vue index 58611384..48a1aaa4 100644 --- a/packages/wxwork/AppMassNotification/components/SelectDeptUser.vue +++ b/packages/wxwork/AppMassNotification/components/SelectDeptUser.vue @@ -108,7 +108,11 @@ export default { params: {departmentId, status: 1, cid} }).then(res => { if (res?.data) { - res.data = res.data.map(e => ({...e, kind: "user", checked: false})) + res.data = res.data.map(e => ({ + ...e, kind: "user", checked: this.selected.some(s => { + if (e.id == s.id) return true + }) + })) this.options = [this.options, res.data].flat() } })