From 34509d30944fc9380418a28439fdf90c7fe0ed21 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Fri, 31 Dec 2021 09:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E5=85=9A=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visual/communityParty/community.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/modules/visual/communityParty/community.vue b/src/views/modules/visual/communityParty/community.vue index 9b3f7204..0c2833d5 100644 --- a/src/views/modules/visual/communityParty/community.vue +++ b/src/views/modules/visual/communityParty/community.vue @@ -526,16 +526,22 @@ export default { const { data, code, msg } = await requestPost(url, params) if (code === 0) { - // this.unitMapList = data - this.unitMapList = this.unitMapList1 - + console.log('unitMapList----data', data) + this.unitMapList = data.map((item, index) => { + return { + ...item, + urlIndex: index + } + }) + // this.unitMapList = this.unitMapList1 + console.log('unitMapList----', this.unitMapList) this.unitMapList.forEach(item => { - if (item.type === '党建楼宇') { + if (item.type === '楼宇党建') { item.urlIndex = 0 - } else if (item.type === '两新党建') { + } else if (item.type === '两新组织') { item.urlIndex = 1 - } else if (item.type === '辖区单位') { + } else if (item.type === '区域单位党建') { item.urlIndex = 2 } else if (item.type === '机关直属部门') { item.urlIndex = 3