fix: 新项目环境添加

This commit is contained in:
kun 2024-06-27 18:41:42 +08:00
parent f88685355c
commit 06a534e4c5
4 changed files with 49 additions and 10 deletions

View File

@ -12,7 +12,7 @@ NODE_ENV = "production"
# VITE_API_URL = "http://183.249.224.118:9003" # 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' # VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
@ -22,14 +22,14 @@ NODE_ENV = "production"
# VITE_API_URL = 'http://182.90.224.237:15551' # VITE_API_URL = 'http://182.90.224.237:15551'
# agjt # agjt
# VITE_API_URL = 'http://42.180.188.17:9809' #生产环境 # 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://101.43.164.214:11111'
# 中科安信 # 中科安信
# VITE_API_URL = 'http://8.136.222.164:8808' # VITE_API_URL = 'http://8.136.222.164:8808'
# 中科佳成 # 中科佳成
# VITE_API_URL = 'http://1.13.185.209:8089' # VITE_API_URL = 'http://1.13.185.209:8089'
# 合肥启程 # 合肥启程(乌丹)
# VITE_API_URL = 'http://192.168.100.4:9809' # VITE_API_URL = 'http://192.168.100.4:9809'
# 打包 # 打包
VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url=' VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url='

View File

@ -23,7 +23,7 @@ export const BAIDU_MAP_KEY: string = "";
export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL; 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 = "zhzrf"; //中海·臻如府
// export const COMPANY: string = "zsbf"; //中水北方 // export const COMPANY: string = "zsbf"; //中水北方
// export const COMPANY: string = "as"; //鞍山项目 // export const COMPANY: string = "as"; //鞍山项目
@ -33,9 +33,10 @@ export const COMPANY: string = ""; //标准版
// export const COMPANY: string = "agjtProjectKanban"; //鞍钢集团项目看板大屏 // export const COMPANY: string = "agjtProjectKanban"; //鞍钢集团项目看板大屏
// export const COMPANY: string = "agjtOverviewScreen"; //鞍钢集团项目总览 // export const COMPANY: string = "agjtOverviewScreen"; //鞍钢集团项目总览
// export const COMPANY: string = "zkjc"; //中科佳成项目 // export const COMPANY: string = "zkjc"; //中科佳成项目
// export const COMPANY: string = "cqna"; //重庆南岸项目 export const COMPANY: string = "cqna"; //重庆南岸项目
// export const COMPANY: string = "slx"; //苏立信项目 // 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 = "jsyc"; // 江苏盐城项目
// export const COMPANY: string = "syhy"; //沈阳合盈盘锦项目 (需要去src\routers\modules\staticRouter.ts更换首页) // export const COMPANY: string = "syhy"; //沈阳合盈盘锦项目 (需要去src\routers\modules\staticRouter.ts更换首页)
// export const COMPANY: string = "jxwjj"; //嘉兴王江泾公用码头项目 (需要去src\routers\modules\staticRouter.ts更换首页) // export const COMPANY: string = "jxwjj"; //嘉兴王江泾公用码头项目 (需要去src\routers\modules\staticRouter.ts更换首页)

View File

@ -497,11 +497,11 @@ export const HFQCMenu: Array<any> = [
}, },
{ {
menuName: "外墙脚手架监测", menuName: "外墙脚手架监测",
companyPath: "/wallScaffold" companyPath: "/wallScaffold2"
}, },
{ {
menuName: "临边防护", menuName: "临边防护",
companyPath: "/edgeProtection2" companyPath: "/newEdgeProtection"
} }
// { // {
// menuName: "智能烟感监测", // menuName: "智能烟感监测",
@ -1372,6 +1372,14 @@ export const CQNAMenu: Array<any> = [
{ {
moduleName: "进度计划", moduleName: "进度计划",
modulePath: "/schedulePlan" modulePath: "/schedulePlan"
},
{
moduleName: "AI预警",
modulePath: "/aIEarlyWarning"
},
{
moduleName: "视频管理",
modulePath: "/videoManagement"
} }
]; //重庆南岸大屏 ]; //重庆南岸大屏
@ -1437,3 +1445,29 @@ export const ZKJCMenu: Array<any> = [
] ]
} }
]; //中科佳成大屏 ]; //中科佳成大屏
export const CPGSMenu: Array<any> = [
{
moduleName: "首页概览",
modulePath: "/projectOverview"
},
{
moduleName: "劳务管理",
modulePath: "/laborManagement"
},
{
moduleName: "质量管理",
modulePath: "/qualityManagement"
},
{
moduleName: "安全管理",
modulePath: "/securityManagement"
},
{
moduleName: "AI预警",
modulePath: "/aIEarlyWarning"
},
{
moduleName: "视频管理",
modulePath: "/videoManagement"
}
]; //成平高速大屏

View File

@ -120,7 +120,8 @@ import {
ZHZRFMenu, ZHZRFMenu,
ZKAXMenu, ZKAXMenu,
CQNAMenu, CQNAMenu,
ZKJCMenu ZKJCMenu,
CPGSMenu
} from "@/config/staticMenu"; } from "@/config/staticMenu";
import { COMPANY } from "@/config/config"; import { COMPANY } from "@/config/config";
@ -534,6 +535,9 @@ onMounted(async () => {
if (COMPANY === "zkjc") { if (COMPANY === "zkjc") {
menuList.value = ZKJCMenu; menuList.value = ZKJCMenu;
} }
if (COMPANY === "cpgs") {
menuList.value = CPGSMenu;
}
console.log("配置菜单", menuList.value); console.log("配置菜单", menuList.value);
console.log("当前跳转的路由", router.currentRoute.value); console.log("当前跳转的路由", router.currentRoute.value);
// await getAllModelMenu(); // await getAllModelMenu();
@ -615,7 +619,7 @@ function loginOut() {
} }
// //
function jumpBgd() { function jumpBgd() {
const envList = ["agjt", "zkax", "zkjc", "hfqc"]; // const envList = ["agjt", "zkax", "zkjc", "hfqc", "cpgs", "cqna"]; //
// //
if (COMPANY == "") { if (COMPANY == "") {
window.location.replace("http://jxj.zhgdyun.com:100/#/login?token=" + store.token); window.location.replace("http://jxj.zhgdyun.com:100/#/login?token=" + store.token);