From d1354a020cb13d01edc2e922f5d3d691bd7d71a2 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期三, 03 三月 2021 17:42:47 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/store/modules/map.js |   34 +++++++++++++++++++++++++---------
 1 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/src/store/modules/map.js b/src/store/modules/map.js
index d45b265..341fb4b 100644
--- a/src/store/modules/map.js
+++ b/src/store/modules/map.js
@@ -1,9 +1,8 @@
-import mapConfig from '../../conf/MapConfig'
+import config from '../../conf/MapConfig'
 
 const state = {
   currentCorp: null,
   currentCorpType: null,
-  L: null,
   map: null, // 瀹炰緥鍖栫殑map
   basemapHelper: {}, // 褰卞儚鍦板浘鍥惧眰鎺у埗鍣ㄥ疄鐜板姪鎵嬬▼搴�
   serviceLayerHelper: {}, // 鏈嶅姟鍥惧眰鎺у埗鍣ㄥ疄鐜板姪鎵嬬▼搴�
@@ -14,15 +13,31 @@
   showServiceLayerFilter: false, // Service鍥惧眰杩囨护鍣�
   selectedServiceLayer: '', // 浣跨敤杩囨护鍣ㄦ椂锛岃鎵撳紑鐨刉MS鏈嶅姟鐨凜ODE
   serviceLayerFilters: {}, // 鏈嶅姟鍥惧眰鎺у埗杩囨护閰嶇疆
-  mapConfig: mapConfig
+  checkedLayers: {}, // 閫変腑鍥惧眰瀵硅薄
+  // 鍥惧眰鏁版嵁
+  datas: {
+    sewers: []
+  },
+  topic: {
+    currentTopic: '',
+    topicCheckedList: []
+  },
+  config: config,
+  serviceLayers: config.mapConfig.Layers
 }
 const mutations = {
-  setMapObj (state, mObject) {
-    state.L = mObject.L
-    state.map = mObject.map
+  setMapObj (state, map) {
+    state.map = map
+  },
+  // 璁剧疆姹¢洦姘村浘灞傛暟鎹�
+  setSewersDatas (state, sewersDatas) {
+    state.datas.sewers = sewersDatas
   },
   setBasemapHelper (state, layerHelper) {
     state.basemapHelper = layerHelper
+  },
+  setCheckedLayers (state, checkedLayers) {
+    state.checkedLayers = checkedLayers
   },
   setServiceLayerHelper (state, layerHelper) {
     state.serviceLayerHelper = layerHelper
@@ -38,11 +53,12 @@
   },
   toggleServiceLayerFilter (state) {
     state.showServiceLayerFilter = !state.showServiceLayerFilter
+  },
+  setTopic (state, obj) {
+    state.topic.topicCheckedList = obj
   }
 }
-const actions = {
-
-}
+const actions = {}
 export default {
   state,
   mutations,

--
Gitblit v1.8.0