From 5a6684b39d4775af1471da869c558a30e31eb78f Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 21 Apr 2022 10:05:23 +0800 Subject: [PATCH] 29232 --- src/apps/AppFourNeighbor/Add.vue | 2 +- src/components/pages/selectParty.vue | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/apps/AppFourNeighbor/Add.vue b/src/apps/AppFourNeighbor/Add.vue index 75da680d..3b2f92f8 100644 --- a/src/apps/AppFourNeighbor/Add.vue +++ b/src/apps/AppFourNeighbor/Add.vue @@ -5,7 +5,7 @@ *党员信息
- +
diff --git a/src/components/pages/selectParty.vue b/src/components/pages/selectParty.vue index fe9cb1ab..034bfb95 100644 --- a/src/components/pages/selectParty.vue +++ b/src/components/pages/selectParty.vue @@ -57,7 +57,8 @@ export default { }, methods: { getList() { - this.$http.post(`/app/appparty/list`, null, { + var url = this.$route.query.isFourParty ? 'app/appparty/listByFourParty?size=999' : '/app/appparty/list' + this.$http.post(url, null, { params: { current: this.current, size: 20, @@ -66,13 +67,21 @@ export default { } }).then(res => { if (res?.data) { - res.data.records.forEach(e => { - e.isCheck = this.selected.includes(e.idNumber) - }) if (this.current > 1 && this.current > res.data.pages) { return } - this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records + if(this.$route.query.isFourParty) { + res.data.forEach(e => { + e.isCheck = this.selected.includes(e.idNumber) + }) + this.list = res.data + }else { + res.data.records.forEach(e => { + e.isCheck = this.selected.includes(e.idNumber) + }) + this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records + } + } }) },