From 2eff172e2aa9a4f5139ccbe83fd32008b879ceab Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Tue, 2 Aug 2022 11:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BA=BA=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/saas/AppCooperationPropaganda/selectUser.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)) {