|
@@ -161,6 +161,7 @@
|
|
|
methods: {
|
|
methods: {
|
|
|
open(selectedList) {
|
|
open(selectedList) {
|
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
|
|
|
+ this.pageNum = 1;
|
|
|
// this.selectStafflist = selectedList;
|
|
// this.selectStafflist = selectedList;
|
|
|
this.selectStafflist = selectedList.map((item) => {
|
|
this.selectStafflist = selectedList.map((item) => {
|
|
|
item.name = item.name ? item.name : item.recipientName;
|
|
item.name = item.name ? item.name : item.recipientName;
|
|
@@ -180,6 +181,10 @@
|
|
|
idField: 'id',
|
|
idField: 'id',
|
|
|
parentIdField: 'parentId'
|
|
parentIdField: 'parentId'
|
|
|
});
|
|
});
|
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
|
+ this.handleNodeClick(this.treeList[0])
|
|
|
|
|
+ this.$refs.tree.setCurrentKey(this.treeList[0].id)
|
|
|
|
|
+ })
|
|
|
//this.treeList = res.data;
|
|
//this.treeList = res.data;
|
|
|
},
|
|
},
|
|
|
//选择分类
|
|
//选择分类
|
|
@@ -198,7 +203,7 @@
|
|
|
async getStaffList(params) {
|
|
async getStaffList(params) {
|
|
|
let res = await getUserPage(params);
|
|
let res = await getUserPage(params);
|
|
|
let list = res.list;
|
|
let list = res.list;
|
|
|
- if (list.length < res.count) {
|
|
|
|
|
|
|
+ if (this.staffList.length < res.count) {
|
|
|
this.isMore = true;
|
|
this.isMore = true;
|
|
|
} else {
|
|
} else {
|
|
|
this.isMore = false;
|
|
this.isMore = false;
|