From 36fbd1e5a40e319e6ac5f43d11c99ba4b66e93a3 Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期三, 29 十一月 2023 16:50:16 +0800
Subject: [PATCH] 坡度分析下载修改

---
 src/store/index.ts |   82 +++++++++++++++++++++++++++++++++++++++-
 1 files changed, 79 insertions(+), 3 deletions(-)

diff --git a/src/store/index.ts b/src/store/index.ts
index 9e1c7d3..30d874e 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -1,8 +1,84 @@
 import { createStore } from "vuex";
-
+import { setToken } from "@/utils/auth";
+import { fa } from "element-plus/es/locale";
 export default createStore({
-  state: {},
-  mutations: {},
+  state: {
+    loginCode: "",
+    key: "",
+    uname: "",
+    token: "",
+    spatialQueryData: {
+      pageIndex: 1,
+      pageSize: 10,
+      name: null,
+      wkt: null,
+      hasGeom: null,
+      filter: null,
+      count: 0,
+      obj: null,
+    },
+    chekNowLayers: [],
+    exportImgUrl: "",
+    tab: null,
+    doubleMap: false,
+    doubleMenu: false,
+    details: {
+      gid: null,
+      tab: null,
+      showDetails: false,
+    },
+    restLayer: false,
+    isShowMap: true,
+    spatialTitle: null,
+    setExportList: false,
+    setLayerManager: false,
+    olLon: "0.00",
+    olLat: "0.00",
+    olZoom: 0,
+    plottingInquireData: {
+      isshow: false,
+      entitiesData: {},
+      getData: {},
+    },
+    loading: false,
+    temporaryLayer: null,
+    editTemporaryId: null,
+    setEditTemporaryShow: false,
+    editTemporarName: null,
+    editTemporaryback: null,
+    layerGroups:null,
+    slopeQueyFlag:false,
+    slopeQueyValue:null,
+    showSlopeQuey:false,
+    showlegendLayer:false,
+  },
+  mutations: {
+    // SET_plotting(state, obj) {
+    //   console.log(obj);
+    //   state.plottingInquireData = obj;
+    // },
+    //鑾峰彇鐧诲綍Code
+    setLoginCode(state, num) {
+      state.loginCode = num;
+    },
+    SET_KEY(state, key) {
+      state.key = key;
+    },
+    SET_UNAME(state, name) {
+      state.uname = name;
+    },
+    SET_TOKEN(state, token) {
+      state.token = token;
+      const obj = {
+        token: token,
+        uname: state.uname,
+      };
+      setToken(JSON.stringify(obj));
+    },
+    SET_CHECKLAYER(state, layers) {
+      state.chekNowLayers = layers;
+    },
+  },
   actions: {},
   modules: {},
 });

--
Gitblit v1.9.3