|
@@ -143,6 +143,7 @@
|
|
|
],
|
|
|
userData: [],
|
|
|
personId: [],
|
|
|
+ personIdArr: [],
|
|
|
radioStyle: {
|
|
|
display: 'block',
|
|
|
height: '40px',
|
|
@@ -216,6 +217,10 @@
|
|
|
this.getTreeData()
|
|
|
this.orgData = []
|
|
|
this.userData = []
|
|
|
+ this.queryParam.pageNo = 1
|
|
|
+ this.queryParam.pageSize = 10
|
|
|
+ this.personId = []
|
|
|
+ this.personIdArr = []
|
|
|
this.getOrgListByGroupId()
|
|
|
},
|
|
|
//组织结构
|
|
@@ -255,6 +260,8 @@
|
|
|
this.queryParam.pageNo = 1
|
|
|
this.queryParam.pageSize = 10
|
|
|
this.queryParam.params.groupId = data.pkId
|
|
|
+ this.personId = []
|
|
|
+ this.personIdArr = []
|
|
|
this.getOrgListByGroupId()
|
|
|
}
|
|
|
},
|
|
@@ -280,7 +287,7 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- getOrgListByGroupId() {
|
|
|
+ getOrgListByGroupId(arg = false) {
|
|
|
OsUserApi.getAllUserByGroupId(this.queryParam).then(res=> {
|
|
|
if(res.code == 200) {
|
|
|
this.userData = res.result.data.map(item => {
|
|
@@ -289,7 +296,10 @@
|
|
|
userId: item.userNo != 'admin' ? item.userNo : 1
|
|
|
}
|
|
|
})
|
|
|
- this.total = res.count
|
|
|
+ if(arg) {
|
|
|
+ this.personId = this.personIdArr[this.queryParam.pageNo-1]
|
|
|
+ }
|
|
|
+ this.total = res.totalCount
|
|
|
}
|
|
|
})
|
|
|
// OsRelInstApi.getUserListByGroupIdAndRelTypeId(this.queryParam).then(res => {
|
|
@@ -303,12 +313,13 @@
|
|
|
// })
|
|
|
},
|
|
|
handlePageNumChange(arg) {
|
|
|
+ this.personIdArr[this.queryParam.pageNo-1] = this.personId
|
|
|
if(arg == '-') {
|
|
|
this.queryParam.pageNo--
|
|
|
} else {
|
|
|
this.queryParam.pageNo++
|
|
|
}
|
|
|
- this.getOrgListByGroupId()
|
|
|
+ this.getOrgListByGroupId(true)
|
|
|
},
|
|
|
// 多选节点
|
|
|
check(selKeys, e) {
|