From ab8f3297f7c8243d486c9da0900e4f813b2ea2df Mon Sep 17 00:00:00 2001
From: suerprisePlus <15810472099@163.com>
Date: 星期三, 27 十一月 2024 17:16:46 +0800
Subject: [PATCH] 功能更新

---
 src/store/modules/mapLayers.js |   31 +++++++++++++++++++++++++++++--
 1 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/src/store/modules/mapLayers.js b/src/store/modules/mapLayers.js
index aa0a339..f161ca6 100644
--- a/src/store/modules/mapLayers.js
+++ b/src/store/modules/mapLayers.js
@@ -1,16 +1,40 @@
 import Cookies from 'js-cookie';
-
+import busEvent from '@/utils/busEvent';
 const state = {
     layerTree: [],
     defaultLayer: [],
+    mapInfo: [],
+    msgList: [],
+    disasterSnow: {
+        title: '闆�',
+        val: [],
+    },
+    disasterRain: {
+        title: '闆�',
+        val: [],
+    },
+    disasterFire: {
+        title: '鐏�',
+        val: [],
+    },
+    weatherFlag: 2,
+    weatherMsg: {
+        name:'',
+        data:[]
+    },
+    msgInfoData:null,
 };
 
 const mutations = {
     CHANGE_LAYERTREE: (state, res) => {
         state.layerTree = res;
     },
-    CHANGE_DEFAULTLAYER: (state,res) => {
+    CHANGE_DEFAULTLAYER: (state, res) => {
         state.defaultLayer = res;
+    },
+    CHANGE_MAPINFO: (state, res) => {
+        state.mapInfo = res;
+        busEvent.$emit('CHANGE_MAPINFO', state.mapInfo);
     },
 };
 
@@ -21,6 +45,9 @@
     changeDefaultLayer({ commit }, obj) {
         commit('CHANGE_DEFAULTLAYER', obj);
     },
+    changeMapInfo({ commit }, obj) {
+        commit('CHANGE_MAPINFO', obj);
+    },
 };
 
 export default {

--
Gitblit v1.9.3