From 06a534e4c5d987e9e0a69f1b60f92a94734392c1 Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Thu, 27 Jun 2024 18:41:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E9=A1=B9=E7=9B=AE=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 6 ++--- src/config/config.ts | 7 ++--- src/config/staticMenu.ts | 38 +++++++++++++++++++++++++-- src/views/sevenLargeScreen/indexL.vue | 8 ++++-- 4 files changed, 49 insertions(+), 10 deletions(-) diff --git a/.env.production b/.env.production index d0dc8f7..57d5fa0 100644 --- a/.env.production +++ b/.env.production @@ -12,7 +12,7 @@ NODE_ENV = "production" # VITE_API_URL = "http://183.249.224.118:9003" # 百色 新项目通用地址 -# VITE_API_URL = 'http://101.43.164.214:11111' +VITE_API_URL = 'http://101.43.164.214:11111' # 七参数标准版(演示平台) # VITE_API_URL = 'http://jxj.zhgdyun.com:9809' @@ -22,14 +22,14 @@ NODE_ENV = "production" # VITE_API_URL = 'http://182.90.224.237:15551' # agjt # VITE_API_URL = 'http://42.180.188.17:9809' #生产环境 -VITE_API_URL = 'http://42.180.188.17:11211' #测试环境 +# VITE_API_URL = 'http://42.180.188.17:11211' #测试环境 # 苏立信/重庆市南岸区 # VITE_API_URL = 'http://101.43.164.214:11111' # 中科安信 # VITE_API_URL = 'http://8.136.222.164:8808' # 中科佳成 # VITE_API_URL = 'http://1.13.185.209:8089' -# 合肥启程 +# 合肥启程(乌丹) # VITE_API_URL = 'http://192.168.100.4:9809' # 打包 VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url=' diff --git a/src/config/config.ts b/src/config/config.ts index 1ebdda5..3a53ee5 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -23,7 +23,7 @@ export const BAIDU_MAP_KEY: string = ""; export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL; // 项目环境标识配置 部署时需更改对应的项目 -export const COMPANY: string = ""; //标准版 +// export const COMPANY: string = ""; //标准版 // export const COMPANY: string = "zhzrf"; //中海·臻如府 // export const COMPANY: string = "zsbf"; //中水北方 // export const COMPANY: string = "as"; //鞍山项目 @@ -33,9 +33,10 @@ export const COMPANY: string = ""; //标准版 // export const COMPANY: string = "agjtProjectKanban"; //鞍钢集团项目看板大屏 // export const COMPANY: string = "agjtOverviewScreen"; //鞍钢集团项目总览 // export const COMPANY: string = "zkjc"; //中科佳成项目 -// export const COMPANY: string = "cqna"; //重庆南岸项目 +export const COMPANY: string = "cqna"; //重庆南岸项目 // export const COMPANY: string = "slx"; //苏立信项目 -// export const COMPANY: string = "hfqc"; //合肥启程项目 +// export const COMPANY: string = "hfqc"; //合肥启程(乌丹)项目 +// export const COMPANY: string = "cpgs"; //成平高速项目 // export const COMPANY: string = "jsyc"; // 江苏盐城项目 // export const COMPANY: string = "syhy"; //沈阳合盈盘锦项目 (需要去src\routers\modules\staticRouter.ts更换首页) // export const COMPANY: string = "jxwjj"; //嘉兴王江泾公用码头项目 (需要去src\routers\modules\staticRouter.ts更换首页) diff --git a/src/config/staticMenu.ts b/src/config/staticMenu.ts index 1bc2908..6bd7c29 100644 --- a/src/config/staticMenu.ts +++ b/src/config/staticMenu.ts @@ -497,11 +497,11 @@ export const HFQCMenu: Array = [ }, { menuName: "外墙脚手架监测", - companyPath: "/wallScaffold" + companyPath: "/wallScaffold2" }, { menuName: "临边防护", - companyPath: "/edgeProtection2" + companyPath: "/newEdgeProtection" } // { // menuName: "智能烟感监测", @@ -1372,6 +1372,14 @@ export const CQNAMenu: Array = [ { moduleName: "进度计划", modulePath: "/schedulePlan" + }, + { + moduleName: "AI预警", + modulePath: "/aIEarlyWarning" + }, + { + moduleName: "视频管理", + modulePath: "/videoManagement" } ]; //重庆南岸大屏 @@ -1437,3 +1445,29 @@ export const ZKJCMenu: Array = [ ] } ]; //中科佳成大屏 +export const CPGSMenu: Array = [ + { + moduleName: "首页概览", + modulePath: "/projectOverview" + }, + { + moduleName: "劳务管理", + modulePath: "/laborManagement" + }, + { + moduleName: "质量管理", + modulePath: "/qualityManagement" + }, + { + moduleName: "安全管理", + modulePath: "/securityManagement" + }, + { + moduleName: "AI预警", + modulePath: "/aIEarlyWarning" + }, + { + moduleName: "视频管理", + modulePath: "/videoManagement" + } +]; //成平高速大屏 diff --git a/src/views/sevenLargeScreen/indexL.vue b/src/views/sevenLargeScreen/indexL.vue index cf40957..3b6f6e9 100644 --- a/src/views/sevenLargeScreen/indexL.vue +++ b/src/views/sevenLargeScreen/indexL.vue @@ -120,7 +120,8 @@ import { ZHZRFMenu, ZKAXMenu, CQNAMenu, - ZKJCMenu + ZKJCMenu, + CPGSMenu } from "@/config/staticMenu"; import { COMPANY } from "@/config/config"; @@ -534,6 +535,9 @@ onMounted(async () => { if (COMPANY === "zkjc") { menuList.value = ZKJCMenu; } + if (COMPANY === "cpgs") { + menuList.value = CPGSMenu; + } console.log("配置菜单", menuList.value); console.log("当前跳转的路由", router.currentRoute.value); // await getAllModelMenu(); @@ -615,7 +619,7 @@ function loginOut() { } //跳转后台 function jumpBgd() { - const envList = ["agjt", "zkax", "zkjc", "hfqc"]; // 环境标识 + const envList = ["agjt", "zkax", "zkjc", "hfqc", "cpgs", "cqna"]; // 环境标识 // 标准版——跳转演示平台项目后台 if (COMPANY == "") { window.location.replace("http://jxj.zhgdyun.com:100/#/login?token=" + store.token);