diff --git a/src/project/saas/AppCooperationPropaganda/selectUser.vue b/src/project/saas/AppCooperationPropaganda/selectUser.vue index 775699ab..6e078f6a 100644 --- a/src/project/saas/AppCooperationPropaganda/selectUser.vue +++ b/src/project/saas/AppCooperationPropaganda/selectUser.vue @@ -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)) {