BUG 30372

This commit is contained in:
aixianling
2022-06-27 17:41:44 +08:00
parent 7b3fcef56e
commit 0ac30e762e

View File

@@ -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()
}
})