diff --git a/jero-web/src/components/PersonnelSelection/index.vue b/jero-web/src/components/PersonnelSelection/index.vue index 7a7ca0779..1e541beb1 100644 --- a/jero-web/src/components/PersonnelSelection/index.vue +++ b/jero-web/src/components/PersonnelSelection/index.vue @@ -32,6 +32,7 @@ checkable :loading="loading" :tree-data="gData" + v-model:checkedKeys="selectedKey" @select="onSelect" @check="onCheck" @expand="onExpand" @@ -69,7 +70,7 @@ userIds: [], searchModel:'', defaultExpandedKeys: [], - defaultCheckedKeys: [] + defaultCheckedKeys: [], } }, mounted() { @@ -167,6 +168,7 @@ this.gData = res.result this.defaultExpandedKeys = [this.departId] this.defaultCheckedKeys = this.personneQuery[this.query.db_field_name + '_id'] ? this.personneQuery[this.query.db_field_name + '_id'].split(',') : [] + this.selectedKey = this.personneQuery[this.query.db_field_name + '_id'] ? this.personneQuery[this.query.db_field_name + '_id'].split(',') : [] console.log(this.defaultCheckedKeys) this.treeVisible = true } else { diff --git a/jero-web/src/components/SplitImport/index.vue b/jero-web/src/components/SplitImport/index.vue index d26d54337..f616626eb 100644 --- a/jero-web/src/components/SplitImport/index.vue +++ b/jero-web/src/components/SplitImport/index.vue @@ -1,5 +1,5 @@