打包鞍钢集团项目

This commit is contained in:
Vce 2024-04-05 17:42:04 +08:00
parent 7a9ac68823
commit 9cfac25c3a
5 changed files with 93 additions and 6 deletions

View File

@ -19,7 +19,9 @@ NODE_ENV = 'development'
# 七参数标准版(测试平台)
# VITE_API_URL = 'http://jxj.zhgdyun.com:15551'
# 七参数标准版(测试平台)
VITE_API_URL = 'http://182.90.224.237:15551'
# VITE_API_URL = 'http://182.90.224.237:15551'
# agjt
VITE_API_URL = 'http://angang.xingzong.tech:9809'
# 上传
VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='

View File

@ -19,7 +19,9 @@ NODE_ENV = "production"
# 七参数标准版(测试平台)
# VITE_API_URL = 'http://jxj.zhgdyun.com:15551'
# 七参数标准版(测试平台)
VITE_API_URL = 'http://182.90.224.237:15551'
# VITE_API_URL = 'http://182.90.224.237:15551'
# agjt
VITE_API_URL = 'http://angang.xingzong.tech:9809'
# 打包
VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url='

View File

@ -24,7 +24,8 @@ export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL;
// 项目环境标识配置 部署时需更改对应的项目
// export const COMPANY: string = ""; //标准版
export const COMPANY: string = "as"; //鞍山项目
// export const COMPANY: string = "as"; //鞍山项目
export const COMPANY: string = "agjt"; //鞍钢集团
// export const COMPANY: string = "hfqc"; //合肥启程项目
// export const COMPANY: string = "jsyc"; // 江苏盐城项目
// export const COMPANY: string = "syhy"; //沈阳合盈盘锦项目 (需要去src\routers\modules\staticRouter.ts更换首页)

View File

@ -715,4 +715,77 @@ export const ASMenu: Array<any> = [
]
},
{ moduleName: "BIM模型", modulePath: "/bImModel" }
]; //鞍山
]; //鞍山
export const AGJTMenu: Array<any> = [
{
moduleName: "工程概况",
modulePath: "/projectOverview",
// menuList: [
// {
// menuName: "工程概况",
// companyPath: "/projectOverview"
// }
// ]
},
{
moduleName: "劳务管理",
modulePath: "/laborManagement",
// menuList: [
// {
// menuName: "劳务管理",
// companyPath: "/laborManagement"
// }
// ]
},
{
moduleName: "车辆管理",
modulePath: "/vehicleManagement",
// menuList: [
// {
// menuName: "车辆管理",
// companyPath: "/vehicleManagement"
// },
// ]
},
{
moduleName: "视频监控",
modulePath: "/videoManagement",
// menuList: [
// {
// menuName: "视频监控",
// companyPath: "/videoManagement"
// }
// ]
},
{
moduleName: "AI预警",
modulePath: "/aIEarlyWarning",
// menuList: [
// {
// menuName: "AI预警",
// companyPath: "/aIEarlyWarning"
// },
// ]
},
{
moduleName: "安全管理",
modulePath: "/securityManagement",
// menuList: [
// {
// menuName: "安全管理",
// companyPath: "/securityManagement"
// },
// ]
},
{
moduleName: "质量管理",
modulePath: "/qualityManagement",
// menuList: [
// {
// menuName: "质量管理",
// companyPath: "/qualityManagement"
// },
// ]
},
]

View File

@ -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 } from "@/config/staticMenu";
import { JSYCMenu, XJNBMenu, AHSAMenu, HFQCMenu,ASMenu,AGJTMenu } from "@/config/staticMenu";
import { COMPANY } from "@/config/config";
import { useRouter } from "vue-router";
@ -436,7 +436,7 @@ const getAllModelMenu = () => {
});
console.log("筛选出的数据看板路由", menuList.value);
};
const dataBoardContent = document.querySelector(".dataBoardContent");
const navigateTo = (path, type) => {
console.log("点击的路由---", path, type);
if (type == 1) {
@ -450,6 +450,7 @@ const navigateTo = (path, type) => {
}
};
onMounted(async () => {
if (window.location.href.indexOf("token") != -1) {
console.log("免登录跳转进来了吗----", window.location.href.indexOf("token"));
const newToken = window.location.href.split("token=")[1];
@ -476,6 +477,9 @@ onMounted(async () => {
if (COMPANY === "as") {
menuList.value = ASMenu;
}
if (COMPANY === "agjt") {
menuList.value = AGJTMenu;
}
console.log("配置菜单", menuList.value);
console.log("当前跳转的路由", router.currentRoute.value);
@ -494,12 +498,17 @@ onMounted(async () => {
getNowTime();
document.addEventListener("click", bodyCloseMenus);
const subMenus = document.querySelectorAll(".menStyle");
const dataBoardContent = document.querySelector(".dataBoardContent");
if (subMenus.length >= 5 && COMPANY !== 'hfqc') {
subMenus[4].style.marginLeft = "30%";
}
if (COMPANY === 'hfqc'){
subMenus[3].style.marginLeft = "44%";
}
if(COMPANY === 'agjt'){
dataBoardContent.style.height = '85%'
dataBoardContent.style.margin = '30px auto 16px auto'
}
await getProjectInfo();