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 @@ + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index de515b3..579996c 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -2,6 +2,13 @@
+ cesium地图跳转

若依后台管理框架

一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了若依管理系统,她可以用于所有的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')