diff --git a/package.json b/package.json
index 30511aa..cf061db 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
"@vueup/vue-quill": "1.2.0",
"@vueuse/core": "10.11.0",
"axios": "0.28.1",
+ "cesium": "^1.129.0",
"clipboard": "2.0.11",
"echarts": "5.5.1",
"element-plus": "2.7.6",
@@ -24,6 +25,7 @@
"js-beautify": "1.14.11",
"js-cookie": "3.0.5",
"jsencrypt": "3.3.2",
+ "json-editor-vue": "^0.18.1",
"nprogress": "0.2.0",
"pinia": "2.1.7",
"splitpanes": "3.1.5",
@@ -38,6 +40,7 @@
"unplugin-auto-import": "0.17.6",
"unplugin-vue-setup-extend-plus": "1.0.1",
"vite": "5.3.2",
+ "vite-plugin-cesium": "^1.2.23",
"vite-plugin-compression": "0.5.1",
"vite-plugin-svg-icons": "2.0.1"
}
diff --git a/src/components/CesiumMap/index.vue b/src/components/CesiumMap/index.vue
new file mode 100644
index 0000000..6dd04fb
--- /dev/null
+++ b/src/components/CesiumMap/index.vue
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index f0fdf88..d0389ee 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -31,13 +31,16 @@ import variables from '@/assets/styles/variables.module.scss'
import useAppStore from '@/store/modules/app'
import useSettingsStore from '@/store/modules/settings'
import usePermissionStore from '@/store/modules/permission'
+import { constantRoutes } from "@/router"
const route = useRoute();
const appStore = useAppStore()
const settingsStore = useSettingsStore()
const permissionStore = usePermissionStore()
-const sidebarRouters = computed(() => permissionStore.sidebarRouters);
+// todo 重构菜单数据来源
+// const sidebarRouters = computed(() => permissionStore.sidebarRouters);
+const sidebarRouters = constantRoutes;
const showLogo = computed(() => settingsStore.sidebarLogo);
const sideTheme = computed(() => settingsStore.sideTheme);
const theme = computed(() => settingsStore.theme);
diff --git a/src/main.js b/src/main.js
index 0994583..5cc9461 100644
--- a/src/main.js
+++ b/src/main.js
@@ -23,7 +23,7 @@ import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon'
import elementIcons from '@/components/SvgIcon/svgicon'
-import './permission' // permission control
+// import './permission' // permission control
import { useDict } from '@/utils/dict'
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
diff --git a/src/router/index.js b/src/router/index.js
index 2c7c3de..4f57d6a 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -83,6 +83,24 @@ export const constantRoutes = [
meta: { title: '个人中心', icon: 'user' }
}
]
+ },
+ {
+ path: '/gisManagement',
+ component: Layout,
+ alwaysShow: true,
+ name: 'gisManagement',
+ redirect: '/gisManagement/configSetting',
+ meta: {
+ title: 'GIS管理'
+ },
+ children: [
+ {
+ path: 'configSetting',
+ component: () => import('@/views/gisManagement/configSetting/index.vue'),
+ name: 'configSetting',
+ meta: { title: '地图配置' }
+ }
+ ]
}
]
diff --git a/src/views/gisManagement/configSetting/components/previewMap.vue b/src/views/gisManagement/configSetting/components/previewMap.vue
new file mode 100644
index 0000000..8fe09ab
--- /dev/null
+++ b/src/views/gisManagement/configSetting/components/previewMap.vue
@@ -0,0 +1,45 @@
+
+
+
+ 返回
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/gisManagement/configSetting/index.vue b/src/views/gisManagement/configSetting/index.vue
new file mode 100644
index 0000000..d7a884c
--- /dev/null
+++ b/src/views/gisManagement/configSetting/index.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 视角配置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 地形配置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 底图配置
+
+
+
+
+
+
+
+
+
+
+ 其他配置
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vite/plugins/index.js b/vite/plugins/index.js
index 10e17c3..92cd755 100644
--- a/vite/plugins/index.js
+++ b/vite/plugins/index.js
@@ -1,4 +1,5 @@
import vue from '@vitejs/plugin-vue'
+import cesium from 'vite-plugin-cesium'
import createAutoImport from './auto-import'
import createSvgIcon from './svg-icon'
@@ -6,7 +7,7 @@ import createCompression from './compression'
import createSetupExtend from './setup-extend'
export default function createVitePlugins(viteEnv, isBuild = false) {
- const vitePlugins = [vue()]
+ const vitePlugins = [vue(), cesium()]
vitePlugins.push(createAutoImport())
vitePlugins.push(createSetupExtend())
vitePlugins.push(createSvgIcon(isBuild))