From 44d021a6ec3f153e50cb9e68130f732a50895ed6 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 16 Aug 2019 16:19:08 +0800 Subject: [PATCH 1/9] =?UTF-8?q?desc:=20=E4=BF=AE=E6=94=B9=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E7=BB=98=E5=88=B6=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/map/mapdraft/mapedit/configMap.vue | 5 +++ .../dataRelation/automaticoperate/index.vue | 5 --- .../dataRelation/automaticoperate/route.vue | 8 +---- .../mapdraft/mapedit/dataRelation/index.vue | 8 ----- .../dataRelation/pathoperate/index.vue | 5 --- .../dataRelation/pathoperate/route.vue | 7 ---- .../dataRelation/routeoperate/index.vue | 34 ------------------- .../dataRelation/routeoperate/route.vue | 9 +---- .../dataRelation/routingoperate/index.vue | 5 --- .../dataRelation/routingoperate/route.vue | 7 ---- .../dataRelation/switchoperate/index.vue | 5 --- .../dataRelation/switchoperate/route.vue | 9 +---- src/views/map/mapdraft/mapedit/index.vue | 3 +- .../map/mapdraft/mapedit/mapoperate/index.vue | 20 +---------- 14 files changed, 10 insertions(+), 120 deletions(-) diff --git a/src/views/map/mapdraft/mapedit/configMap.vue b/src/views/map/mapdraft/mapedit/configMap.vue index 843c36a50..7fe90507c 100644 --- a/src/views/map/mapdraft/mapedit/configMap.vue +++ b/src/views/map/mapdraft/mapedit/configMap.vue @@ -60,6 +60,11 @@ export default { physicalLevelsSelect: [] }; }, + watch: { + '$store.state.map.mapDataLoadedCount': function (val) { + this.handleSelectView(this.viewSelect); + } + }, mounted() { this.initPage(); }, diff --git a/src/views/map/mapdraft/mapedit/dataRelation/automaticoperate/index.vue b/src/views/map/mapdraft/mapedit/dataRelation/automaticoperate/index.vue index 078118834..63f8b7365 100644 --- a/src/views/map/mapdraft/mapedit/dataRelation/automaticoperate/index.vue +++ b/src/views/map/mapdraft/mapedit/dataRelation/automaticoperate/index.vue @@ -6,7 +6,6 @@ :map-info="mapInfo" :route-data="routeData" :card-height="cardHeight" - @handleSelectView="handleSelectView" /> @@ -31,7 +30,6 @@ :map-info="mapInfo" :route-data="routeData" :card-height="cardHeight" - @handleSelectView="handleSelectView" /> @@ -111,9 +109,6 @@ export default { setSelected(selected) { this.$refs.routeEdit.setSelected(selected); }, - handleSelectView(handle) { - this.$emit('handleSelectView', handle); - }, setCenter(code) { this.$emit('setCenter', code); } diff --git a/src/views/map/mapdraft/mapedit/dataRelation/automaticoperate/route.vue b/src/views/map/mapdraft/mapedit/dataRelation/automaticoperate/route.vue index f9fb788bb..5c8e5a51b 100644 --- a/src/views/map/mapdraft/mapedit/dataRelation/automaticoperate/route.vue +++ b/src/views/map/mapdraft/mapedit/dataRelation/automaticoperate/route.vue @@ -120,9 +120,7 @@ export default { } }, mounted() { - this.$nextTick(() => { - this.handleSelectView(ViewMode.PHYSICAL); - }); + }, methods: { hover(field) { @@ -142,10 +140,6 @@ export default { } } }, - // 切换地图属性 - handleSelectView(handle) { - this.$emit('handleSelectView', handle); - }, buildModel(code) { const model = Object.assign({}, this.addModel); if (code) { model['code'] = code; } diff --git a/src/views/map/mapdraft/mapedit/dataRelation/index.vue b/src/views/map/mapdraft/mapedit/dataRelation/index.vue index a1eef5213..f58722c35 100644 --- a/src/views/map/mapdraft/mapedit/dataRelation/index.vue +++ b/src/views/map/mapdraft/mapedit/dataRelation/index.vue @@ -35,7 +35,6 @@ :card-height="cardHeight+25" :map-info="mapInfo" :selected="selected" - @handleSelectView="handleSelectView" @setCenter="setCenter" /> @@ -45,7 +44,6 @@ :card-height="cardHeight+25" :map-info="mapInfo" :selected="selected" - @handleSelectView="handleSelectView" @setCenter="setCenter" /> @@ -55,7 +53,6 @@ :card-height="cardHeight+25" :map-info="mapInfo" :selected="selected" - @handleSelectView="handleSelectView" @setCenter="setCenter" /> @@ -65,7 +62,6 @@ :card-height="cardHeight+25" :map-info="mapInfo" :selected="selected" - @handleSelectView="handleSelectView" @setCenter="setCenter" /> @@ -75,7 +71,6 @@ :card-height="cardHeight+25" :map-info="mapInfo" :selected="selected" - @handleSelectView="handleSelectView" @setCenter="setCenter" /> @@ -199,9 +194,6 @@ export default { break; } }, - handleSelectView(handle) { - this.$emit('handleSelectView', handle); - }, setCenter(code) { this.$emit('setCenter', code); }, diff --git a/src/views/map/mapdraft/mapedit/dataRelation/pathoperate/index.vue b/src/views/map/mapdraft/mapedit/dataRelation/pathoperate/index.vue index c1a10b8d5..d26a4ebc6 100644 --- a/src/views/map/mapdraft/mapedit/dataRelation/pathoperate/index.vue +++ b/src/views/map/mapdraft/mapedit/dataRelation/pathoperate/index.vue @@ -6,7 +6,6 @@ :map-info="mapInfo" :route-data="routeData" :card-height="cardHeight" - @handleSelectView="handleSelectView" />