Browse Source

区域党建

shibei_master
13176889840 4 years ago
parent
commit
34509d3094
  1. 18
      src/views/modules/visual/communityParty/community.vue

18
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

Loading…
Cancel
Save