调整人员组件

This commit is contained in:
aixianling
2021-12-24 13:58:43 +08:00
parent 91f3f7ba36
commit ce486fd9e0
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ export default {
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
res.data.records.forEach(e => { res.data.records.forEach(e => {
e.isCheck = this.selected.includes(e.id) e.isCheck = this.selected.includes(e.idNumber)
}) })
if (this.current > 1 && this.current > res.data.pages) { if (this.current > 1 && this.current > res.data.pages) {
return return

View File

@@ -17,7 +17,7 @@ export default {
props: { props: {
value: {default: ""}, value: {default: ""},
type: {default: "resident"}, type: {default: "resident"},
nodeKey: {default: "id"}, nodeKey: {default: "idNumber"},
selected: {default: () => []}, selected: {default: () => []},
placeholder: {default: "选择人员"} placeholder: {default: "选择人员"}
}, },