单站监控菜单栏

This commit is contained in:
白菜
2025-06-18 01:01:17 +08:00
parent 9174e8b6aa
commit 4218776b77
16 changed files with 926 additions and 11 deletions

View File

@ -0,0 +1,81 @@
<template>
<el-card shadow="always" class="common-card-container common-card-container-body-no-padding">
<div slot="header">
<span class="card-title">储能功率曲线</span>
</div>
<div style="height: 360px" id="cnglqxChart"/>
</el-card>
</template>
<style scoped lang="scss"></style>
<script>
import * as echarts from 'echarts'
require('echarts/theme/macarons') // echarts theme
import resize from '@/mixins/ems/resize'
export default {
mixins: [resize],
data() {
return {
chart: null
}
},
mounted() {
this.$nextTick(() => {
this.initChart()
})
},
beforeDestroy() {
if (!this.chart) {
return
}
this.chart.dispose()
this.chart = null
},
methods: {
initChart() {
this.chart = echarts.init(document.querySelector('#cnglqxChart'))
this.setOptions()
},
setOptions() {
this.chart.setOption({
color:['#FFBD00','#3C81FF'],
legend: {
left: 'center',
bottom: '10',
},
tooltip: {
trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
textStyle:{
color:"#333333",
},
xAxis: {
data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
},
yAxis: {
type: 'value',
},
// POC昨日有功功率、POC昨日无功功率
series: [
{
name:'POC实时有功功率',
data: [80,92,1,34,90,130,320,80,9,91,34,90],
type: 'line',
},{
name:'POC实时无功功率',
data: [820,932,901,934,1290,1330,1320,820,932,901,934,1290],
type: 'line',
}]
})
}
}
}
</script>

View File

@ -0,0 +1,81 @@
<template>
<el-card shadow="always" class="common-card-container common-card-container-body-no-padding">
<div slot="header">
<span class="card-title">电池平均SOC</span>
</div>
<div style="height: 360px" id="dcpjsocChart"/>
</el-card>
</template>
<style scoped lang="scss"></style>
<script>
import * as echarts from 'echarts'
require('echarts/theme/macarons') // echarts theme
import resize from '@/mixins/ems/resize'
export default {
mixins: [resize],
data() {
return {
chart: null
}
},
mounted() {
this.$nextTick(() => {
this.initChart()
})
},
beforeDestroy() {
if (!this.chart) {
return
}
this.chart.dispose()
this.chart = null
},
methods: {
initChart() {
this.chart = echarts.init(document.querySelector('#dcpjsocChart'))
this.setOptions()
},
setOptions() {
this.chart.setOption({
color:['#FFBD00','#3C81FF'],
legend: {
left: 'center',
bottom: '10',
},
tooltip: {
trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
textStyle:{
color:"#333333",
},
xAxis: {
data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
},
yAxis: {
type: 'value',
},
// POC昨日有功功率、POC昨日无功功率
series: [
{
name:'昨日同时段电池平均SOC',
data: [80,92,1,34,90,130,320,80,9,91,34,90],
type: 'scatter',
},{
name:'实时电池平均SOC',
data: [820,932,901,934,1290,1330,1320,820,932,901,934,1290],
type: 'scatter',
}]
})
}
}
}
</script>

View File

@ -0,0 +1,81 @@
<template>
<el-card shadow="always" class="common-card-container common-card-container-body-no-padding">
<div slot="header">
<span class="card-title">电池平均温度</span>
</div>
<div style="height: 360px" id="dcpjwdChart"/>
</el-card>
</template>
<style scoped lang="scss"></style>
<script>
import * as echarts from 'echarts'
require('echarts/theme/macarons') // echarts theme
import resize from '@/mixins/ems/resize'
export default {
mixins: [resize],
data() {
return {
chart: null
}
},
mounted() {
this.$nextTick(() => {
this.initChart()
})
},
beforeDestroy() {
if (!this.chart) {
return
}
this.chart.dispose()
this.chart = null
},
methods: {
initChart() {
this.chart = echarts.init(document.querySelector('#dcpjwdChart'))
this.setOptions()
},
setOptions() {
this.chart.setOption({
color:['#FFBD00','#3C81FF'],
legend: {
left: 'center',
bottom: '10',
},
tooltip: {
trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
textStyle:{
color:"#333333",
},
xAxis: {
data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
},
yAxis: {
type: 'value',
},
// POC昨日有功功率、POC昨日无功功率
series: [
{
name:'昨日同时段温度',
data: [80,92,1,34,90,130,320,80,9,91,34,90],
type: 'line',
},{
name:'实时温度',
data: [820,932,901,934,1290,1330,1320,820,932,901,934,1290],
type: 'line',
}]
})
}
}
}
</script>

View File

@ -0,0 +1,81 @@
<template>
<el-card shadow="always" class="common-card-container common-card-container-body-no-padding">
<div slot="header">
<span class="card-title">Poc平均温度</span>
</div>
<div style="height: 360px" id="pocpjwdChart"/>
</el-card>
</template>
<style scoped lang="scss"></style>
<script>
import * as echarts from 'echarts'
require('echarts/theme/macarons') // echarts theme
import resize from '@/mixins/ems/resize'
export default {
mixins: [resize],
data() {
return {
chart: null
}
},
mounted() {
this.$nextTick(() => {
this.initChart()
})
},
beforeDestroy() {
if (!this.chart) {
return
}
this.chart.dispose()
this.chart = null
},
methods: {
initChart() {
this.chart = echarts.init(document.querySelector('#pocpjwdChart'))
this.setOptions()
},
setOptions() {
this.chart.setOption({
color:['#FFBD00','#3C81FF'],
legend: {
left: 'center',
bottom: '10',
},
tooltip: {
trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
textStyle:{
color:"#333333",
},
xAxis: {
data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
},
yAxis: {
type: 'value',
},
// POC昨日有功功率、POC昨日无功功率
series: [
{
name:'昨日同时段温度',
data: [80,92,1,34,90,130,320,80,9,91,34,90],
type: 'bar',
},{
name:'实时温度',
data: [820,932,901,934,1290,1330,1320,820,932,901,934,1290],
type: 'bar',
}]
})
}
}
}
</script>

View File

@ -0,0 +1,74 @@
<template>
<div class="ssyx-ems-dashboard-editor-container">
<!-- 6个方块-->
<el-row :gutter="10">
<el-col :xs="12" :sm="8" :lg="4" class="single-square-box-container" v-for="(item,index) in singleZdSqaure" :key="index+'singleSquareBox'">
<single-square-box :data="item"></single-square-box>
</el-col>
</el-row>
<!-- echart图表-->
<el-row :gutter="32" style="background:#fff;margin:30px 0;">
<el-col :xs="24" :sm="12" :lg="12">
<cnglqx-chart/>
</el-col>
<el-col :xs="24" :sm="12" :lg="12">
<pocpjwd-chart/>
</el-col>
</el-row>
<el-row :gutter="32" style="margin:30px 0;">
<el-col :xs="24" :sm="12" :lg="12">
<dcpjsoc-chart/>
</el-col>
<el-col :xs="24" :sm="12" :lg="12">
<dcpjwd-chart/>
</el-col>
</el-row>
</div>
</template>
<style scoped lang="scss">
</style>
<script>
import SingleSquareBox from "@/components/Ems/SingleSquareBox/index.vue";
import CnglqxChart from './CnglqxChart.vue'
import PocpjwdChart from './PocpjwdChart.vue'
import DcpjwdChart from './DcpjwdChart.vue'
import DcpjsocChart from './DcpjsocChart.vue'
export default {
components:{SingleSquareBox,CnglqxChart,PocpjwdChart,DcpjwdChart,DcpjsocChart},
data() {
return {
// 单个电站 四个方块数据
singleZdSqaure:[{
title:'实时有功功率kW',
value:'22.74',
bgColor:'#FFF2CB'
},{
title:'实时无功功率kVar',
value:'22.74',
bgColor:'#CBD6FF'
},{
title:'电池催SOC',
value:'22.74',
bgColor:'#DCCBFF'
},{
title:'电池堆SOH',
value:'22.74',
bgColor:'#FFD4CB'
},{
title:'今日充电量kWh',
value:'22.74',
bgColor:'#FFD6F8'
},{
title:'今日放电量kWh',
value:'22.74',
bgColor:'#E1FFCA'
}]
}
},
}
</script>