数据大屏优化,平台名称变更
This commit is contained in:
parent
b9798abfee
commit
3bdc299fbc
@ -1,7 +1,7 @@
|
|||||||
# 开发环境
|
# 开发环境
|
||||||
VITE_PORT = 9000
|
VITE_PORT = 9000
|
||||||
VITE_APP_NAME = 'daimp-front-main'
|
VITE_APP_NAME = 'daimp-front-main'
|
||||||
VITE_APP_TITLE = '全域数字农业产业管理平台'
|
VITE_APP_TITLE = '全域数字农业产业运营管理平台'
|
||||||
VITE_APP_SUB_OS = '//localhost:9526/sub-operation-service/'
|
VITE_APP_SUB_OS = '//localhost:9526/sub-operation-service/'
|
||||||
VITE_APP_SUB_OA = '//localhost:9527/sub-operation-admin/'
|
VITE_APP_SUB_OA = '//localhost:9527/sub-operation-admin/'
|
||||||
# VITE_APP_SUB_GAS = 'http://192.168.18.128:9528/sub-government-affairs-service/'
|
# VITE_APP_SUB_GAS = 'http://192.168.18.128:9528/sub-government-affairs-service/'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# 本地环境
|
# 本地环境
|
||||||
VITE_APP_NAME = 'daimp-front-main'
|
VITE_APP_NAME = 'daimp-front-main'
|
||||||
VITE_APP_TITLE = '全域数字农业产业管理平台'
|
VITE_APP_TITLE = '全域数字农业产业运营管理平台'
|
||||||
VITE_APP_SUB_OS = '//localhost:8090/sub-operation-service/'
|
VITE_APP_SUB_OS = '//localhost:8090/sub-operation-service/'
|
||||||
VITE_APP_SUB_OA = '//localhost:8090/sub-operation-admin/'
|
VITE_APP_SUB_OA = '//localhost:8090/sub-operation-admin/'
|
||||||
VITE_APP_SUB_GAS = '//localhost:8090/sub-government-affairs-service/'
|
VITE_APP_SUB_GAS = '//localhost:8090/sub-government-affairs-service/'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# 正式环境
|
# 正式环境
|
||||||
VITE_APP_NAME = 'daimp-front-main'
|
VITE_APP_NAME = 'daimp-front-main'
|
||||||
VITE_APP_TITLE = '全域数字农业产业管理平台'
|
VITE_APP_TITLE = '全域数字农业产业运营管理平台'
|
||||||
VITE_APP_SUB_OS = '//http://47.109.205.240/sub-operation-service/'
|
VITE_APP_SUB_OS = '//http://47.109.205.240/sub-operation-service/'
|
||||||
VITE_APP_SUB_OA = '//http://47.109.205.240/sub-operation-admin/'
|
VITE_APP_SUB_OA = '//http://47.109.205.240/sub-operation-admin/'
|
||||||
VITE_APP_SUB_GAS = '//http://47.109.205.240/sub-government-affairs-service/'
|
VITE_APP_SUB_GAS = '//http://47.109.205.240/sub-government-affairs-service/'
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
# 测试环境
|
# 测试环境
|
||||||
VITE_APP_NAME = 'daimp-front-main'
|
VITE_APP_NAME = 'daimp-front-main'
|
||||||
VITE_APP_TITLE = '全域数字农业产业管理平台'
|
VITE_APP_TITLE = '全域数字农业产业管理平台'
|
||||||
VITE_APP_SUB_OS = '//192.168.18.99/sub-operation-service/'
|
VITE_APP_SUB_OS = '//192.168.18.88/sub-operation-service/'
|
||||||
VITE_APP_SUB_OA = '//192.168.18.99/sub-operation-admin/'
|
VITE_APP_SUB_OA = '//192.168.18.88/sub-operation-admin/'
|
||||||
VITE_APP_SUB_GAS = '//192.168.18.99/sub-government-affairs-service/'
|
VITE_APP_SUB_GAS = '//192.168.18.88/sub-government-affairs-service/'
|
||||||
VITE_APP_SUB_GAA = '//192.168.18.99/sub-government-admin/'
|
VITE_APP_SUB_GAA = '//192.168.18.88/sub-government-admin/'
|
||||||
VITE_APP_SUB_GSS = '//192.168.18.99/sub-government-screen-service/'
|
VITE_APP_SUB_GSS = '//192.168.18.88/sub-government-screen-service/'
|
||||||
VITE_APP_SUB_GSR = '//192.168.18.99/new-digital-agriculture-screen/'
|
VITE_APP_SUB_GSR = '//192.168.18.88/new-digital-agriculture-screen/'
|
||||||
# 接口
|
# 接口
|
||||||
VITE_APP_BASE_API = '/apis'
|
VITE_APP_BASE_API = '/apis'
|
||||||
VITE_APP_BASE_URL = ''
|
VITE_APP_BASE_URL = ''
|
||||||
VITE_APP_UPLOAD_API = '/uploadApis'
|
VITE_APP_UPLOAD_API = '/uploadApis'
|
||||||
VITE_APP_UPLOAD_URL = ''
|
VITE_APP_UPLOAD_URL = ''
|
||||||
VITE_APP_VIST_URL = 'http://192.168.18.99'
|
VITE_APP_VIST_URL = 'http://192.168.18.88'
|
127
main/src/micro/app copy.js
Normal file
127
main/src/micro/app copy.js
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
import actions from './actions';
|
||||||
|
|
||||||
|
const { VITE_APP_SUB_OS, VITE_APP_SUB_OA, VITE_APP_SUB_ADMIN, VITE_APP_SUB_GAS, VITE_APP_SUB_GSS, VITE_APP_SUB_GSR, VITE_APP_VIST_URL } = import.meta.env;
|
||||||
|
|
||||||
|
export const leftApps = [
|
||||||
|
{
|
||||||
|
name: 'sub-operation-service',
|
||||||
|
entry: VITE_APP_SUB_OS,
|
||||||
|
activeRule: '/sub-operation-service',
|
||||||
|
title: '运营服务',
|
||||||
|
icon: 'images/platform/icon-home.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sub-operation-admin',
|
||||||
|
entry: VITE_APP_SUB_OA,
|
||||||
|
activeRule: `/sub-operation-admin`,
|
||||||
|
title: '管理后台',
|
||||||
|
icon: 'images/platform/icon-admin.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sub-app2',
|
||||||
|
entry: VITE_APP_SUB_GAS,
|
||||||
|
activeRule: '/operation-app',
|
||||||
|
title: 'APP',
|
||||||
|
icon: 'images/platform/icon-app.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sub-government-screen-service',
|
||||||
|
entry: VITE_APP_SUB_GSS,
|
||||||
|
activeRule: '/sub-government-screen-service',
|
||||||
|
title: '数据大屏',
|
||||||
|
icon: 'images/platform/icon-screen.png',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export const rightApps = [
|
||||||
|
{
|
||||||
|
name: 'sub-government-affairs-service',
|
||||||
|
entry: VITE_APP_SUB_GAS,
|
||||||
|
activeRule: '/sub-government-affairs-service',
|
||||||
|
title: '政务服务',
|
||||||
|
icon: 'images/platform/icon-home.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sub-government-admin',
|
||||||
|
entry: VITE_APP_SUB_GAS,
|
||||||
|
activeRule: `/sub-government-admin`,
|
||||||
|
title: '管理后台',
|
||||||
|
icon: 'images/platform/icon-admin.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sub-app1',
|
||||||
|
entry: VITE_APP_SUB_GAS,
|
||||||
|
activeRule: '/government-affairs-app',
|
||||||
|
title: 'APP',
|
||||||
|
icon: 'images/platform/icon-app.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// name: 'sub-government-screen-service',
|
||||||
|
name: 'new-digital-agriculture-screen/v2/land',
|
||||||
|
// entry: VITE_APP_SUB_GSS,
|
||||||
|
entry: VITE_APP_SUB_GSR,
|
||||||
|
// activeRule: '/sub-government-screen-service',
|
||||||
|
activeRule: '/new-digital-agriculture-screen',
|
||||||
|
title: '数据大屏',
|
||||||
|
icon: 'images/platform/icon-screen.png',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export const defaultApps = [
|
||||||
|
{
|
||||||
|
name: 'sub-operation-service',
|
||||||
|
entry: VITE_APP_SUB_OS,
|
||||||
|
activeRule: '/sub-operation-service',
|
||||||
|
title: '运营服务',
|
||||||
|
icon: 'images/platform/icon-home.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sub-operation-admin',
|
||||||
|
entry: VITE_APP_SUB_OA,
|
||||||
|
activeRule: '/sub-operation-admin',
|
||||||
|
title: '运营管理后台',
|
||||||
|
icon: 'images/platform/icon-admin.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sub-government-affairs-service',
|
||||||
|
entry: VITE_APP_SUB_GAS,
|
||||||
|
activeRule: '/sub-government-affairs-service',
|
||||||
|
title: '政务服务',
|
||||||
|
icon: 'images/platform/icon-home.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sub-government-screen-service',
|
||||||
|
// name: 'new-digital-agriculture-screen',
|
||||||
|
entry: VITE_APP_SUB_GSS,
|
||||||
|
// entry: VITE_APP_SUB_GSR,
|
||||||
|
activeRule: '/sub-government-screen-service',
|
||||||
|
// activeRule: '/new-digital-agriculture-screen',
|
||||||
|
title: '数据大屏',
|
||||||
|
icon: 'images/platform/icon-screen.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// name: 'sub-government-screen-service',
|
||||||
|
name: 'new-digital-agriculture-screen',
|
||||||
|
// entry: VITE_APP_SUB_GSS,
|
||||||
|
entry: VITE_APP_SUB_GSR,
|
||||||
|
// activeRule: '/sub-government-screen-service',
|
||||||
|
activeRule: '/new-digital-agriculture-screen',
|
||||||
|
title: '数据大屏',
|
||||||
|
icon: 'images/platform/icon-screen.png',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export const microApps = [...defaultApps];
|
||||||
|
console.log(microApps);
|
||||||
|
const apps = microApps.map((item) => {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
container: '#app',
|
||||||
|
props: {
|
||||||
|
routerBase: item.activeRule,
|
||||||
|
globalState: actions.getGlobalState(),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
export default apps;
|
@ -39,6 +39,8 @@ export const constantRoutes = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{ path: '/sub-operation-admin*', redirect: '/' }, // 避免乾坤劫持该路径
|
||||||
|
{ path: '/sub-government-admin*', redirect: '/' }, // 避免乾坤劫持该路径
|
||||||
];
|
];
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="platform">
|
<div class="platform">
|
||||||
<h2 class="platform-title">全域数字农业产业管理平台</h2>
|
<h2 class="platform-title">全域数字农业产业运营管理平台</h2>
|
||||||
<div class="platform-panel">
|
<div class="platform-panel">
|
||||||
<div class="platform-panel-item">
|
<div class="platform-panel-item">
|
||||||
<div class="icon"><img src="https://gov-cloud.oss-cn-chengdu.aliyuncs.com/frontend/main/icon-zw.png" /></div>
|
<div class="icon"><img src="https://gov-cloud.oss-cn-chengdu.aliyuncs.com/frontend/main/icon-zw.png" /></div>
|
||||||
@ -35,18 +35,7 @@ import { leftApps, rightApps } from '@/micro/app';
|
|||||||
import { getAssetsFile } from '@/utils';
|
import { getAssetsFile } from '@/utils';
|
||||||
|
|
||||||
const gotoPage = (row) => {
|
const gotoPage = (row) => {
|
||||||
// window.history.pushState({}, row.name, row.activeRule);
|
|
||||||
if (row.name == 'sub-app1') {
|
|
||||||
// 政务app
|
|
||||||
// window.location.href = 'https://www.pgyer.com/MXd3uUrO';
|
|
||||||
window.location.href = row.activeRule;
|
window.location.href = row.activeRule;
|
||||||
} else if (row.name == 'sub-app2') {
|
|
||||||
// 运营app
|
|
||||||
// window.location.href = 'https://www.pgyer.com/4SVVtpob';
|
|
||||||
window.location.href = row.activeRule;
|
|
||||||
} else {
|
|
||||||
window.location.href = row.activeRule;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
||||||
<h3 class="title">全域数字农业产业管理平台</h3>
|
<h3 class="title">全域数字农业产业运营管理平台</h3>
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
@ -169,7 +169,7 @@ export default {
|
|||||||
.login-form {
|
.login-form {
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
width: 400px;
|
width: 450px;
|
||||||
padding: 25px 25px 5px 25px;
|
padding: 25px 25px 5px 25px;
|
||||||
.el-input {
|
.el-input {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
|
@ -12,7 +12,6 @@ declare module 'vue' {
|
|||||||
'CenterMap copy': typeof import('./src/components/centerMap copy.vue')['default']
|
'CenterMap copy': typeof import('./src/components/centerMap copy.vue')['default']
|
||||||
CodeDialog: typeof import('./src/components/code-dialog/index.vue')['default']
|
CodeDialog: typeof import('./src/components/code-dialog/index.vue')['default']
|
||||||
Components: typeof import('./src/components/index.js')['default']
|
Components: typeof import('./src/components/index.js')['default']
|
||||||
copy: typeof import('./src/components/centerMap copy.vue')['default']
|
|
||||||
CurrentTime: typeof import('./src/components/currentTime.vue')['default']
|
CurrentTime: typeof import('./src/components/currentTime.vue')['default']
|
||||||
CustomBack: typeof import('./src/components/customBack.vue')['default']
|
CustomBack: typeof import('./src/components/customBack.vue')['default']
|
||||||
CustomCarouselPicture: typeof import('./src/components/custom-carousel-picture/index.vue')['default']
|
CustomCarouselPicture: typeof import('./src/components/custom-carousel-picture/index.vue')['default']
|
||||||
|
@ -12,12 +12,12 @@ import router from './router';
|
|||||||
import pinia from './store';
|
import pinia from './store';
|
||||||
import ElementPlus from 'element-plus';
|
import ElementPlus from 'element-plus';
|
||||||
import 'element-plus/dist/index.css';
|
import 'element-plus/dist/index.css';
|
||||||
import Avue from '@smallwei/avue';
|
// import Avue from '@smallwei/avue';
|
||||||
import '@smallwei/avue/lib/index.css';
|
// import '@smallwei/avue/lib/index.css';
|
||||||
import './utils/permission';
|
import './utils/permission';
|
||||||
import VueAMap, { initAMapApiLoader } from '@vuemap/vue-amap';
|
import VueAMap, { initAMapApiLoader } from '@vuemap/vue-amap';
|
||||||
import { registerDirective } from './directives';
|
import { registerDirective } from './directives';
|
||||||
import { registerGlobalComponents } from './plugins/globalComponents';
|
// import { registerGlobalComponents } from './plugins/globalComponents';
|
||||||
import { registerElIcons } from './plugins/icon';
|
import { registerElIcons } from './plugins/icon';
|
||||||
import { registerMicroApps } from './plugins/micro';
|
import { registerMicroApps } from './plugins/micro';
|
||||||
|
|
||||||
@ -25,9 +25,9 @@ const app = createApp(App);
|
|||||||
// 注册 Vue3 Scroll Seamless 组件
|
// 注册 Vue3 Scroll Seamless 组件
|
||||||
// app.component('Vue3ScrollSeamless', vue3ScrollSeamless);
|
// app.component('Vue3ScrollSeamless', vue3ScrollSeamless);
|
||||||
// app.use(pinia).use(router).use(ElementPlus).use(Avue);
|
// app.use(pinia).use(router).use(ElementPlus).use(Avue);
|
||||||
app.use(pinia).use(router).use(ElementPlus).use(Avue).use(VueAMap);
|
app.use(pinia).use(router).use(ElementPlus).use(VueAMap);
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
registerGlobalComponents(app);
|
// registerGlobalComponents(app);
|
||||||
registerElIcons(app);
|
registerElIcons(app);
|
||||||
registerDirective(app);
|
registerDirective(app);
|
||||||
registerMicroApps(app);
|
registerMicroApps(app);
|
||||||
|
@ -65,19 +65,26 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { nextTick, reactive, onMounted } from 'vue';
|
import { nextTick, reactive, onMounted, defineAsyncComponent } from 'vue';
|
||||||
import landMap from './components/landMap.vue';
|
const landMap = defineAsyncComponent(() => import('./components/landMap.vue'));
|
||||||
import landOne from './components/landOne.vue';
|
const landOne = defineAsyncComponent(() => import('./components/landOne.vue'));
|
||||||
import landTwo from './components/landTwo.vue';
|
const landTwo = defineAsyncComponent(() => import('./components/landTwo.vue'));
|
||||||
import landThere from './components/landThere.vue';
|
const landThere = defineAsyncComponent(() => import('./components/landThere.vue'));
|
||||||
import landFour from './components/landFour.vue';
|
const landFour = defineAsyncComponent(() => import('./components/landFour.vue'));
|
||||||
import landFive from './components/landFive.vue';
|
const landFive = defineAsyncComponent(() => import('./components/landFive.vue'));
|
||||||
import landSix from './components/landSix.vue';
|
const landSix = defineAsyncComponent(() => import('./components/landSix.vue'));
|
||||||
import { useApp } from '@/hooks';
|
const BasicInfo = defineAsyncComponent(() => import('./components/basicInfo.vue'));
|
||||||
|
const Warning = defineAsyncComponent(() => import('@/views/land/components/warning.vue'));
|
||||||
|
// import landMap from './components/landMap.vue';
|
||||||
|
// import landOne from './components/landOne.vue';
|
||||||
|
// import landTwo from './components/landTwo.vue';
|
||||||
|
// import landThere from './components/landThere.vue';
|
||||||
|
// import landFour from './components/landFour.vue';
|
||||||
|
// import landFive from './components/landFive.vue';
|
||||||
|
// import landSix from './components/landSix.vue';
|
||||||
import { sleep } from '@/utils';
|
import { sleep } from '@/utils';
|
||||||
import { GetLandInfo } from '@/apis/land';
|
// import Warning from '@/views/land/components/warning.vue';
|
||||||
import BasicInfo from './components/basicInfo.vue';
|
// import BasicInfo from './components/basicInfo.vue';
|
||||||
import Warning from '@/views/land/components/warning.vue';
|
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
loading: false,
|
loading: false,
|
||||||
|
@ -33,6 +33,16 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
target: 'ESNext',
|
target: 'ESNext',
|
||||||
outDir: 'dist',
|
outDir: 'dist',
|
||||||
minify: 'terser',
|
minify: 'terser',
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
manualChunks: {
|
||||||
|
// 手动分块示例
|
||||||
|
vue: ['vue', 'vue-router', 'pinia'],
|
||||||
|
echarts: ['echarts'],
|
||||||
|
vendor: ['lodash', 'axios'],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "daimp-front",
|
"name": "daimp-front",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "全域数字农业产业管理平台(Digital-Agriculture-Industry-Management-Platform)",
|
"description": "全域数字农业产业运营管理平台(Digital-Agriculture-Industry-Management-Platform)",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"install:all": "npm-run-all install:* ",
|
"install:all": "npm-run-all install:* ",
|
||||||
"install": "npm-run-all --serial install:*",
|
"install": "npm-run-all --serial install:*",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user