From 6fb97203a50aa0a40ef6915537967df882518d34 Mon Sep 17 00:00:00 2001
From: liuchuang <123456>
Date: Tue, 9 Nov 2021 10:24:50 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=B0=91=E7=99=BB=E8=AE=B0=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E5=8A=9F=E8=83=BD=E6=89=80=E5=B1=9E=E5=B0=8F=E7=BB=84?=
=?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=89=80=E5=B1=9E=E9=80=89=E5=8C=BA=E8=81=94?=
=?UTF-8?q?=E5=8A=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/custom/voterregistration.vue | 22 ++++++++++++++-----
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/src/views/modules/custom/voterregistration.vue b/src/views/modules/custom/voterregistration.vue
index f3a1d8d..d025e46 100644
--- a/src/views/modules/custom/voterregistration.vue
+++ b/src/views/modules/custom/voterregistration.vue
@@ -3,7 +3,7 @@
-
+
{
+ this.$http.get(`/custom/voterregistrationconfig/getConfigByType`, { params: { configType: '0', pid: '' } }).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.constituencyList = res.data
}).catch(() => {})
},
- getGroupList () {
- this.$http.get(`/custom/voterregistrationconfig/getConfigByType/1`).then(({ data: res }) => {
+ getGroupList (code) {
+ let pid = ''
+ this.constituencyList.find((item) => {
+ if (item.configCode === code) {
+ pid = item.id
+ }
+ })
+ if (pid === '') {
+ this.groupList = []
+ return
+ }
+ this.$http.get(`/custom/voterregistrationconfig/getConfigByType`, { params: { configType: '', pid: pid } }).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
@@ -171,7 +181,7 @@ export default {
}).catch(() => {})
},
getParticipationPrincipleList () {
- this.$http.get(`/custom/voterregistrationconfig/getConfigByType/2`).then(({ data: res }) => {
+ this.$http.get(`/custom/voterregistrationconfig/getConfigByType`, { params: { configType: '2', pid: '' } }).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}