From 86020fcf89a326c11d9382a64f64b10f88d13bcc Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Tue, 18 Jun 2024 18:28:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=AD=E7=A7=91=E4=BD=B3=E6=88=90?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=8E=AF=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.development | 4 +- .env.production | 7 +-- src/config/config.ts | 3 +- src/config/staticMenu.ts | 65 ++++++++++++++++++++++++++- src/views/sevenLargeScreen/indexL.vue | 11 ++++- 5 files changed, 83 insertions(+), 7 deletions(-) diff --git a/.env.development b/.env.development index bea64cc..0ebd414 100644 --- a/.env.development +++ b/.env.development @@ -27,9 +27,11 @@ NODE_ENV = 'development' # VITE_API_URL = 'http://42.180.188.17:11211' #测试环境 # VITE_API_URL = 'http://jxj.zhgdyun.com:19812' # 苏立信/重庆市南岸区 -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://1.13.185.209:8089' # 上传 VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url=' diff --git a/.env.production b/.env.production index 5b45782..f0d3609 100644 --- a/.env.production +++ b/.env.production @@ -24,10 +24,11 @@ NODE_ENV = "production" # VITE_API_URL = 'http://42.180.188.17:9809' #生产环境 # 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_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url=' diff --git a/src/config/config.ts b/src/config/config.ts index 4c66a0a..f3f1247 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -32,7 +32,8 @@ export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL; // export const COMPANY: string = "agjtCommand"; //鞍钢集团指挥部大屏 // export const COMPANY: string = "agjtProjectKanban"; //鞍钢集团项目看板大屏 // export const COMPANY: string = "agjtOverviewScreen"; //鞍钢集团项目总览 -export const COMPANY: string = "cqna"; //重庆市南岸区 +export const COMPANY: string = "zkjc"; //中科佳成项目 +// export const COMPANY: string = "cqna"; //重庆南岸项目 // export const COMPANY: string = "slx"; //苏立信项目 // export const COMPANY: string = "hfqc"; //合肥启程项目 // export const COMPANY: string = "jsyc"; // 江苏盐城项目 diff --git a/src/config/staticMenu.ts b/src/config/staticMenu.ts index b3926ec..564a69b 100644 --- a/src/config/staticMenu.ts +++ b/src/config/staticMenu.ts @@ -1370,4 +1370,67 @@ export const CQNAMenu: Array = [ moduleName: "进度计划", modulePath: "/schedulePlan" } -]; //重庆南岸大屏 \ No newline at end of file +]; //重庆南岸大屏 + +export const ZKJCMenu: Array = [ + { + moduleName: "综合管理", + modulePath: "/projectOverview", + menuList: [ + { + menuName: "工程概况", + companyPath: "/projectOverview" + } + ] + }, + { + moduleName: "数字工地", + modulePath: "/videoManagement", + menuList: [ + { + menuName: "视频管理", + companyPath: "/videoManagement" + }, + { + menuName: "AI预警", + companyPath: "/aIEarlyWarning" + }, + { + menuName: "车辆管理", + companyPath: "/vehicleManagement" + }, + { + menuName: "智能安全帽", + companyPath: "/smartSafeHat" + } + ] + }, + { + moduleName: "劳务管理", + modulePath: "/laborManagement", + menuList: [ + { + menuName: "劳务管理", + companyPath: "/laborManagement" + } + ] + }, + { + moduleName: "绿色施工", + modulePath: "/headNoise", + menuList: [ + { + menuName: "扬尘噪声", + companyPath: "/headNoise" + }, + { + companyPath: "/electricityMonitor", + menuName: "用电监测" + }, + { + companyPath: "/waterMonitor", + menuName: "用水监测" + } + ] + } +]; //中科佳成大屏 \ No newline at end of file diff --git a/src/views/sevenLargeScreen/indexL.vue b/src/views/sevenLargeScreen/indexL.vue index 95d726b..f66dc3f 100644 --- a/src/views/sevenLargeScreen/indexL.vue +++ b/src/views/sevenLargeScreen/indexL.vue @@ -97,7 +97,7 @@ import ScaleBox from "vue3-scale-box"; import { ref, reactive, onMounted, onBeforeUnmount, computed } from "vue"; import { getTaskTimeDetail } from "@/api/modules/schedulePlan"; import { jumpLargeUserInfoApi } from "@/api/modules/login"; -import { JSYCMenu, XJNBMenu, AHSAMenu, HFQCMenu,ASMenu,AGJTMenu,SLXMenu,ZSBFMenu,ZHZRFMenu, ZKAXMenu, CQNAMenu } from "@/config/staticMenu"; +import { JSYCMenu, XJNBMenu, AHSAMenu, HFQCMenu,ASMenu,AGJTMenu,SLXMenu,ZSBFMenu,ZHZRFMenu, ZKAXMenu, CQNAMenu, ZKJCMenu } from "@/config/staticMenu"; import { COMPANY } from "@/config/config"; import { useRouter } from "vue-router"; @@ -498,6 +498,9 @@ onMounted(async () => { if (COMPANY === "cqna") { menuList.value = CQNAMenu; } + if (COMPANY === "zkjc") { + menuList.value = ZKJCMenu; + } console.log("配置菜单", menuList.value); console.log("当前跳转的路由", router.currentRoute.value); // await getAllModelMenu(); @@ -529,6 +532,12 @@ onMounted(async () => { dataBoardContent.style.height = '85%' dataBoardContent.style.margin = '30px auto 16px auto' } + if (COMPANY === 'zkjc'){ + subMenus[1].style.marginLeft = "5%"; + subMenus[1].style.marginRight = "auto"; + subMenus[2].style.marginRight = "5%"; + subMenus[3].style.marginRight = "5%"; + } await getProjectInfo();