2025-06-18 01:01:17 +08:00
|
|
|
|
<template>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<div v-loading="loading">
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<el-row style="background: #fff" class="row-container" :gutter="15">
|
|
|
|
|
|
<el-col v-if="tableData.length > 0" :xs="24" :sm="24" :lg="24">
|
|
|
|
|
|
<alarm-table :tableData="tableData" />
|
2025-08-11 17:34:39 +08:00
|
|
|
|
</el-col>
|
2025-08-06 17:34:35 +08:00
|
|
|
|
<el-col :xs="24" :sm="24" :lg="6">
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<el-card
|
|
|
|
|
|
shadow="always"
|
|
|
|
|
|
class="common-card-container common-card-container-body-no-padding"
|
|
|
|
|
|
>
|
2025-06-18 01:01:17 +08:00
|
|
|
|
<div slot="header">
|
2025-08-06 17:34:35 +08:00
|
|
|
|
<span class="card-title">静态信息</span>
|
|
|
|
|
|
</div>
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<div
|
|
|
|
|
|
style="box-sizing: border-box; height: 250px; padding: 20px 15px"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-descriptions class="home-normal-info" :column="1">
|
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
v-for="(item, index) in singleZdInfo"
|
|
|
|
|
|
:key="index + 'singleZdInfo'"
|
|
|
|
|
|
:label="item.title"
|
|
|
|
|
|
>{{ info[item.attr] | formatNumber }}</el-descriptions-item
|
|
|
|
|
|
>
|
2025-08-06 17:34:35 +08:00
|
|
|
|
</el-descriptions>
|
2025-06-18 01:01:17 +08:00
|
|
|
|
</div>
|
2025-08-06 17:34:35 +08:00
|
|
|
|
</el-card>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :xs="24" :sm="24" :lg="8">
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<el-card
|
|
|
|
|
|
shadow="always"
|
|
|
|
|
|
class="common-card-container common-card-container-body-no-padding"
|
|
|
|
|
|
>
|
2025-08-06 17:34:35 +08:00
|
|
|
|
<div slot="header">
|
|
|
|
|
|
<span class="card-title">总累计运行数据</span>
|
|
|
|
|
|
</div>
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<div
|
|
|
|
|
|
style="box-sizing: border-box; height: 250px; padding: 20px 15px"
|
|
|
|
|
|
>
|
2025-06-18 01:01:17 +08:00
|
|
|
|
<el-row :gutter="20">
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<el-col
|
|
|
|
|
|
:span="12"
|
|
|
|
|
|
v-for="(item, index) in sjglData"
|
|
|
|
|
|
:key="index + 'sjglData'"
|
|
|
|
|
|
class="sjgl-data"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="sjgl-title">{{ item.title }}</div>
|
|
|
|
|
|
<div class="sjgl-value">
|
|
|
|
|
|
{{ runningInfo[item.attr] | formatNumber }}
|
|
|
|
|
|
</div>
|
2025-06-18 01:01:17 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
</el-col>
|
2025-08-06 17:34:35 +08:00
|
|
|
|
<el-col :xs="24" :sm="24" :lg="10">
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<cl-info :info="runningInfo.strategyTempInfo" />
|
2025-06-18 01:01:17 +08:00
|
|
|
|
</el-col>
|
2025-08-11 17:34:39 +08:00
|
|
|
|
<el-col :xs="24" :sm="24" :lg="24">
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<week-chart ref="weekChart" />
|
2025-08-06 17:34:35 +08:00
|
|
|
|
</el-col>
|
2025-08-11 17:34:39 +08:00
|
|
|
|
<el-col :xs="24" :sm="24" :lg="24">
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<active-chart ref="activeChart" />
|
2025-08-06 17:34:35 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2025-06-18 01:01:17 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-08-14 17:59:58 +08:00
|
|
|
|
import { getSingleSiteBaseInfo } from "@/api/ems/zddt";
|
|
|
|
|
|
import { getDzjkHomeView } from "@/api/ems/dzjk";
|
2025-08-06 17:34:35 +08:00
|
|
|
|
import WeekChart from "./WeekChart.vue";
|
|
|
|
|
|
import ActiveChart from "./ActiveChart.vue";
|
2025-08-11 17:34:39 +08:00
|
|
|
|
import AlarmTable from "./AlarmTable.vue";
|
2025-08-14 17:59:58 +08:00
|
|
|
|
import ClInfo from "./ClInfo.vue";
|
|
|
|
|
|
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
2025-06-18 01:01:17 +08:00
|
|
|
|
export default {
|
2025-08-14 17:59:58 +08:00
|
|
|
|
name: "DzjkSbjkHome",
|
|
|
|
|
|
components: { WeekChart, ActiveChart, AlarmTable, ClInfo },
|
2025-06-28 14:52:49 +08:00
|
|
|
|
mixins: [getQuerySiteId],
|
2025-06-18 01:01:17 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2025-08-14 17:59:58 +08:00
|
|
|
|
loading: false,
|
|
|
|
|
|
singleZdInfo: [
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "电站位置",
|
|
|
|
|
|
attr: "siteAddress",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "投运时间",
|
|
|
|
|
|
attr: "runningTime",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "装机功率(MW)",
|
|
|
|
|
|
attr: "installPower",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "装机容量(MW)",
|
|
|
|
|
|
attr: "installCapacity",
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
sjglData: [
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "今日充电量(MWh)",
|
|
|
|
|
|
attr: "dayChargedCap",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "今日放电量(MWh)",
|
|
|
|
|
|
attr: "dayDisChargedCap",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "总充电量(MWh)",
|
|
|
|
|
|
attr: "totalChargedCap",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "总放电量(MWh)",
|
|
|
|
|
|
attr: "totalDischargedCap",
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
info: {}, //基本信息
|
|
|
|
|
|
runningInfo: {}, //总累计运行数据+报警表格
|
|
|
|
|
|
};
|
2025-08-11 17:34:39 +08:00
|
|
|
|
},
|
2025-08-14 17:59:58 +08:00
|
|
|
|
computed: {
|
|
|
|
|
|
tableData() {
|
|
|
|
|
|
console.log(
|
|
|
|
|
|
"this.runningInfo?.siteMonitorHomeAlarmVo ",
|
|
|
|
|
|
this.runningInfo?.siteMonitorHomeAlarmVo
|
|
|
|
|
|
);
|
|
|
|
|
|
return this.runningInfo?.siteMonitorHomeAlarmVo || [];
|
|
|
|
|
|
},
|
2025-06-20 02:00:10 +08:00
|
|
|
|
},
|
2025-08-14 17:59:58 +08:00
|
|
|
|
methods: {
|
|
|
|
|
|
getBaseInfo() {
|
|
|
|
|
|
return getSingleSiteBaseInfo(this.siteId).then((response) => {
|
|
|
|
|
|
this.info = response?.data || {};
|
|
|
|
|
|
});
|
2025-08-06 23:06:12 +08:00
|
|
|
|
},
|
2025-08-14 17:59:58 +08:00
|
|
|
|
getRunningInfo() {
|
|
|
|
|
|
return getDzjkHomeView(this.siteId).then((response) => {
|
|
|
|
|
|
this.runningInfo = response?.data || {};
|
|
|
|
|
|
});
|
2025-08-06 23:06:12 +08:00
|
|
|
|
},
|
2025-08-14 17:59:58 +08:00
|
|
|
|
init() {
|
|
|
|
|
|
this.loading = true;
|
2025-08-06 23:06:12 +08:00
|
|
|
|
// 功率曲线
|
2025-08-14 17:59:58 +08:00
|
|
|
|
this.$refs.activeChart.init(this.siteId);
|
2025-08-11 17:34:39 +08:00
|
|
|
|
// 一周冲放曲线
|
2025-08-14 17:59:58 +08:00
|
|
|
|
this.$refs.weekChart.init(this.siteId);
|
2025-08-11 17:34:39 +08:00
|
|
|
|
// 静态信息 this.getBaseInfo()
|
|
|
|
|
|
// 总累计运行数据+故障告警 this.getRunningInfo()
|
2025-08-14 17:59:58 +08:00
|
|
|
|
Promise.all([this.getBaseInfo(), this.getRunningInfo()]).finally(() => {
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2025-06-20 02:00:10 +08:00
|
|
|
|
},
|
2025-08-14 17:59:58 +08:00
|
|
|
|
};
|
2025-06-18 01:01:17 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.row-container {
|
|
|
|
|
|
& > .el-col {
|
|
|
|
|
|
margin-bottom: 20px;
|
2025-08-11 17:34:39 +08:00
|
|
|
|
}
|
2025-08-14 17:59:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-06-18 01:01:17 +08:00
|
|
|
|
//数据概览
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.sjgl-data {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
&:nth-child(1),
|
|
|
|
|
|
&:nth-child(2) {
|
|
|
|
|
|
margin-bottom: 25px;
|
2025-06-18 01:01:17 +08:00
|
|
|
|
}
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.sjgl-title {
|
|
|
|
|
|
color: #666666;
|
|
|
|
|
|
line-height: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sjgl-value {
|
|
|
|
|
|
color: rgba(51, 51, 51, 1);
|
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
|
line-height: 26px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
margin-top: 14px;
|
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-08-11 17:34:39 +08:00
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.home-normal-info {
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
.el-descriptions-item__container {
|
|
|
|
|
|
.el-descriptions-item__label {
|
|
|
|
|
|
color: #666666;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-descriptions-item__content {
|
|
|
|
|
|
color: #333333;
|
|
|
|
|
|
}
|
2025-08-13 17:49:25 +08:00
|
|
|
|
}
|
2025-08-14 17:59:58 +08:00
|
|
|
|
}
|
2025-08-11 17:34:39 +08:00
|
|
|
|
/* card标题里的时间选择器 */
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.time-range-card {
|
|
|
|
|
|
&.common-card-container .el-card__header {
|
2025-08-11 17:34:39 +08:00
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
padding-bottom: 0;
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.time-range-header {
|
2025-08-11 17:34:39 +08:00
|
|
|
|
height: 40px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.card-title {
|
2025-08-11 17:34:39 +08:00
|
|
|
|
line-height: 40px;
|
2025-06-22 21:01:34 +08:00
|
|
|
|
}
|
2025-06-18 01:01:17 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-08-11 17:34:39 +08:00
|
|
|
|
}
|
2025-08-11 21:50:38 +08:00
|
|
|
|
</style>
|