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,57 +148,68 @@ ...@@ -152,57 +148,68 @@
</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 <div v-if="gYCompanyEnergyInit">
style="font-size: 120%; text-align: center; font-weight: bolder" <div
> style="
{{ gYCompanyEnergy.value.enterpriseName }} font-size: 120%;
</div> text-align: center;
<table cellpadding="0" cellspacing="0"> font-weight: bolder;
<tr> "
<td style="width: 60px">热耗</td> >
<td> {{ gYCompanyEnergy.value.enterpriseName }}
<div> </div>
<table cellpadding="0" cellspacing="0" style="margin-top: 15%">
<tr>
<td style="width: 60px">热耗</td>
<td>
<div>
<span
>{{
gYCompanyEnergy.value.heatUc.toFixed(4)
}}W/㎡</span
>
</div>
</td>
<td>水耗</td>
<td>
<span <span
>{{ gYCompanyEnergy.value.heatUc.toFixed(4) }}W/㎡</span >{{
gYCompanyEnergy.value.waterUc.toFixed(2)
}}kg/㎡</span
> >
</div> </td>
<!-- <div><span>40W/㎡</span></div> --> </tr>
</td> <tr>
<td>水耗</td> <td style="height: 20px"></td>
<td> <td></td>
<span <td></td>
>{{ gYCompanyEnergy.value.waterUc.toFixed(2) }}kg/㎡</span <td></td>
> </tr>
</td> <tr>
</tr> <td style="width: 60px">
<tr> <div>度日数</div>
<td style="height: 20px"></td> 热耗
<td></td> </td>
<td></td> <td>
<td></td> <div>
</tr> <span
<tr> >{{
<td style="width: 60px"> gYCompanyEnergy.value.dayHeatUc.toFixed(4)
<div>度日数</div> }}W/㎡*℃</span
热耗 >
</td> </div>
<td> </td>
<div> <td>电耗</td>
<td>
<span <span
>{{ >{{
gYCompanyEnergy.value.dayHeatUc.toFixed(4) gYCompanyEnergy.value.elecUc.toFixed(4)
}}W/㎡*℃</span }}WH/㎡</span
> >
</div> </td>
</td> </tr>
<td>电耗</td> </table>
<td> </div>
<span
>{{ gYCompanyEnergy.value.elecUc.toFixed(4) }}WH/㎡</span
>
</td>
</tr>
</table>
</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