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">
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<el-col :xs="24" :sm="24" :lg="5">
|
|
|
|
|
|
<!-- 站点信息-->
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<el-card
|
2026-01-13 16:38:21 +08:00
|
|
|
|
shadow="always"
|
|
|
|
|
|
class="common-card-container common-card-container-body-no-padding"
|
2025-08-14 17:59:58 +08:00
|
|
|
|
>
|
2025-06-18 01:01:17 +08:00
|
|
|
|
<div slot="header">
|
2025-09-08 18:01:48 +08:00
|
|
|
|
<span class="card-title">站点信息</span>
|
2026-01-13 16:38:21 +08:00
|
|
|
|
<div class="alarm-msg" v-if="tableData.length > 0" @click="toAlarm">
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<i class="el-icon-message-solid"></i> 设备告警
|
2026-01-13 16:38:21 +08:00
|
|
|
|
</div>
|
2025-08-06 17:34:35 +08:00
|
|
|
|
</div>
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<div
|
2026-01-22 17:27:03 +08:00
|
|
|
|
style="box-sizing: border-box; height: 218px; padding: 20px 15px"
|
2025-08-14 17:59:58 +08:00
|
|
|
|
>
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<!-- 地址、运行时间-->
|
|
|
|
|
|
<div class="site-info site-info-address">
|
|
|
|
|
|
<div class="title">
|
|
|
|
|
|
<i class="el-icon-location"></i>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="value">{{ info.siteAddress }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="site-info">
|
|
|
|
|
|
<div class="title">
|
|
|
|
|
|
<i class="el-icon-date"></i>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="value">{{ info.runningTime || '-' }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- 装机功率、容量 -->
|
|
|
|
|
|
<el-row :gutter="10" style="margin-top:20px;">
|
|
|
|
|
|
<el-col
|
|
|
|
|
|
:span="12"
|
|
|
|
|
|
class="sjgl-col power-col"
|
2025-08-14 17:59:58 +08:00
|
|
|
|
>
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<div class="sjgl-wrapper">
|
|
|
|
|
|
<div class="sjgl-title">装机功率(MW)</div>
|
|
|
|
|
|
<div class="sjgl-value">
|
|
|
|
|
|
{{ info.installPower | formatNumber }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-col>
|
2025-08-14 17:59:58 +08:00
|
|
|
|
<el-col
|
2026-01-13 16:38:21 +08:00
|
|
|
|
:span="12"
|
2026-01-22 17:27:03 +08:00
|
|
|
|
class="sjgl-col power-col"
|
2025-08-14 17:59:58 +08:00
|
|
|
|
>
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<div class="sjgl-wrapper">
|
|
|
|
|
|
<div class="sjgl-title">装机容量(MW)</div>
|
|
|
|
|
|
<div class="sjgl-value">
|
|
|
|
|
|
{{ info.installCapacity | formatNumber }}
|
|
|
|
|
|
</div>
|
2025-08-14 17:59:58 +08:00
|
|
|
|
</div>
|
2025-06-18 01:01:17 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
</el-col>
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<!--策略信息-->
|
|
|
|
|
|
<!-- <el-col :xs="24" :sm="24" :lg="16">-->
|
|
|
|
|
|
<!-- <cl-info :info="runningInfo.strategyTempInfo"/>-->
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
<!-- 总累计运行数据-->
|
|
|
|
|
|
<el-col :xs="24" :sm="24" :lg="19">
|
2026-01-13 16:38:21 +08:00
|
|
|
|
<el-card
|
|
|
|
|
|
shadow="always"
|
|
|
|
|
|
class="common-card-container common-card-container-body-no-padding"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div slot="header">
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<span class="card-title">总累计运行数据</span>
|
|
|
|
|
|
<div class="total-count">
|
|
|
|
|
|
<span class="title">总收入</span>
|
|
|
|
|
|
<span class="value">{{ runningInfo.totalRevenue | formatNumber }}</span>
|
|
|
|
|
|
<span class="unit">元</span>
|
|
|
|
|
|
</div>
|
2026-01-13 16:38:21 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div
|
2026-01-22 17:27:03 +08:00
|
|
|
|
style="box-sizing: border-box; height: 218px; padding: 20px 15px"
|
2026-01-13 16:38:21 +08:00
|
|
|
|
>
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<el-row :gutter="10">
|
2026-01-13 16:38:21 +08:00
|
|
|
|
<el-col
|
2026-01-22 17:27:03 +08:00
|
|
|
|
:span="6"
|
|
|
|
|
|
v-for="(item, index) in sjglData"
|
|
|
|
|
|
:key="index + 'sjglData'"
|
|
|
|
|
|
class="sjgl-col"
|
2026-01-13 16:38:21 +08:00
|
|
|
|
>
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<div class="sjgl-wrapper">
|
|
|
|
|
|
<div class="sjgl-title">{{ item.title }}</div>
|
|
|
|
|
|
<div class="sjgl-value" :style="{color:item.color}">
|
|
|
|
|
|
{{ runningInfo[item.attr] | formatNumber }}
|
|
|
|
|
|
</div>
|
2026-01-13 16:38:21 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-card>
|
2025-06-18 01:01:17 +08:00
|
|
|
|
</el-col>
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<el-col :xs="24" :sm="24" :lg="12">
|
2026-01-13 16:38:21 +08:00
|
|
|
|
<week-chart ref="weekChart"/>
|
2025-08-06 17:34:35 +08:00
|
|
|
|
</el-col>
|
2026-01-22 17:27:03 +08:00
|
|
|
|
<el-col :xs="24" :sm="24" :lg="12">
|
2026-01-13 16:38:21 +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>
|
2026-01-13 16:38:21 +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-09-25 17:30:16 +08:00
|
|
|
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
2026-01-13 16:38:21 +08:00
|
|
|
|
|
2025-06-18 01:01:17 +08:00
|
|
|
|
export default {
|
2025-08-14 17:59:58 +08:00
|
|
|
|
name: "DzjkSbjkHome",
|
2026-01-13 16:38:21 +08:00
|
|
|
|
components: {WeekChart, ActiveChart, AlarmTable, ClInfo},
|
2025-09-27 17:44:03 +08:00
|
|
|
|
mixins: [getQuerySiteId, intervalUpdate],
|
2025-06-18 01:01:17 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2025-08-14 17:59:58 +08:00
|
|
|
|
loading: false,
|
|
|
|
|
|
sjglData: [
|
|
|
|
|
|
{
|
2025-09-13 14:47:37 +08:00
|
|
|
|
title: "今日充电量(kWh)",
|
2025-08-14 17:59:58 +08:00
|
|
|
|
attr: "dayChargedCap",
|
2026-01-22 17:27:03 +08:00
|
|
|
|
color: '#4472c4'
|
2025-08-14 17:59:58 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-09-13 14:47:37 +08:00
|
|
|
|
title: "今日放电量(kWh)",
|
2025-08-14 17:59:58 +08:00
|
|
|
|
attr: "dayDisChargedCap",
|
2026-01-22 17:27:03 +08:00
|
|
|
|
color: '#70ad47'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "总充电量(kWh)",
|
|
|
|
|
|
attr: "totalChargedCap",
|
|
|
|
|
|
color: '#4472c4'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "今日实时收入(元)",
|
|
|
|
|
|
attr: "dayRevenue",
|
|
|
|
|
|
color: '#f67438'
|
2025-08-14 17:59:58 +08:00
|
|
|
|
},
|
2026-01-13 16:38:21 +08:00
|
|
|
|
{
|
|
|
|
|
|
title: "昨日充电量(kWh)",
|
|
|
|
|
|
attr: "todo",
|
2026-01-22 17:27:03 +08:00
|
|
|
|
color: '#4472c4'
|
2026-01-13 16:38:21 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "昨日放电量(kWh)",
|
|
|
|
|
|
attr: "todo",
|
2026-01-22 17:27:03 +08:00
|
|
|
|
color: '#70ad47'
|
2025-09-25 17:58:22 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-09-27 17:44:03 +08:00
|
|
|
|
title: "总放电量(kWh)",
|
|
|
|
|
|
attr: "totalDischargedCap",
|
2026-01-22 17:27:03 +08:00
|
|
|
|
color: '#70ad47'
|
2025-08-14 17:59:58 +08:00
|
|
|
|
},
|
2026-01-13 16:38:21 +08:00
|
|
|
|
{
|
|
|
|
|
|
title: "昨日实时收入(元)",
|
|
|
|
|
|
attr: "todo",
|
2026-01-22 17:27:03 +08:00
|
|
|
|
color: '#f67438'
|
2026-01-13 16:38:21 +08:00
|
|
|
|
},
|
2025-08-14 17:59:58 +08:00
|
|
|
|
],
|
|
|
|
|
|
info: {}, //基本信息
|
|
|
|
|
|
runningInfo: {}, //总累计运行数据+报警表格
|
|
|
|
|
|
};
|
2025-08-11 17:34:39 +08:00
|
|
|
|
},
|
2025-08-14 17:59:58 +08:00
|
|
|
|
computed: {
|
|
|
|
|
|
tableData() {
|
|
|
|
|
|
console.log(
|
2026-01-13 16:38:21 +08:00
|
|
|
|
"this.runningInfo?.siteMonitorHomeAlarmVo ",
|
|
|
|
|
|
this.runningInfo?.siteMonitorHomeAlarmVo
|
2025-08-14 17:59:58 +08:00
|
|
|
|
);
|
|
|
|
|
|
return this.runningInfo?.siteMonitorHomeAlarmVo || [];
|
|
|
|
|
|
},
|
2025-06-20 02:00:10 +08:00
|
|
|
|
},
|
2025-08-14 17:59:58 +08:00
|
|
|
|
methods: {
|
2026-01-13 16:38:21 +08:00
|
|
|
|
toAlarm() {
|
|
|
|
|
|
this.$router.push({path: "/dzjk/gzgj", query: this.$route.query});
|
|
|
|
|
|
},
|
2025-08-14 17:59:58 +08:00
|
|
|
|
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-09-25 17:30:16 +08:00
|
|
|
|
// 一分钟循环一次总累计运行数据
|
2025-09-27 17:44:03 +08:00
|
|
|
|
this.updateInterval(this.getRunningInfo);
|
2025-08-14 17:59:58 +08:00
|
|
|
|
},
|
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">
|
2026-01-22 17:27:03 +08:00
|
|
|
|
//设备告警
|
2026-01-13 16:38:21 +08:00
|
|
|
|
.alarm-msg {
|
2026-01-22 17:27:03 +08:00
|
|
|
|
background: #ff4949;
|
|
|
|
|
|
padding: 2px 5px;
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
font-weight: bolder;
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
line-height: 20px;
|
2026-01-13 16:38:21 +08:00
|
|
|
|
cursor: pointer;
|
2026-01-22 17:27:03 +08:00
|
|
|
|
color: #fff;
|
2026-01-13 16:38:21 +08:00
|
|
|
|
position: absolute;
|
2026-01-22 17:27:03 +08:00
|
|
|
|
right: 10px;
|
2026-01-13 16:38:21 +08:00
|
|
|
|
top: 50%;
|
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-22 17:27:03 +08:00
|
|
|
|
//基本信息-地址 运行️时间
|
|
|
|
|
|
.site-info {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
&.site-info-address {
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
|
color: #1791ff;
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
margin-right: 7px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.value {
|
|
|
|
|
|
color: #000;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
max-height: 40px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//总收入
|
|
|
|
|
|
.total-count {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 10px;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: bolder;
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
line-height: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
.unit {
|
|
|
|
|
|
font-style: italic;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.value {
|
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
font-weight: bolder;
|
|
|
|
|
|
color: #ed2f1d;
|
|
|
|
|
|
font-style: italic;
|
|
|
|
|
|
padding: 0 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
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
|
|
|
|
//数据概览
|
2026-01-22 17:27:03 +08:00
|
|
|
|
.sjgl-col {
|
|
|
|
|
|
.sjgl-wrapper {
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
padding: 15px 20px;
|
|
|
|
|
|
background-color: #f2f7fb;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.power-col {
|
|
|
|
|
|
.sjgl-wrapper {
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
.sjgl-value {
|
|
|
|
|
|
color: #c44444;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2026-01-13 16:38:21 +08:00
|
|
|
|
|
2026-01-22 17:27:03 +08:00
|
|
|
|
&:nth-child(4),
|
2025-09-27 17:44:03 +08:00
|
|
|
|
&:nth-child(2),
|
|
|
|
|
|
&:nth-child(3),
|
|
|
|
|
|
&:nth-child(4) {
|
2026-01-22 17:27:03 +08:00
|
|
|
|
margin-bottom: 10px;
|
2025-06-18 01:01:17 +08:00
|
|
|
|
}
|
2026-01-13 16:38:21 +08:00
|
|
|
|
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.sjgl-title {
|
2026-01-22 17:27:03 +08:00
|
|
|
|
color: #717171;
|
2025-08-14 17:59:58 +08:00
|
|
|
|
line-height: 14px;
|
2026-01-22 17:27:03 +08:00
|
|
|
|
font-weight: bold;
|
2025-08-14 17:59:58 +08:00
|
|
|
|
}
|
2026-01-13 16:38:21 +08:00
|
|
|
|
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.sjgl-value {
|
|
|
|
|
|
color: rgba(51, 51, 51, 1);
|
2026-01-22 17:27:03 +08:00
|
|
|
|
font-size: 22px;
|
2025-08-14 17:59:58 +08:00
|
|
|
|
line-height: 26px;
|
2026-01-22 17:27:03 +08:00
|
|
|
|
font-weight: bolder;
|
|
|
|
|
|
font-style: italic;
|
2025-08-14 17:59:58 +08:00
|
|
|
|
margin-top: 14px;
|
2026-01-22 17:27:03 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
2025-08-14 17:59:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
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;
|
2026-01-13 16:38:21 +08:00
|
|
|
|
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.el-descriptions-item__container {
|
|
|
|
|
|
.el-descriptions-item__label {
|
|
|
|
|
|
color: #666666;
|
|
|
|
|
|
}
|
2026-01-13 16:38:21 +08:00
|
|
|
|
|
2025-08-14 17:59:58 +08:00
|
|
|
|
.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 21:50:38 +08:00
|
|
|
|
</style>
|