ctw 3 months ago
parent
commit
9812a579e1
  1. 1
      ruoyi-ui/package.json
  2. 5
      ruoyi-ui/src/router/index.js
  3. 1578
      ruoyi-ui/src/views/cesiumMap/index.vue
  4. 10
      ruoyi-ui/src/views/index.vue
  5. 18
      ruoyi-ui/vue.config.js

1
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",

5
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

1578
ruoyi-ui/src/views/cesiumMap/index.vue

File diff suppressed because it is too large

10
ruoyi-ui/src/views/index.vue

@ -2,6 +2,13 @@
<div class="app-container home">
<el-row :gutter="20">
<el-col :sm="24" :lg="12" style="padding-left: 20px">
<el-button
type="primary"
size="mini"
icon="el-icon-cloudy"
plain
@click="goCesium()"
>cesium地图跳转</el-button>
<h2>若依后台管理框架</h2>
<p>
一直想做一款后台管理系统看了很多优秀的开源项目但是发现没有合适自己的于是利用空闲休息时间开始自己写一套后台系统如此有了若依管理系统她可以用于所有的Web应用程序如网站管理后台网站会员中心CMSCRMOA等等当然您也可以对她进行深度定制以做出更强系统所有前端后台代码封装过后十分精简易上手出错概率低同时支持移动客户端访问系统会陆续更新一些实用功能
@ -1100,6 +1107,9 @@ export default {
}
},
methods: {
goCesium(){
this.$router.push({ path: this.redirect || "/cesiumMap" }).catch(()=>{})
},
goTarget(href) {
window.open(href, "_blank")
}

18
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')

Loading…
Cancel
Save