From c6c504aeac112db2ee60f9af7a994a04b9fa4ed5 Mon Sep 17 00:00:00 2001 From: 陈泽平 <chenzeping> Date: 星期三, 19 五月 2021 16:05:23 +0800 Subject: [PATCH] 事件上报修改 --- src/views/baseInfoMgr/pipeline/PipeLineIndex.vue | 47 ++++++++++++++++++----------------------------- 1 files changed, 18 insertions(+), 29 deletions(-) diff --git a/src/views/baseInfoMgr/pipeline/PipeLineIndex.vue b/src/views/baseInfoMgr/pipeline/PipeLineIndex.vue index 6e8d732..84ae2a2 100644 --- a/src/views/baseInfoMgr/pipeline/PipeLineIndex.vue +++ b/src/views/baseInfoMgr/pipeline/PipeLineIndex.vue @@ -6,37 +6,26 @@ </template> <script> - import 'leaflet/dist/leaflet.css' - import Sgis from '@src/Sgis' - import PipeLineList from "./PipeLineList"; - import {mapMutations} from 'vuex' +import 'leaflet/dist/leaflet.css' +import Sgis from '@src/Sgis' +import PipeLineList from './PipeLineList' - export default { - name: 'PipeLineIndex', - components: {PipeLineList}, - mounted() { - this.$nextTick(() => { - this.init() - }) - }, - methods: { - ...mapMutations({ - setMapObj: 'setMapObj', - setLayerHelper: 'setLayerHelper' - }), - init() { - const mapcontainer = this.$refs.rootmap - this.mapObj = Sgis.initMap(mapcontainer) - this.basemapHelper = Sgis.initBasemaps(this.mapObj.map, this.mapObj.L) // 鍒濆鍖栧簳鍥� - this.vectorLayerHelper = Sgis.initLayers(this.mapObj.map, this.mapObj.L, {}, this.$nodeEnv) // 鍒濆鍖栦笟鍔″浘灞� - this.setLayerHelper(this.vectorLayerHelper) - return this.map - }, - setLayerHelper() { - - } - } +export default { + name: 'PipeLineIndex', + components: { PipeLineList }, + mounted () { + this.$nextTick(() => { + this.init() + }) + }, + methods: { + init () { + const mapcontainer = this.$refs.rootmap + Sgis.initMap(mapcontainer) + return this.map } + } +} </script> <style lang="less"> -- Gitblit v1.8.0