From b0ccd2d131b2e3df5d901385e38ed0077b8d0fbc Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 14 Apr 2025 12:31:31 +0800
Subject: [PATCH] feat:修改任务管理内容

---
 src/store/modules/common.js |   67 +++++++++++++++++++++------------
 1 files changed, 42 insertions(+), 25 deletions(-)

diff --git a/src/store/modules/common.js b/src/store/modules/common.js
index 659dd59..0b24cde 100644
--- a/src/store/modules/common.js
+++ b/src/store/modules/common.js
@@ -1,6 +1,18 @@
-import { setStore, getStore, removeStore } from 'utils/store';
-import website from '@/config/website';
+/*
+ * @Author: shuishen 1109946754@qq.com
+ * @Date: 2025-03-31 10:39:40
+ * @LastEditors: shuishen 1109946754@qq.com
+ * @LastEditTime: 2025-04-03 12:01:58
+ * @FilePath: \command-center-dashboard\src\store\modules\common.js
+ * @Description:
+ *
+ * Copyright (c) 2025 by shuishen, All Rights Reserved.
+ */
+import { setStore, getStore, removeStore } from 'utils/store'
+import website from '@/config/website'
+import cesiumOptions from '@/utils/cesium-tsa'
 
+const { loadLAYER } = cesiumOptions()
 const common = {
   state: {
     language: getStore({ name: 'language' }) || 'zh-cn',
@@ -15,78 +27,83 @@
     lockPasswd: getStore({ name: 'lockPasswd' }) || '',
     website: website,
     setting: website.setting,
+    // 地图设置
     mapSetting: {
-      mode: 2, // 0为标准地图, 1为卫星地图
+      mode: 0, // 0为标准地图, 1为卫星地图
       roadLine: true,
-      visual: '2D',
+      visual: '3D',
       isDark: false,
     },
   },
   mutations: {
+    setMapSetting: (state, data) => {
+      state.mapSetting = data
+      loadLAYER()
+    },
     SET_LANGUAGE: (state, language) => {
-      state.language = language;
+      state.language = language
       setStore({
         name: 'language',
         content: state.language,
-      });
+      })
     },
     SET_COLLAPSE: state => {
-      state.isCollapse = !state.isCollapse;
+      state.isCollapse = !state.isCollapse
     },
     SET_IS_MENU: (state, menu) => {
-      state.isMenu = menu;
+      state.isMenu = menu
     },
     SET_IS_REFRESH: (state, refresh) => {
-      state.isRefresh = refresh;
+      state.isRefresh = refresh
     },
     SET_IS_SEARCH: (state, search) => {
-      state.isSearch = search;
+      state.isSearch = search
     },
     SET_FULLSCREN: state => {
-      state.isFullScren = !state.isFullScren;
+      state.isFullScren = !state.isFullScren
     },
     SET_LOCK: state => {
-      state.isLock = true;
+      state.isLock = true
       setStore({
         name: 'isLock',
         content: state.isLock,
         type: 'session',
-      });
+      })
     },
     SET_COLOR_NAME: (state, colorName) => {
-      state.colorName = colorName;
+      state.colorName = colorName
       setStore({
         name: 'colorName',
         content: state.colorName,
-      });
+      })
     },
     SET_THEME_NAME: (state, themeName) => {
-      state.themeName = themeName;
+      state.themeName = themeName
       setStore({
         name: 'themeName',
         content: state.themeName,
-      });
+      })
     },
     SET_LOCK_PASSWD: (state, lockPasswd) => {
-      state.lockPasswd = lockPasswd;
+      state.lockPasswd = lockPasswd
       setStore({
         name: 'lockPasswd',
         content: state.lockPasswd,
         type: 'session',
-      });
+      })
     },
     CLEAR_LOCK: state => {
-      state.isLock = false;
-      state.lockPasswd = '';
+      state.isLock = false
+      state.lockPasswd = ''
       removeStore({
         name: 'lockPasswd',
         type: 'session',
-      });
+      })
       removeStore({
         name: 'isLock',
         type: 'session',
-      });
+      })
     },
   },
-};
-export default common;
+}
+export default common

--
Gitblit v1.9.3