From 8a605b91fca54761868e19345002d549e6a5bfbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E4=B8=87=E4=BF=8A?= Date: Fri, 17 Oct 2025 17:01:58 +0800 Subject: [PATCH] =?UTF-8?q?fix/=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 24 ++ .env.production | 23 ++ .env.staging | 23 ++ src/layout/components/AppMain.vue | 9 +- src/router/index.js | 27 +- src/store/modules/user.js | 2 +- src/utils/dict.js | 6 +- src/views/Device/deviceControl.vue | 1 - src/views/Security/videoSurveillance.vue | 391 +++++++++++++--------- src/views/areaManage/area.vue | 1 - src/views/areaManage/cabin.vue | 1 - src/views/equipment/electric.vue | 1 - src/views/operationManage/alarm.vue | 1 - src/views/operationManage/maintenance.vue | 3 +- src/views/operationManage/patrol.vue | 1 - src/views/operationManage/report.vue | 1 - src/views/plan.vue | 1 - src/views/system/log/index.vue | 1 - src/views/system/user/index.vue | 1 - 19 files changed, 349 insertions(+), 169 deletions(-) create mode 100644 .env.development create mode 100644 .env.production create mode 100644 .env.staging diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..d4b87a5 --- /dev/null +++ b/.env.development @@ -0,0 +1,24 @@ +### + # @Author: 季万俊 + # @Date: 2025-09-04 19:58:43 + # @Description: +### +# 页面标题 +VUE_APP_TITLE = 十堰运维 + +# 开发环境配置 +ENV = 'development' + +# 若依管理系统/开发环境 +VITE_APP_BASE_API = '/' +# VITE_APP_BASE_API = '/dev-api' +# VUE_APP_CONTROL_BASE_API = '/control-api' +VITE_VUE_APP_CONTROL_BASE_API = 'http://172.16.1.253:12310/api' +VITE_VUE_APP_SERVER_BASE_API = '/control-api/Server' +#VUE_APP_MONITOR_URL='http://172.16.1.147:8083/cn/demo.html' +VITE_VUE_APP_MONITOR_URL='http://172.16.1.138:8666/cn/camera.html' +VITE_VUE_LOGIN_USERNAME = 'admin' +VITE_VUE_LOGIN_PASSWORD = 'admin123' + +# 路由懒加载 +VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..2407efb --- /dev/null +++ b/.env.production @@ -0,0 +1,23 @@ +### + # @Author: 季万俊 + # @Date: 2025-09-04 19:58:43 + # @Description: +### +# 页面标题 +VUE_APP_TITLE = 十堰运维 + +# 开发环境配置 +ENV = 'development' + +# 若依管理系统/开发环境 +VITE_APP_BASE_API = '/dev-api' +# VUE_APP_CONTROL_BASE_API = '/control-api' +VITE_VUE_APP_CONTROL_BASE_API = 'http://172.16.1.253:12310/api' +VITE_VUE_APP_SERVER_BASE_API = '/control-api/Server' +#VUE_APP_MONITOR_URL='http://172.16.1.147:8083/cn/demo.html' +VITE_VUE_APP_MONITOR_URL='http://172.16.1.138:8666/cn/camera.html' +VITE_VUE_LOGIN_USERNAME = 'admin' +VITE_VUE_LOGIN_PASSWORD = 'admin123' + +# 路由懒加载 +VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.staging b/.env.staging new file mode 100644 index 0000000..2407efb --- /dev/null +++ b/.env.staging @@ -0,0 +1,23 @@ +### + # @Author: 季万俊 + # @Date: 2025-09-04 19:58:43 + # @Description: +### +# 页面标题 +VUE_APP_TITLE = 十堰运维 + +# 开发环境配置 +ENV = 'development' + +# 若依管理系统/开发环境 +VITE_APP_BASE_API = '/dev-api' +# VUE_APP_CONTROL_BASE_API = '/control-api' +VITE_VUE_APP_CONTROL_BASE_API = 'http://172.16.1.253:12310/api' +VITE_VUE_APP_SERVER_BASE_API = '/control-api/Server' +#VUE_APP_MONITOR_URL='http://172.16.1.147:8083/cn/demo.html' +VITE_VUE_APP_MONITOR_URL='http://172.16.1.138:8666/cn/camera.html' +VITE_VUE_LOGIN_USERNAME = 'admin' +VITE_VUE_LOGIN_PASSWORD = 'admin123' + +# 路由懒加载 +VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 71c0dd8..fd3ef71 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,3 +1,8 @@ +