diff --git a/src/jmapNew/theme/nanjing_02/menus/dialog/mapVisual.vue b/src/jmapNew/theme/nanjing_02/menus/dialog/mapVisual.vue index e5b9c20fe..696070a1d 100644 --- a/src/jmapNew/theme/nanjing_02/menus/dialog/mapVisual.vue +++ b/src/jmapNew/theme/nanjing_02/menus/dialog/mapVisual.vue @@ -117,9 +117,21 @@ export default { if (this.mapData.skinVO) { const config = this.map.getShowConfig(); Object.assign(config, con); - this.mapDevice = parser(this.mapData, this.mapData.skinVO.code, config); + // this.mapDevice = parser(this.mapData, this.mapData.skinVO.code, config); + this.mapDevice = this.$store.state.map.mapDevice; } this.setMap(this.mapData, this.mapDevice); + const nameList = Object.keys(this.$store.state.map.map || {}); + let list = []; + nameList.forEach(item => { + if (item !== 'skinVO') { + const data = this.$store.state.map.map[item]; + if (data && data.constructor === Array) { + list = [...list, ...data]; + } + } + }); + this.$jlmap.updateShowMode(list, con.showMode); // 二次过滤 } catch (error) { console.log('[ERROR] ', error); }