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