From d67f4b5be7df9f8063b238a25f3118ad766053fe Mon Sep 17 00:00:00 2001
From: ycc <2607536214@qq.com>
Date: Wed, 14 Jan 2026 17:12:08 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E5=89=8D=E7=AB=AFcesium=E5=AE=89?=
=?UTF-8?q?=E8=A3=85=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/package.json | 1 +
ruoyi-ui/src/router/index.js | 5 +
ruoyi-ui/src/views/cesiumMap/index.vue | 1578 ++++++++++++++++++++++++++++++++
ruoyi-ui/src/views/index.vue | 10 +
ruoyi-ui/vue.config.js | 18 +-
5 files changed, 1611 insertions(+), 1 deletion(-)
create mode 100644 ruoyi-ui/src/views/cesiumMap/index.vue
diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json
index 6694542..f52ace5 100644
--- a/ruoyi-ui/package.json
+++ b/ruoyi-ui/package.json
@@ -26,6 +26,7 @@
"dependencies": {
"@riophae/vue-treeselect": "0.4.0",
"axios": "0.28.1",
+ "cesium": "^1.95.0",
"clipboard": "2.0.8",
"core-js": "3.37.1",
"echarts": "5.4.0",
diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js
index bbfd237..8c7dc38 100644
--- a/ruoyi-ui/src/router/index.js
+++ b/ruoyi-ui/src/router/index.js
@@ -47,6 +47,11 @@ export const constantRoutes = [
hidden: true
},
{
+ path: '/cesiumMap',
+ component: () => import('@/views/cesiumMap'),
+ hidden: true
+ },
+ {
path: '/register',
component: () => import('@/views/register'),
hidden: true
diff --git a/ruoyi-ui/src/views/cesiumMap/index.vue b/ruoyi-ui/src/views/cesiumMap/index.vue
new file mode 100644
index 0000000..76cb413
--- /dev/null
+++ b/ruoyi-ui/src/views/cesiumMap/index.vue
@@ -0,0 +1,1578 @@
+
+ 属性设置
+
+ 测量结果
+
一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了若依管理系统,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。 @@ -1100,6 +1107,9 @@ export default { } }, methods: { + goCesium(){ + this.$router.push({ path: this.redirect || "/cesiumMap" }).catch(()=>{}) + }, goTarget(href) { window.open(href, "_blank") } diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index 40e140d..8ff151d 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -9,7 +9,7 @@ const CompressionPlugin = require('compression-webpack-plugin') const name = process.env.VUE_APP_TITLE || '若依管理系统' // 网页标题 -const baseUrl = 'http://localhost:8080' // 后端接口 +const baseUrl = 'http://192.168.50.30:8080' // 后端接口 const port = process.env.port || process.env.npm_config_port || 80 // 端口 @@ -59,6 +59,22 @@ module.exports = { }, configureWebpack: { name: name, + module: { + rules: [ + { + test: /\.js$/, + include: /node_modules\/@cesium/, + use: { + loader: 'babel-loader', + options: { + presets: ['@babel/preset-env'], + plugins: ['@babel/plugin-proposal-nullish-coalescing-operator', + '@babel/plugin-proposal-optional-chaining'] + } + } + } + ] + }, resolve: { alias: { '@': resolve('src')