fix: 榕图江坑项目定制开发内容

This commit is contained in:
cjp 2023-12-22 11:12:28 +08:00
parent 9679950f06
commit 191051e58c
11 changed files with 425 additions and 242 deletions

View File

@ -2,7 +2,7 @@
NODE_ENV = 'development'
# 本地环境接口地址(/api/index.ts文件中使用)
VITE_API_URL = 'http://192.168.34.221:30002'
# VITE_API_URL = 'http://192.168.34.221:30002'
# VITE_API_URL = 'http://192.168.34.221:28888'
# VITE_API_URL = 'http://121.196.214.246/api'
# VITE_API_URL = 'http://jxj.zhgdyun.com:100'
@ -12,7 +12,7 @@ VITE_API_URL = 'http://192.168.34.221:30002'
# 演示平台
# VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
# 百色七参数线上地址
# VITE_API_URL = 'http://101.43.164.214:11113'
VITE_API_URL = 'http://101.43.164.214:11113'
# 上传
VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='

View File

@ -10,10 +10,11 @@ NODE_ENV = "production"
# 嘉兴王江泾公用码头
# VITE_API_URL = "http://183.249.224.118:9003"
VITE_API_URL = 'http://101.43.164.214:11113'
# 七参数标准版(演示平台)
VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
# VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
# 七参数标准版(测试平台)
# VITE_API_URL = 'http://jxj.zhgdyun.com:15551'

View File

@ -0,0 +1,30 @@
<template>
<div class="bimBox">
<iframe :src="url" frameborder="0" width="100%" height="100%" id="iframe"></iframe>
</div>
</template>
<script lang="ts" setup>
import { GlobalStore } from "@/stores";
import { ref, onMounted } from "vue";
const url = ref("");
// ts
// type Props = {
// iframeUrl?: any; // url
// };
// // withDefaults ()
// const props = withDefaults(defineProps<Props>(), {
// iframeUrl: "",
// });
onMounted(() => {
url.value = "";
});
</script>
<style lang="scss" scoped>
.bimBox {
width: 100%;
height: 100%;
}
</style>

View File

@ -216,6 +216,21 @@ export const staticRouter: RouteRecordRaw[] = [
path: "/schedulePlan",
name: "进度管理",
component: () => import("@/views/sevenLargeScreen/qualityControl/schedulePlan/index.vue")
},
{
path: "/riskManage",
name: "安全风险",
component: () => import("@/views/sevenLargeScreen/safeRisk/riskManage.vue")
},
{
path: "/warehouseManage",
name: "仓库管理",
component: () => import("@/views/sevenLargeScreen/safeRisk/warehouseManage.vue")
},
{
path: "/generalManage",
name: "综合管理",
component: () => import("@/views/sevenLargeScreen/safeRisk/generalManage.vue")
}
],
meta: {

View File

@ -90,8 +90,8 @@ const showChangeImg = ref(false as any);
const showChangeVideo = ref(false as any);
let topText = ref([
{ id: 1, title: "宣传视频", isActive: true },
{ id: 2, title: "效果图", isActive: false }
{ id: 1, title: "全景视频", isActive: true },
{ id: 2, title: "3D图片", isActive: false }
]);
function boxStyle(item: any) {

View File

@ -1,7 +1,7 @@
<template>
<div class="leftTop">
<Card title="项目信息">
<div class="projectInfo">
<!-- <div class="projectInfo">
<div><span>项目名称</span> {{ projectData.projectName || "" }}</div>
<div :title="projectLocal"><span>项目地址</span> {{ projectLocal }}</div>
<div><span>项目经理</span> {{ projectData.projectManage || "" }}</div>
@ -10,8 +10,8 @@
<div><span>开工日期</span> {{ projectData.startWorkDate || "" }}</div>
<div><span>项目编号</span> {{ projectData.projectNumber || "" }}</div>
<div><span>工程类别</span> {{ projectData.projectType ? projectTypeEnum[projectData.projectType - 1].name : "" }}</div>
</div>
<!-- <div class="projectInfo">
</div> -->
<div class="projectInfo">
<div><span>建设地点</span> 南平市建阳区</div>
<div><span>变电容量</span> 2x50兆伏安</div>
<div><span>间隔名称</span> 110千伏江坑问隔</div>
@ -19,7 +19,7 @@
<div><span>电缆长度</span> 0.31公里</div>
<div><span>通讯光缆</span> 74.79公里</div>
<div><span>总投资</span> 11762万元</div>
</div> -->
</div>
</Card>
</div>
</template>

View File

@ -5,7 +5,10 @@
<!-- <div class="hearderIcon"><img src="@/assets/images/jxjLogo.png" alt="" /></div> -->
<span class="projectTitle">
<p>数字化项目监管平台</p>
<!-- <p>江坑110kv变电站智慧工地</p> -->
</span>
<span class="projectSmallTitle">
<!-- <p>数字化项目监管平台</p> -->
<p>江坑110kv变电站智慧工地</p>
</span>
<div class="rightIcon" @click.stop>
<div class="time">{{ nowTime }}</div>
@ -82,6 +85,7 @@
import ScaleBox from "vue3-scale-box";
import { ref, reactive, onMounted, onBeforeUnmount } from "vue";
import { getTaskTimeDetail } from "@/api/modules/schedulePlan";
import { jumpLargeUserInfoApi } from "@/api/modules/login";
import { useRouter } from "vue-router";
import { GlobalStore } from "@/stores";
const store = GlobalStore();
@ -120,39 +124,9 @@ function getNowDate() {
let showUserBox = ref(false as any);
let adminName = ref("" as any);
// let menuList = ref([
// {
// moduleName: "",
// modulePath: "/projectOverview"
// },
// {
// moduleName: "",
// modulePath: "/smartPartyBuilding"
// },
// {
// moduleName: "",
// modulePath: "/headNoise"
// },
// {
// moduleName: "",
// modulePath: "/laborManagement"
// },
// {
// moduleName: "",
// modulePath: "/videoManagement"
// },
// {
// moduleName: "",
// modulePath: "/distributionMonitoring"
// },
// {
// moduleName: "AI",
// modulePath: "/aIEarlyWarning"
// }
// ]);
let menuList = ref([
{
moduleName: "综合管理",
{
moduleName: "决策看板",
modulePath: "/projectOverview",
menuList: [
{
@ -165,105 +139,7 @@ let menuList = ref([
}
]
},
{
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"
}
]
},
{
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: [
@ -279,68 +155,245 @@ let menuList = ref([
companyPath: "/waterMonitor",
menuName: "用水监测"
},
]
},
{
moduleName: "视频监控",
modulePath: "/videoManagement",
menuList: [
{
companyPath: "/sewageMonitor",
menuName: "污水监测"
menuName: "视频监控",
companyPath: "/videoManagement"
}
]
},
{
moduleName: "大型机械",
modulePath: "/towerCraneMonitoring",
moduleName: "进度管控",
modulePath: "/schedulePlan",
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: "水稳拌合站"
menuName: "进度管控",
companyPath: "/schedulePlan"
}
]
},
{ moduleName: "BIM模型", modulePath: "/bImModel" }
{
moduleName: "安全风险",
modulePath: "/riskManage",
menuList: [
{
menuName: "安全管理",
companyPath: "/riskManage"
},
{
menuName: "仓库管理",
companyPath: "/warehouseManage"
},
]
},
{
moduleName: "综合管理",
modulePath: "/generalManage",
menuList: [
{
menuName: "综合管理",
companyPath: "/generalManage"
}
]
}
]);
// let menuList = ref([
// {
// 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"
// }
// ]
// },
// {
// 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" }
// ]);
const itemList = ref([]);
const activeTab = ref(0);
const activeTab2 = ref(0);
@ -376,17 +429,14 @@ onMounted(async () => {
activeTab.value = menuList.value[0].modulePath;
activeTab2.value = menuList.value[0].modulePath;
itemList.value = menuList.value[0].menuList;
await getProjectInfo();
//
if (window.location.href.indexOf("token") != -1) {
const token = window.location.href.split("token=")[1];
const res = await fetch(import.meta.env.VITE_API_URL + "/xmgl/base/getLoginInfoByToken", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({ token: token })
});
console.log("跳转进来了吗----", window.location.href.indexOf("token"));
const newToken = window.location.href.split("token=")[1];
const data = await jumpLargeUserInfoApi({ token: newToken });
console.log("跳转请求的数据----", data.result);
store.setSN(data.result.sn);
store.setToken(data.result.token);
store.setAccount(data.result.account);
@ -403,7 +453,9 @@ onMounted(async () => {
// });
// console.log("", moduleListData.value);
}
navigateTo(menuList.value[0], 1);
activeTab.value = menuList.value[0].modulePath;
itemList.value = menuList.value[0].menuList;
// console.log(" ");
adminName.value = store.account;
// console.log("store", store.account);
@ -412,8 +464,9 @@ onMounted(async () => {
document.addEventListener("click", bodyCloseMenus);
const subMenus = document.querySelectorAll(".menStyle");
if (subMenus.length >= 5) {
subMenus[4].style.marginLeft = "30%";
subMenus[3].style.marginLeft = "40%";
}
await getProjectInfo();
});
let timer = ref(null as any);
@ -453,7 +506,7 @@ function loginOut() {
}
//
function jumpBgd() {
window.location.replace("http://jxj.zhgdyun.com:100");
window.location.replace("http://101.43.164.214:11111/#/projectIndex");
}
</script>
@ -476,10 +529,20 @@ function jumpBgd() {
background: url("@/assets/images/headerImg.webp") no-repeat;
background-size: 100% 100%;
.projectTitle {
display: flex;
justify-content: center;
font-size: 38px;
color: #fff;
font-family: YouSheBiaoTiHei;
}
.projectSmallTitle {
position: absolute;
top: 6%;
left: 44%;
display: flex;
align-items: center;
justify-content: center;
font-size: 44px;
font-size: 20px;
color: #fff;
font-family: YouSheBiaoTiHei;
}

View File

@ -6,12 +6,11 @@
<!-- 顶部左上角图片 -->
<!-- <div class="hearderIcon"><img src="@/assets/images/headerLeftIcon.png" alt="" /></div> -->
<span class="projectTitle">
<p v-if="COMPANY === 'syhy'">数字化智慧综合管控平台</p>
<p v-else>数字化项目监管平台</p>
<p>数字化项目监管平台</p>
</span>
<span class="projectSmallTitle" v-if="COMPANY === 'syhy'">
<span class="projectSmallTitle">
<!-- <p>数字化项目监管平台</p> -->
<p>盘锦西环66KV变电站工程</p>
<p>江坑110kv变电站智慧工地</p>
</span>
<div class="rightIcon" @click.stop>
<div class="time">{{ nowTime }}</div>
@ -251,36 +250,24 @@ let adminName = ref("" as any);
//
let menuList = ref([
{
moduleName: "工程概况",
modulePath: "/projectOverview"
moduleName: "环境监测",
modulePath: "/headNoise"
},
{
moduleName: "用水监测",
modulePath: "/waterMonitor"
},
{
moduleName: "用电监测",
modulePath: "/electricityMonitor"
},
{
moduleName: "视频管理系统",
modulePath: "/videoManagement"
},
{
moduleName: "智慧党建",
modulePath: "/smartPartyBuilding"
},
{
moduleName: "人员管理",
modulePath: "/laborManagement"
},
{
moduleName: "AI安全预警",
modulePath: "/aIEarlyWarning"
},
{
moduleName: "绿色施工",
modulePath: "/headNoise"
},
{
moduleName: "智能管理",
modulePath: "/videoManagement"
},
{
moduleName: "用电智能检测",
modulePath: "/electricityMonitor"
},
{
moduleName: "进度计划",
modulePath: "/schedulePlan"
}
]);
@ -421,13 +408,7 @@ function loginOut() {
}
//
function jumpBgd() {
// window.location.replace("http://192.168.34.226:8080/#/projectIndex");
if (COMPANY === "syhy") {
window.location.replace("http://101.43.164.214:45020/#/projectIndex"); //
}
if (COMPANY === "jxwjj") {
window.location.replace("http://183.249.224.118:9000/#/projectIndex"); //
}
window.location.replace("http://101.43.164.214:11111/#/projectIndex"); //
}
</script>

View File

@ -0,0 +1,31 @@
<template>
<!-- 综合管理 -->
<div class="bimBox">
<iframe :src="url" frameborder="0" width="100%" height="100%" id="iframe"></iframe>
</div>
</template>
<script lang="ts" setup>
import { GlobalStore } from "@/stores";
import { ref, onMounted } from "vue";
const url = ref("");
// ts
// type Props = {
// iframeUrl?: any; // url
// };
// // withDefaults ()
// const props = withDefaults(defineProps<Props>(), {
// iframeUrl: "",
// });
onMounted(() => {
url.value = "https://ai.goviewlink.com/chart/preview/clozcidbp0093nvh4cbrhu3f1";
});
</script>
<style lang="scss" scoped>
.bimBox {
width: 100%;
height: 100%;
}
</style>

View File

@ -0,0 +1,31 @@
<template>
<!-- 安全风险 -->
<div class="bimBox">
<iframe :src="url" frameborder="0" width="100%" height="100%" id="iframe"></iframe>
</div>
</template>
<script lang="ts" setup>
import { GlobalStore } from "@/stores";
import { ref, onMounted } from "vue";
const url = ref("");
// ts
// type Props = {
// iframeUrl?: any; // url
// };
// // withDefaults ()
// const props = withDefaults(defineProps<Props>(), {
// iframeUrl: "",
// });
onMounted(() => {
url.value = "https://ai.goviewlink.com/chart/preview/clozcm1nb0095nvh49x1ar775";
});
</script>
<style lang="scss" scoped>
.bimBox {
width: 100%;
height: 100%;
}
</style>

View File

@ -0,0 +1,31 @@
<template>
<!-- 仓库管理 -->
<div class="bimBox">
<iframe :src="url" frameborder="0" width="100%" height="100%" id="iframe"></iframe>
</div>
</template>
<script lang="ts" setup>
import { GlobalStore } from "@/stores";
import { ref, onMounted } from "vue";
const url = ref("");
// ts
// type Props = {
// iframeUrl?: any; // url
// };
// // withDefaults ()
// const props = withDefaults(defineProps<Props>(), {
// iframeUrl: "",
// });
onMounted(() => {
url.value = "https://ai.goviewlink.com/chart/preview/cloxxf18f003pnvh4e2me12mi";
});
</script>
<style lang="scss" scoped>
.bimBox {
width: 100%;
height: 100%;
}
</style>