diff --git a/src/views/emergen_cyrescue/emergency_map/components/mapAssembly.vue b/src/views/emergen_cyrescue/emergency_map/components/mapAssembly.vue index 0d68cc1..064ef3e 100644 --- a/src/views/emergen_cyrescue/emergency_map/components/mapAssembly.vue +++ b/src/views/emergen_cyrescue/emergency_map/components/mapAssembly.vue @@ -292,13 +292,13 @@ export default { heartbeat: null, REPORT_ID: null, FIRERESERVEPLAN_ID: null, + CODE: null, CORPIFNO_ID: JSON.parse(sessionStorage.getItem('user')).CORPIFNO_ID } }, mounted() { /** 调用地图初始化方法 */ this.firstInitPoint() - /** 调用初始化点位绘制方法 */ // this.initPoints() /** 初始化选中首个二级坐标点位分类 */ @@ -330,6 +330,8 @@ export default { // 设置被选中项的索引 this.activeIndex = index this.range = item + mapInstance.clearOverlays() + this.initPoint({ code: this.CODE, reportId: this.REPORT_ID, range: this.range }) }, /** 扎点方法 */ addPoint(anchor) { @@ -528,6 +530,7 @@ export default { spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.7)' }) + this.CODE = row.code requestFN( '/bi/emergency/getPoint', {