From 24c2d5b23faf0648bb4dc85cafe55c67f62c34d4 Mon Sep 17 00:00:00 2001 From: Vce Date: Tue, 23 Apr 2024 20:20:12 +0800 Subject: [PATCH] =?UTF-8?q?dev:=20=E9=83=A8=E7=BD=B2=E4=B8=AD=E6=B0=B4?= =?UTF-8?q?=E5=8C=97=E6=96=B9=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .env.production | 4 +- src/config/config.ts | 3 +- src/config/staticMenu.ts | 202 +++++++++++++++++- src/routers/modules/staticRouter.ts | 4 +- .../projectOverview/centerTop.vue | 3 +- src/views/sevenLargeScreen/indexL.vue | 5 +- 7 files changed, 215 insertions(+), 10 deletions(-) diff --git a/.env.development b/.env.development index 69ce185..74915dd 100644 --- a/.env.development +++ b/.env.development @@ -13,9 +13,9 @@ NODE_ENV = 'development' # 沈阳合盈线上 # VITE_API_URL = "http://101.43.164.214:45022" # 演示平台 -VITE_API_URL = 'http://jxj.zhgdyun.com:9809' +# VITE_API_URL = 'http://jxj.zhgdyun.com:9809' # 百色七参数线上地址 -# 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:15551' # 七参数标准版(测试平台) diff --git a/.env.production b/.env.production index 112d3c9..de78426 100644 --- a/.env.production +++ b/.env.production @@ -12,10 +12,10 @@ 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' +# VITE_API_URL = 'http://jxj.zhgdyun.com:9809' # 七参数标准版(测试平台) # VITE_API_URL = 'http://jxj.zhgdyun.com:15551' # 七参数标准版(测试平台) diff --git a/src/config/config.ts b/src/config/config.ts index 8338c67..eb64326 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -24,9 +24,10 @@ export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL; // 项目环境标识配置 部署时需更改对应的项目 // export const COMPANY: string = ""; //标准版 +export const COMPANY: string = "zsbf"; //中水北方 // export const COMPANY: string = "as"; //鞍山项目 // export const COMPANY: string = "agjt"; //鞍钢集团 -export const COMPANY: string = "agjtCommand"; //鞍钢集团指挥部大屏 +// export const COMPANY: string = "agjtCommand"; //鞍钢集团指挥部大屏 // 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 c78c401..05c47d3 100644 --- a/src/config/staticMenu.ts +++ b/src/config/staticMenu.ts @@ -988,4 +988,204 @@ export const SLXMenu: Array = [ ] }, { moduleName: "BIM模型", modulePath: "/bImModel" } -]; //苏立信项目 \ No newline at end of file +]; //苏立信项目 + +export const ZSBFMenu: Array = [ + { + moduleName: "综合管理", + modulePath: "/projectOverview", + menuList: [ + { + menuName: "工程概况", + companyPath: "/projectOverview" + }, + { + menuName: "智慧党建", + companyPath: "/smartPartyBuilding" + } + ] + }, + { + moduleName: "数字工地", + modulePath: "/videoManagement", + menuList: [ + { + menuName: "视频管理", + companyPath: "/videoManagement" + }, + { + menuName: "AI预警", + companyPath: "/aIEarlyWarning" + }, + { + menuName: "地磅管理", + companyPath: "/loadometerManage" + }, + { + menuName: "车辆管理", + companyPath: "/vehicleManagement" + }, + { + menuName: "配电箱监测", + companyPath: "/distributionMonitoring" + }, + { + menuName: "标养室监测", + companyPath: "/standardCureRoom" + }, + { + menuName: "车辆定位", + companyPath: "/carPosition" + }, + { + menuName: "机械设备定位", + companyPath: "/equipmentPosition" + }, + { + menuName: "智能安全帽", + companyPath: "/smartSafeHat" + } + ] + }, + { + moduleName: "劳务管理", + modulePath: "/laborManagement" + }, + { + moduleName: "安全管理", + modulePath: "/securityManagement", + menuList: [ + { + menuName: "安全管理", + companyPath: "/securityManagement" + }, + { + companyPath: "/foundationPitMonitor", + menuName: "基坑监测" + }, + { + menuName: "隧道定位监测", + companyPath: "/tunnelPosition" + }, + { + menuName: "临边防护", + companyPath: "/edgeProtection" + }, + { + menuName: "有毒气体监测", + companyPath: "/toxicGasMonitor" + }, + { + menuName: "高支模监测", + companyPath: "/highFormwork" + }, + { + menuName: "高边坡监测", + companyPath: "/highSlope" + }, + { + menuName: "烟感监测", + companyPath: "/smokeSensor" + }, + { + menuName: "安全教育", + companyPath: "/safeEducation" + } + ] + }, + { + moduleName: "质量管理", + modulePath: "/qualityManagement", + menuList: [ + { + menuName: "质量管理", + companyPath: "/qualityManagement" + }, + { + menuName: "混凝土测温", + companyPath: "/concreteMonitor" + }, + { + menuName: "进度计划", + companyPath: "/schedulePlan" + } + ] + }, + { + moduleName: "绿色施工", + modulePath: "/headNoise", + menuList: [ + { + menuName: "扬尘噪声", + companyPath: "/headNoise" + }, + { + companyPath: "/electricityMonitor", + menuName: "用电监测" + }, + { + companyPath: "/waterMonitor", + menuName: "用水监测" + }, + { + companyPath: "/sewageMonitor", + menuName: "污水监测" + } + ] + }, + { + moduleName: "大型机械", + modulePath: "/towerCraneMonitoring", + menuList: [ + { + menuName: "塔吊监测", + companyPath: "/towerCraneMonitoring" + }, + { + menuName: "升降机监测", + companyPath: "/elevatorMonitoring" + }, + { + menuName: "卸料平台", + companyPath: "/unloadPlatform" + }, + { + menuName: "混凝土拌合站", + companyPath: "/concreteMixingPlant" + }, + { + menuName: "龙门吊监测", + companyPath: "/gantryCrane" + }, + { + companyPath: "/erectCrane", + menuName: "架桥机" + }, + { + companyPath: "/hangBasket", + menuName: "挂篮监测" + }, + { + companyPath: "/pressureTestMachine", + menuName: "压力试验机" + }, + { + companyPath: "/universalTestMachine", + menuName: "万能试验机" + }, + { + companyPath: "/compressionIntegrate", + menuName: "抗压一体机" + }, + { + companyPath: "/asphaltMixer", + menuName: "沥青拌合站" + }, + { + companyPath: "/waterStabilizedMixer", + menuName: "水稳拌合站" + } + ] + }, + { moduleName: "BIM模型", modulePath: "/bImModel" } +]; //中水北方项目 \ No newline at end of file diff --git a/src/routers/modules/staticRouter.ts b/src/routers/modules/staticRouter.ts index 617fd45..93a541c 100644 --- a/src/routers/modules/staticRouter.ts +++ b/src/routers/modules/staticRouter.ts @@ -24,8 +24,8 @@ export const staticRouter: RouteRecordRaw[] = [ { path: "/large", name: "大屏", - // component: () => import("@/views/sevenLargeScreen/indexL.vue"), //七参数标准版 - component: () => import("@/views/commandScreen/indexCommand.vue"), //指挥部大屏 + component: () => import("@/views/sevenLargeScreen/indexL.vue"), //七参数标准版 + // component: () => import("@/views/commandScreen/indexCommand.vue"), //指挥部大屏 // component: () => import("@/views/sevenLargeScreen/indexL_syhy.vue"), // 只有一级路由(盘锦、嘉兴、鄱湖美湾医疗项目需切换至该首页) children: [ { diff --git a/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerTop.vue b/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerTop.vue index 004020e..64ac720 100644 --- a/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerTop.vue +++ b/src/views/sevenLargeScreen/comprehensiveManage/projectOverview/centerTop.vue @@ -125,7 +125,7 @@ let topText2 = ref([ ]); let topText = ref([ // { id: 1, title: "现场视频", isActive: true }, - { id: 2, title: "宣传视频", isActive: false }, + { id: 2, title: "宣传视频", isActive: true }, { id: 3, title: "效果图", isActive: false } ]); const getVideoList = async () => { @@ -290,6 +290,7 @@ defineExpose({ getQueryBySnData }) onMounted(async () => { + if(COMPANY !== 'agjt') showVideo.value = 2 await getVideoList(); getQueryBySnData(); }); diff --git a/src/views/sevenLargeScreen/indexL.vue b/src/views/sevenLargeScreen/indexL.vue index 36777c9..13ddf81 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 } from "@/config/staticMenu"; +import { JSYCMenu, XJNBMenu, AHSAMenu, HFQCMenu,ASMenu,AGJTMenu,SLXMenu,ZSBFMenu } from "@/config/staticMenu"; import { COMPANY } from "@/config/config"; import { useRouter } from "vue-router"; @@ -486,6 +486,9 @@ onMounted(async () => { if (COMPANY === "slx") { menuList.value = SLXMenu; } + if (COMPANY === "zsbf") { + menuList.value = ZSBFMenu; + } console.log("配置菜单", menuList.value); console.log("当前跳转的路由", router.currentRoute.value);