创建人分页
This commit is contained in:
@@ -30,6 +30,7 @@ export default {
|
||||
return {
|
||||
selected: [],
|
||||
userList: [],
|
||||
current: 1,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -49,10 +50,13 @@ export default {
|
||||
getDeptsAndUsersByParent() {
|
||||
this.userList = []
|
||||
this.$http.post(`/app/appmasssendingtask/list`, null, {
|
||||
params: {}
|
||||
params: {
|
||||
current: this.current
|
||||
}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
let userArr = res.data.records.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.createUserId)}))
|
||||
let list = this.current == 1? res.data.records:[...list, ...res.data.records]
|
||||
let userArr = list.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.createUserId)}))
|
||||
this.userList = []
|
||||
userArr.forEach(item=> {
|
||||
if(!this.userList.find(o=> o.userId === item.userId)) {
|
||||
|
||||
Reference in New Issue
Block a user