flx:工作票新增风险状态

This commit is contained in:
Rain_ 2025-11-12 18:26:48 +08:00
parent dd0c419883
commit a822502927
4 changed files with 2007 additions and 1841 deletions

View File

@ -4695,6 +4695,12 @@ const routes2 = [{
component: (resolve) => component: (resolve) =>
require(["@/views/companyAdmin/companyBigScreen/aIEarlyWarn/index.vue"], resolve), require(["@/views/companyAdmin/companyBigScreen/aIEarlyWarn/index.vue"], resolve),
}, },
{
path: "/companyAdmin/highRiskOperation",
name: "highRiskOperation",
component: (resolve) =>
require(["@/views/companyAdmin/companyBigScreen/highRiskOperation/index.vue"], resolve),
},
{ {
path: "/companyAdmin/videoSurveillance", path: "/companyAdmin/videoSurveillance",
name: "videoSurveillance", name: "videoSurveillance",

View File

@ -1,54 +1,60 @@
<template> <template>
<div class="header-wrap"> <div class="header-wrap">
<div class="left-text"> <div class="left-text">
<div class="left-text_title"> <div class="left-text_title">
<img <img
@click="handleEdit" @click="handleEdit"
class="edit-icon" class="edit-icon"
src="@/assets/images/companyBigScreen/card-edit-icon.png" src="@/assets/images/companyBigScreen/card-edit-icon.png"
alt="icon" alt="icon"
/> />
{{customInfo.name || '智慧工地企业版数据大屏'}} {{ customInfo.name || "智慧工地企业版数据大屏" }}
</div> </div>
<div <div
class="left-text_image" class="left-text_image"
@click="onRouterLink('/companyAdmin/terminalOperation')" @click="onRouterLink('/companyAdmin/terminalOperation')"
> >
运营场站 运营场站
</div> </div>
<div <div
class="left-text_image" class="left-text_image"
@click="onRouterLink('/companyAdmin/videoSurveillance')" @click="onRouterLink('/companyAdmin/videoSurveillance')"
> >
视频监控 视频监控
</div> </div>
<div <div
class="left-text_image" class="left-text_image"
@click="onRouterLink('/companyAdmin/aIEarlyWarn')" @click="onRouterLink('/companyAdmin/aIEarlyWarn')"
> >
AI预警 AI预警
</div> </div>
</div> <div
<!-- <div class="nav-list"> class="left-text_image"
@click="onRouterLink('/companyAdmin/highRiskOperation')"
>
高风险作业
</div>
</div>
<!-- <div class="nav-list">
<div class="nav-item" :class="{ 'nav-active': pageIndex == 1 }" @click="changeNav(1)">集团中心</div> <div class="nav-item" :class="{ 'nav-active': pageIndex == 1 }" @click="changeNav(1)">集团中心</div>
<div class="nav-item right-nav" :class="{ 'nav-active': pageIndex == 2 }">视频中心</div> <div class="nav-item right-nav" :class="{ 'nav-active': pageIndex == 2 }">视频中心</div>
</div> --> </div> -->
<div class="right-box"> <div class="right-box">
<span class="date">{{ nowDate }}</span> <span class="date">{{ nowDate }}</span>
<span class="time"><i class="el-icon-time"></i>{{ nowTime }}</span> <span class="time"><i class="el-icon-time"></i>{{ nowTime }}</span>
<div class="weather-box"> <div class="weather-box">
<div class="line"></div> <div class="line"></div>
<span>{{ weatherInfo.tem }}</span> <span>{{ weatherInfo.tem }}</span>
<span>{{ weatherInfo.wea }}</span> <span>{{ weatherInfo.wea }}</span>
</div> </div>
<div class="close-btn" @click="closeFn"> <div class="close-btn" @click="closeFn">
<i class="el-icon-switch-button"></i> <i class="el-icon-switch-button"></i>
<span>退出</span> <span>退出</span>
<!-- <img src="@/assets/images/bigScreen/icon-close.png" /> --> <!-- <img src="@/assets/images/bigScreen/icon-close.png" /> -->
</div> </div>
</div>
<HeaderDialog ref="headerDialogRef" @refresh="getDeviceConfig" />
</div> </div>
<HeaderDialog ref="headerDialogRef" @refresh="getDeviceConfig" />
</div>
</template> </template>
<script> <script>
@ -56,270 +62,274 @@ import moment from "moment";
import HeaderDialog from "./headerDialog.vue"; import HeaderDialog from "./headerDialog.vue";
import { getWeatherLiveData } from "@/assets/js/api/environmentManage"; import { getWeatherLiveData } from "@/assets/js/api/environmentManage";
import { getQueryBySnCompanyInfo } from "@/assets/js/api/companyBigScreen"; import { getQueryBySnCompanyInfo } from "@/assets/js/api/companyBigScreen";
import { queryCustomConfig } from '@/assets/js/api/common' import { queryCustomConfig } from "@/assets/js/api/common";
export default { export default {
naem: "headers", naem: "headers",
components: { HeaderDialog }, components: { HeaderDialog },
data() { data() {
return { return {
pageIndex: 1, pageIndex: 1,
nowDate: "", nowDate: "",
nowTime: "", nowTime: "",
timer: null, timer: null,
weatherInfo: {}, weatherInfo: {},
customInfo: {}, customInfo: {},
customData: {}, customData: {},
isEdit: false, isEdit: false,
}; };
},
mounted() {
this.timer = setInterval(() => {
let date = new Date();
this.nowDate = moment(date).format("YYYY年MM月DD日");
this.nowTime = moment(date).format("HH:mm:ss");
}, 1000);
this.getCompanyInfoData();
this.getCustomConfig();
},
beforeDestroy() {
this.timer = null;
},
methods: {
async getCustomConfig() {
const res = await queryCustomConfig({
configKey: "company_header1",
projectSn: this.$store.state.userInfo.sn,
});
console.log(res);
this.isEdit = res.result?.id ? true : false
if (res.result) {
const { data: curIsCustom } = JSON.parse(res.result.configValue || '{}');
console.log(112333, curIsCustom)
this.customInfo = curIsCustom
this.customData = res.result
}
}, },
getDeviceConfig() { mounted() {
console.log(111); this.timer = setInterval(() => {
this.getCustomConfig(); let date = new Date();
this.nowDate = moment(date).format("YYYY年MM月DD日");
this.nowTime = moment(date).format("HH:mm:ss");
}, 1000);
this.getCompanyInfoData();
this.getCustomConfig();
}, },
handleEdit() { beforeDestroy() {
this.$refs.headerDialogRef.showModal(this.isEdit ? this.customData : null) this.timer = null;
}, },
async getCompanyInfoData() { methods: {
const res = await getQueryBySnCompanyInfo({ async getCustomConfig() {
sn: this.$store.state.userInfo.sn, const res = await queryCustomConfig({
}); configKey: "company_header1",
console.log(res); projectSn: this.$store.state.userInfo.sn,
this.loadWeather(res.result.cityCode); });
console.log(res);
this.isEdit = res.result?.id ? true : false;
if (res.result) {
const { data: curIsCustom } = JSON.parse(
res.result.configValue || "{}"
);
console.log(112333, curIsCustom);
this.customInfo = curIsCustom;
this.customData = res.result;
}
},
getDeviceConfig() {
console.log(111);
this.getCustomConfig();
},
handleEdit() {
this.$refs.headerDialogRef.showModal(
this.isEdit ? this.customData : null
);
},
async getCompanyInfoData() {
const res = await getQueryBySnCompanyInfo({
sn: this.$store.state.userInfo.sn,
});
console.log(res);
this.loadWeather(res.result.cityCode);
},
onRouterLink(path) {
this.$router.push(path);
},
changeNav(val) {
this.pageIndex = val;
this.$emit("changeType", val);
},
closeFn() {
// window.close()
// this.$router.back()
// 退
this.$router.push("/firm/projectManage");
},
loadWeather(cityCode) {
getWeatherLiveData({ cityid: cityCode || "" }).then((res) => {
this.weatherInfo = res.result;
console.log(this.weatherInfo);
});
},
}, },
onRouterLink(path) {
this.$router.push(path);
},
changeNav(val) {
this.pageIndex = val;
this.$emit("changeType", val);
},
closeFn() {
// window.close()
// this.$router.back()
// 退
this.$router.push("/firm/projectManage");
},
loadWeather(cityCode) {
getWeatherLiveData({ cityid: cityCode || "" }).then((res) => {
this.weatherInfo = res.result;
console.log(this.weatherInfo);
});
},
},
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.header-wrap { .header-wrap {
width: 100%; width: 100%;
height: 66px; height: 66px;
text-align: center; text-align: center;
position: absolute;
top: 0;
left: 0;
z-index: 10;
background: url("~@/assets/images/companyBigScreen/header-bg.png") center
no-repeat;
background-size: 100%;
.left-text {
position: absolute; position: absolute;
left: 30px; top: 0;
top: 50%; left: 0;
transform: translateY(-50%); z-index: 10;
font-family: Alibaba PuHuiTi, Alibaba PuHuiTi; background: url("~@/assets/images/companyBigScreen/header-bg.png") center
font-weight: 500; no-repeat;
font-size: 32px; background-size: 100%;
color: #ffffff; .left-text {
line-height: 32px;
display: flex;
align-items: center;
.left-text_title {
position: relative;
&:hover {
.edit-icon {
visibility: visible;
}
}
.edit-icon {
position: absolute; position: absolute;
top: 0px; left: 30px;
left: 0px; top: 50%;
transform: translateX(-50%); transform: translateY(-50%);
visibility: hidden; font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
width: 20px; font-weight: 500;
height: 20px; font-size: 32px;
cursor: pointer; color: #ffffff;
user-select: none; line-height: 32px;
-webkit-user-drag: none; display: flex;
z-index: 10; align-items: center;
} .left-text_title {
position: relative;
&:hover {
.edit-icon {
visibility: visible;
}
}
.edit-icon {
position: absolute;
top: 0px;
left: 0px;
transform: translateX(-50%);
visibility: hidden;
width: 20px;
height: 20px;
cursor: pointer;
user-select: none;
-webkit-user-drag: none;
z-index: 10;
}
}
.left-text_image {
font-size: 20px;
color: #00f6ff;
margin-left: 13px;
width: 104px;
height: 45px;
background-image: url("~@/assets/images/companyBigScreen/stat-bg.png");
background-size: 100% 100%;
background-repeat: no-repeat;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
} }
.left-text_image {
font-size: 20px;
color: #00f6ff;
margin-left: 13px;
width: 104px;
height: 45px;
background-image: url("~@/assets/images/companyBigScreen/stat-bg.png");
background-size: 100% 100%;
background-repeat: no-repeat;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
}
} }
.header-wrap2 { .header-wrap2 {
width: 100%; width: 100%;
height: 45px; height: 45px;
text-align: center; text-align: center;
position: absolute;
top: 0;
left: 0;
z-index: 10;
background: url("~@/assets/images/bigScreen/hengTong_title.png") center
no-repeat;
background-size: 103%;
.left-text {
color: #02fbe2;
position: absolute; position: absolute;
left: 48px; top: 0;
line-height: 32px; left: 0;
font-size: 10px; z-index: 10;
} background: url("~@/assets/images/bigScreen/hengTong_title.png") center
no-repeat;
background-size: 103%;
.left-text {
color: #02fbe2;
position: absolute;
left: 48px;
line-height: 32px;
font-size: 10px;
}
} }
.nav-list { .nav-list {
color: #fff; color: #fff;
font-size: 16px; font-size: 16px;
position: absolute; position: absolute;
top: 0; top: 0;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
display: flex; display: flex;
height: 40px; height: 40px;
width: 35%; width: 35%;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.nav-item { .nav-item {
padding: 0 40px; padding: 0 40px;
height: 40px; height: 40px;
line-height: 36px; line-height: 36px;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
} }
.nav-active { .nav-active {
color: #02fbe2; color: #02fbe2;
} }
.nav-active::after { .nav-active::after {
content: ""; content: "";
border-bottom: 1px dashed rgba(2, 251, 226, 1); border-bottom: 1px dashed rgba(2, 251, 226, 1);
position: absolute; position: absolute;
bottom: 8px; bottom: 8px;
left: 50%; left: 50%;
height: 11px; height: 11px;
display: block; display: block;
width: 73px; width: 73px;
transform: translateX(-50%); transform: translateX(-50%);
background: linear-gradient( background: linear-gradient(
to top, to top,
rgba(2, 251, 226, 0.7), rgba(2, 251, 226, 0.7),
rgba(2, 251, 226, 0) rgba(2, 251, 226, 0)
); );
} }
.right-box { .right-box {
display: flex;
align-items: center;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
.date {
background: rgba(34, 33, 37, 0.5);
border: 1px solid #3e3c42;
font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
font-weight: 500;
font-size: 20px;
color: #ffffff;
line-height: 24px;
padding: 4px 30px;
margin-right: 30px;
}
.time {
font-family: Alibaba Sans, Alibaba Sans;
font-weight: 500;
font-size: 20px;
color: #dfdaee;
line-height: 24px;
margin-right: 30px;
i {
margin-right: 2px;
}
}
.weather-box {
display: flex; display: flex;
align-items: center; align-items: center;
margin-right: 30px; position: absolute;
.line { right: 0;
width: 4px; top: 50%;
height: 20px; transform: translateY(-50%);
background: #959397; .date {
background: rgba(34, 33, 37, 0.5);
border: 1px solid #3e3c42;
font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
font-weight: 500;
font-size: 20px;
color: #ffffff;
line-height: 24px;
padding: 4px 30px;
margin-right: 30px;
} }
span { .time {
font-family: Segoe UI, Segoe UI; font-family: Alibaba Sans, Alibaba Sans;
font-weight: 400; font-weight: 500;
font-size: 20px; font-size: 20px;
color: #dfdaee; color: #dfdaee;
line-height: 26px; line-height: 24px;
margin-left: 12px; margin-right: 30px;
i {
margin-right: 2px;
}
} }
} .weather-box {
.close-btn { display: flex;
margin-right: 30px; align-items: center;
padding: 4px 20px; margin-right: 30px;
background: rgba(0, 107, 255, 0.5); .line {
border: 1px solid #006bff; width: 4px;
cursor: pointer; height: 20px;
i { background: #959397;
font-size: 20px; }
color: #ffffff; span {
margin-right: 2px; font-family: Segoe UI, Segoe UI;
font-weight: 400;
font-size: 20px;
color: #dfdaee;
line-height: 26px;
margin-left: 12px;
}
} }
span { .close-btn {
font-family: Alibaba PuHuiTi, Alibaba PuHuiTi; margin-right: 30px;
font-weight: 500; padding: 4px 20px;
font-size: 20px; background: rgba(0, 107, 255, 0.5);
line-height: 24px; border: 1px solid #006bff;
color: #ffffff; cursor: pointer;
i {
font-size: 20px;
color: #ffffff;
margin-right: 2px;
}
span {
font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
font-weight: 500;
font-size: 20px;
line-height: 24px;
color: #ffffff;
}
} }
}
} }
</style> </style>

View File

@ -0,0 +1,38 @@
<template>
<div class="bigScreen-wrap">
<NewHeader
@refresh="onRefresh"
:title="'甘肃华润新能源智慧电站'"
></NewHeader>
<!-- <HomeworkControlProcess ref="homeworkRef"></HomeworkControlProcess> -->
</div>
</template>
<script setup>
import { ref, onMounted } from "vue";
import NewHeader from "@/views/companyAdmin/companyBigScreen/components/newHeader.vue";
// import HomeworkControlProcess from "./homeworkControlProcess.vue";
const homeworkRef = ref(null);
const onRefresh = () => {
console.log("刷新");
homeworkRef.value.onRefresh();
};
//
onMounted(() => {});
</script>
<style lang="less" scoped>
.bigScreen-wrap {
width: 100%;
height: 100%;
min-width: 1680px;
// min-height: 1080px;
position: relative;
color: #fff;
// background: #0a141c;
background: url("~@/assets/images/companyBigScreen/big-screen-bg.png")
center no-repeat;
background-size: 100% 100%;
overflow: hidden;
}
</style>