From 5d2c1279d8e4a7274db928497b539b991176091e Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 30 Jun 2022 18:39:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=9A=E5=91=98=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/AppPartyMemberScore/psDetail.vue | 30 ++++++++++++++----- .../apps/AppPartyMemberScore/psList.vue | 8 +++-- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/project/sanjianxi/apps/AppPartyMemberScore/psDetail.vue b/project/sanjianxi/apps/AppPartyMemberScore/psDetail.vue index 57e8c652..b5213a81 100644 --- a/project/sanjianxi/apps/AppPartyMemberScore/psDetail.vue +++ b/project/sanjianxi/apps/AppPartyMemberScore/psDetail.vue @@ -2,25 +2,30 @@
+ @@ -62,17 +67,26 @@ export default { {required: true, message: "请输入学习强国积分"}, {pattern: /^\d+$/g, message: "请输入正整数"} ] - } + }, + name: '', + nowIntegral: '', + page: {current: 1, size: 10, total: 0}, } }, methods: { getDetail() { - let {id} = this.$route.query - this.instance.post("/app/appparty/getPartyIntegralDetail", null, { - params: {id} + let { id, name, nowIntegral } = this.$route.query + this.instance.post("/app/apppartyintegralinfo/list", null, { + params: { + partyId: id, + ...this.page + } }).then(res => { if (res?.data) { this.detail = res.data + this.page.total = res.data.total + this.name = name + this.nowIntegral = nowIntegral } }) }, diff --git a/project/sanjianxi/apps/AppPartyMemberScore/psList.vue b/project/sanjianxi/apps/AppPartyMemberScore/psList.vue index be1c3608..2e5bac9b 100644 --- a/project/sanjianxi/apps/AppPartyMemberScore/psList.vue +++ b/project/sanjianxi/apps/AppPartyMemberScore/psList.vue @@ -8,6 +8,7 @@ @@ -133,8 +134,9 @@ export default { return data.name.indexOf(value) !== -1 }, - showDetail(id) { - this.$router.push({query: {id}}) + showDetail(row) { + console.log(row); + this.$router.push({query: { id: row.partyId, name: row.name, nowIntegral: row.nowIntegral}}) }, }, created() {