|
|
@@ -203,7 +203,7 @@ export default {
|
|
|
handleNodeClick(data) {
|
|
|
this.currentData = data
|
|
|
this.staffList = [];
|
|
|
-
|
|
|
+ this.pageNum = 1;
|
|
|
this.form.groupId = data.id;
|
|
|
let params = {
|
|
|
pageNum: 1,
|
|
|
@@ -215,7 +215,7 @@ export default {
|
|
|
},
|
|
|
changeUserName() {
|
|
|
this.staffList = [];
|
|
|
-
|
|
|
+ this.pageNum = 1;
|
|
|
this.form.groupId = this.currentData.id;
|
|
|
let params = {
|
|
|
pageNum: 1,
|
|
|
@@ -229,11 +229,7 @@ export default {
|
|
|
async getStaffList(params) {
|
|
|
let res = await getUserPage(params);
|
|
|
let list = res.list;
|
|
|
- if (list.length < res.count) {
|
|
|
- this.isMore = true;
|
|
|
- } else {
|
|
|
- this.isMore = false;
|
|
|
- }
|
|
|
+
|
|
|
list.forEach((el) => {
|
|
|
let _index = this.selectStafflist.findIndex((n) => n.id == el.id);
|
|
|
if (_index !== -1) {
|
|
|
@@ -243,6 +239,11 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.staffList = [...this.staffList, ...list];
|
|
|
+ if (this.staffList.length < res.count) {
|
|
|
+ this.isMore = true;
|
|
|
+ } else {
|
|
|
+ this.isMore = false;
|
|
|
+ }
|
|
|
// this.pageNum = res.pageNum;
|
|
|
},
|
|
|
//查询更多员工
|