Commit 1d10a0e1 authored by 朱超's avatar 朱超

数据总览

parent f15bff62
<template> <template>
<div <div class="contentBlock" id="contentBlock">
class="contentBlock"
id="contentBlock"
v-loading="loading"
element-loading-background="rgba(122, 122, 122, 0.6)"
>
<div class="contentBlockInn" v-if="pageInit"> <div class="contentBlockInn" v-if="pageInit">
<div class="flexBlock"> <div class="flexBlock">
<el-card class="card-contianer" style="width: 46%"> <el-card class="card-contianer" style="width: 46%">
...@@ -85,6 +80,7 @@ ...@@ -85,6 +80,7 @@
style="width: 90%" style="width: 90%"
format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"
time-format="HH:mm:ss" time-format="HH:mm:ss"
unlink-panels
@change="seltimeFun" @change="seltimeFun"
:disabled="selTimeF" :disabled="selTimeF"
/> />
...@@ -152,26 +148,34 @@ ...@@ -152,26 +148,34 @@
</table> </table>
</el-card> </el-card>
<el-card class="card-contianer subTitBlockM" style="width: 33%"> <el-card class="card-contianer subTitBlockM" style="width: 33%">
<div v-if="gYCompanyEnergyInit">
<div <div
style="font-size: 120%; text-align: center; font-weight: bolder" style="
font-size: 120%;
text-align: center;
font-weight: bolder;
"
> >
{{ gYCompanyEnergy.value.enterpriseName }} {{ gYCompanyEnergy.value.enterpriseName }}
</div> </div>
<table cellpadding="0" cellspacing="0"> <table cellpadding="0" cellspacing="0" style="margin-top: 15%">
<tr> <tr>
<td style="width: 60px">热耗</td> <td style="width: 60px">热耗</td>
<td> <td>
<div> <div>
<span <span
>{{ gYCompanyEnergy.value.heatUc.toFixed(4) }}W/㎡</span >{{
gYCompanyEnergy.value.heatUc.toFixed(4)
}}W/㎡</span
> >
</div> </div>
<!-- <div><span>40W/㎡</span></div> -->
</td> </td>
<td>水耗</td> <td>水耗</td>
<td> <td>
<span <span
>{{ gYCompanyEnergy.value.waterUc.toFixed(2) }}kg/㎡</span >{{
gYCompanyEnergy.value.waterUc.toFixed(2)
}}kg/㎡</span
> >
</td> </td>
</tr> </tr>
...@@ -198,11 +202,14 @@ ...@@ -198,11 +202,14 @@
<td>电耗</td> <td>电耗</td>
<td> <td>
<span <span
>{{ gYCompanyEnergy.value.elecUc.toFixed(4) }}WH/㎡</span >{{
gYCompanyEnergy.value.elecUc.toFixed(4)
}}WH/㎡</span
> >
</td> </td>
</tr> </tr>
</table> </table>
</div>
</el-card> </el-card>
<el-card class="card-contianer" style="width: 33%"> <el-card class="card-contianer" style="width: 33%">
<div class="echartLayer1" id="echartLayer1"></div> <div class="echartLayer1" id="echartLayer1"></div>
...@@ -312,6 +319,7 @@ import { ...@@ -312,6 +319,7 @@ import {
} from "../../api/overview"; } from "../../api/overview";
let timerID = ref(); let timerID = ref();
const pageInit = ref(false); const pageInit = ref(false);
const gYCompanyEnergyInit = ref(false);
const areaList = reactive({ const areaList = reactive({
supplyYear: "2024-2025", supplyYear: "2024-2025",
runDay: 0, runDay: 0,
...@@ -353,6 +361,7 @@ function postArealistFun() { ...@@ -353,6 +361,7 @@ function postArealistFun() {
ElMessage.error(res.message); ElMessage.error(res.message);
} }
postGYPipeRealFun(); postGYPipeRealFun();
postGYCompanyEnergyFun();
}); });
} }
...@@ -376,19 +385,19 @@ function postAllHeatFun() { ...@@ -376,19 +385,19 @@ function postAllHeatFun() {
loading.value = false; loading.value = false;
ElMessage.error(res.message); ElMessage.error(res.message);
} }
postGYCompanyEnergyFun(); //postGYCompanyEnergyFun();
postGYWeatherFun();
}); });
} }
function postGYCompanyEnergyFun() { function postGYCompanyEnergyFun() {
postGYCompanyEnergy().then((res) => { postGYCompanyEnergy(params).then((res) => {
if (res.success === true) { if (res.success === true) {
gYCompanyEnergy.value = res.data[0]; gYCompanyEnergy.value = res.data[0];
} else { } else {
loading.value = false;
ElMessage.error(res.message); ElMessage.error(res.message);
} }
postGYWeatherFun(); gYCompanyEnergyInit.value = true;
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment