|
@@ -12,7 +12,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>光伏用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">56<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[0].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list" style="margin-right: -28px;">
|
|
@@ -21,7 +21,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>楼外设备用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">51<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[1].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list" style="margin-right: -30px;">
|
|
@@ -30,7 +30,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>充电桩用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">48<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[2].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list" style="padding-right: 41px;">
|
|
@@ -39,7 +39,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>地下室用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">48<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[3].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -50,7 +50,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>制冷机组用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">56<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[4].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list" style="margin-left: -4px;">
|
|
@@ -59,7 +59,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>消防用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">51<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[5].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list" style="margin-left: 22px;">
|
|
@@ -68,7 +68,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>电梯用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">48<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[6].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list" style="padding-right: 55px;">
|
|
@@ -77,7 +77,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>办公用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">48<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[7].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -89,7 +89,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>公共照明用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">56<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[8].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list">
|
|
@@ -98,7 +98,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>供热设备用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">51<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[9].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list">
|
|
@@ -107,7 +107,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>厨房用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">48<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[10].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list" style="padding-right: 24px;">
|
|
@@ -117,7 +117,7 @@
|
|
|
<div>机房总用电量</div>
|
|
|
<div class="arrow"></div>
|
|
|
</div>
|
|
|
- <div class="num">48<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[11].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -129,7 +129,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>生活水泵用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">56<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[12].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list">
|
|
@@ -138,7 +138,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>冷源泵用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">51<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[13].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list">
|
|
@@ -147,7 +147,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>热源泵用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">48<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[14].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="left-list">
|
|
@@ -156,7 +156,7 @@
|
|
|
<div> <img src="@/assets/images/service_new/quantity.png"></div>
|
|
|
<div>通信辅助设备用电量</div>
|
|
|
</div>
|
|
|
- <div class="num">48<span class="unit">kWh</span></div>
|
|
|
+ <div class="num">{{ thisWeekElectricityList.total[15].num }}<span class="unit">kWh</span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -203,6 +203,10 @@ import PieChart from "@/components/Echarts/PieChart.vue";
|
|
|
import BarChart from "@/components/Echarts/BarChart.vue";
|
|
|
import echarts from "echarts";
|
|
|
import {carbonEmissionStatistics, energyForYear} from "@/api/screen/service";
|
|
|
+import {
|
|
|
+
|
|
|
+thisWeekElectricity,todayElectricity,monthElectricity,roomLoad,warnDevice,warnEvent,waterState
|
|
|
+} from "@/api/screen/service";
|
|
|
|
|
|
export default {
|
|
|
name: "EnergyRate",
|
|
@@ -215,6 +219,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ thisWeekElectricityList:{},
|
|
|
//楼宇每月用电量
|
|
|
yearLineData: [],
|
|
|
//楼宇今日总用电量
|
|
@@ -238,10 +243,12 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- //楼宇今日用电量
|
|
|
- this.handleBuildData()
|
|
|
- //楼宇每月用电量
|
|
|
- this.handleYearData()
|
|
|
+ //楼宇本周用电量
|
|
|
+ this.thisWeekElectricity()
|
|
|
+ //楼宇今日总用电量
|
|
|
+ this.todayElectricity()
|
|
|
+ //楼宇每月用电量
|
|
|
+ this.monthElectricity()
|
|
|
|
|
|
//碳排放量月度变化趋势图
|
|
|
this.carbonEmissionStatistics();
|
|
@@ -253,11 +260,25 @@ export default {
|
|
|
beforeDestroy() {},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
- //楼宇今日总用电量
|
|
|
- handleBuildData(){
|
|
|
+ //资产存量
|
|
|
+ thisWeekElectricity() {
|
|
|
+ thisWeekElectricity(this.$props.appOrg).then((res) => {
|
|
|
+ if (Number(res.code) === 200) {
|
|
|
+ this.thisWeekElectricityList=res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+ //楼宇今日总用电量
|
|
|
+ todayElectricity() {
|
|
|
+ todayElectricity(this.$props.appOrg).then((res) => {
|
|
|
+ if (Number(res.code) === 200) {
|
|
|
+ const buildLineDataList = res.data.map(item => item.Kwh);
|
|
|
+ const buildLineDataTime = res.data.map(item => item.time);
|
|
|
this.buildLineData = [
|
|
|
{
|
|
|
- name: "楼宇一",
|
|
|
+ name: "当前楼宇",
|
|
|
type: "line",
|
|
|
// areaStyle: {
|
|
|
// opacity: 0.8,
|
|
@@ -280,12 +301,12 @@ export default {
|
|
|
smooth: false,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
- color: '#00EBFC', // 节点颜色
|
|
|
- borderColor: '#00EBFC', // 节点边框颜色
|
|
|
- borderWidth: 4 // 节点边框宽度
|
|
|
+ color: '#00EBFC', // 节点颜色
|
|
|
+ borderColor: '#00EBFC', // 节点边框颜色
|
|
|
+ borderWidth: 4 // 节点边框宽度
|
|
|
}
|
|
|
- },
|
|
|
- data: [460,620, 900, 1180,1300, 1450,1560,1670,1300,1000,1700,3000 ],
|
|
|
+ },
|
|
|
+ data: buildLineDataList,
|
|
|
},
|
|
|
|
|
|
|
|
@@ -293,9 +314,7 @@ export default {
|
|
|
];
|
|
|
this.buildLineAxis = {
|
|
|
type: "category",
|
|
|
- data: [
|
|
|
- "1点","2点","3点","4点","5点","6点","7点","8点","9点","10点","11点","12点",
|
|
|
- ],
|
|
|
+ data:buildLineDataTime,
|
|
|
axisTick: {
|
|
|
show: false,
|
|
|
},
|
|
@@ -304,7 +323,7 @@ export default {
|
|
|
color: "#FFF",
|
|
|
},
|
|
|
},
|
|
|
- splitArea:false,
|
|
|
+ splitArea: false,
|
|
|
boundaryGap: false,
|
|
|
};
|
|
|
this.buildLineYAxis = {
|
|
@@ -312,7 +331,7 @@ export default {
|
|
|
nameTextStyle: {
|
|
|
color: '#fff',
|
|
|
},
|
|
|
- axisLine:{
|
|
|
+ axisLine: {
|
|
|
show: false,
|
|
|
},
|
|
|
axisLabel: {
|
|
@@ -322,36 +341,32 @@ export default {
|
|
|
splitLine: {
|
|
|
show: true,
|
|
|
lineStyle: {
|
|
|
- type:'dashed',
|
|
|
+ type: 'dashed',
|
|
|
color: '#1D2F38', // 背景线颜色
|
|
|
width: 1// 背景线宽度
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
axisTick: {
|
|
|
show: false,
|
|
|
},
|
|
|
- splitArea:false
|
|
|
+ splitArea: false
|
|
|
}
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
- //楼宇每月用电量
|
|
|
- handleYearData(){
|
|
|
+
|
|
|
+ //楼宇每月用电量
|
|
|
+ monthElectricity() {
|
|
|
+ monthElectricity(this.$props.appOrg).then((res) => {
|
|
|
+ if (Number(res.code) === 200) {
|
|
|
+ const buildLineDataFirstList= res.data.first.map(item => item.Kwh);
|
|
|
+ const buildLineDataSecondList= res.data.second.map(item => item.Kwh);
|
|
|
+ const buildLineDataThirdList= res.data.third.map(item => item.Kwh);
|
|
|
+ const buildLineDataTime = res.data.first.map(item => item.time);
|
|
|
this.yearLineData = [
|
|
|
{
|
|
|
name: "配电室一",
|
|
|
type: "line",
|
|
|
- // areaStyle: {
|
|
|
- // opacity: 0.8,
|
|
|
- // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
- // {
|
|
|
- // offset: 0.03,
|
|
|
- // color: "rgba(30, 240, 215, 0.4196)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // offset: 0.68,
|
|
|
- // color: "rgba(23, 240, 240, 0)",
|
|
|
- // },
|
|
|
- // ]),
|
|
|
- // },
|
|
|
lineStyle: {
|
|
|
width: 3, // 设置线宽
|
|
|
color: "#00EBFC", // 设置线的颜色
|
|
@@ -360,29 +375,17 @@ export default {
|
|
|
smooth: false,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
- color: '#00EBFC', // 节点颜色
|
|
|
- borderColor: '#00EBFC', // 节点边框颜色
|
|
|
- borderWidth: 4 // 节点边框宽度
|
|
|
+ color: '#00EBFC', // 节点颜色
|
|
|
+ borderColor: '#00EBFC', // 节点边框颜色
|
|
|
+ borderWidth: 4 // 节点边框宽度
|
|
|
}
|
|
|
- },
|
|
|
- data: [460,620, 900, 1180,1300, 1450,1560,1670,1300,1000,900,3000 ],
|
|
|
+ },
|
|
|
+ data: buildLineDataFirstList,
|
|
|
},
|
|
|
{
|
|
|
name: "配电室二",
|
|
|
type: "line",
|
|
|
- // areaStyle: {
|
|
|
- // opacity: 0.8,
|
|
|
- // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
- // {
|
|
|
- // offset: 0.03,
|
|
|
- // color: "rgba(214, 124, 21, 0.1804)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // offset: 0.68,
|
|
|
- // color: "rgba(23, 240, 240, 0)",
|
|
|
- // },
|
|
|
- // ]),
|
|
|
- // },
|
|
|
+
|
|
|
lineStyle: {
|
|
|
width: 3, // 设置线宽
|
|
|
color: "#00D390", // 设置线的颜色
|
|
@@ -391,31 +394,17 @@ export default {
|
|
|
smooth: false,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
- color: '"#00D390', // 节点颜色
|
|
|
- borderColor: '#00D390', // 节点边框颜色
|
|
|
- borderWidth: 4 // 节点边框宽度
|
|
|
+ color: '"#00D390', // 节点颜色
|
|
|
+ borderColor: '#00D390', // 节点边框颜色
|
|
|
+ borderWidth: 4 // 节点边框宽度
|
|
|
}
|
|
|
- },
|
|
|
- data: [2800, 2700, 2650, 3500,3000, 2400,2300,2200,1900,1800,1700,1500 ],
|
|
|
+ },
|
|
|
+ data: buildLineDataSecondList,
|
|
|
|
|
|
},
|
|
|
{
|
|
|
name: "配电室三",
|
|
|
type: "line",
|
|
|
-
|
|
|
- // areaStyle: {
|
|
|
- // opacity: 0.8,
|
|
|
- // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
- // {
|
|
|
- // offset: 0.03,
|
|
|
- // color: "rgba(30, 240, 215, 0.4196)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // offset: 0.68,
|
|
|
- // color: "rgba(23, 240, 240, 0)",
|
|
|
- // },
|
|
|
- // ]),
|
|
|
- // },
|
|
|
lineStyle: {
|
|
|
width: 3, // 设置线宽
|
|
|
color: "#FFED00", // 设置线的颜色
|
|
@@ -424,19 +413,19 @@ export default {
|
|
|
smooth: false,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
- color: '"#FFED00', // 节点颜色
|
|
|
- borderColor: '#FFED00', // 节点边框颜色
|
|
|
- borderWidth: 4 // 节点边框宽度
|
|
|
+ color: '"#FFED00', // 节点颜色
|
|
|
+ borderColor: '#FFED00', // 节点边框颜色
|
|
|
+ borderWidth: 4 // 节点边框宽度
|
|
|
}
|
|
|
- },
|
|
|
- data: [1400, 1200, 1100, 1000,900, 880,800,270,30,400,500,520 ],
|
|
|
+ },
|
|
|
+ data: buildLineDataThirdList,
|
|
|
},
|
|
|
|
|
|
];
|
|
|
this.yearLineAxis = {
|
|
|
type: "category",
|
|
|
data: [
|
|
|
- "1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",
|
|
|
+ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月",
|
|
|
],
|
|
|
axisTick: {
|
|
|
show: false,
|
|
@@ -446,7 +435,7 @@ export default {
|
|
|
color: "#FFF",
|
|
|
},
|
|
|
},
|
|
|
- splitArea:false,
|
|
|
+ splitArea: false,
|
|
|
boundaryGap: false,
|
|
|
};
|
|
|
this.yearLineYAxis = {
|
|
@@ -454,7 +443,7 @@ export default {
|
|
|
nameTextStyle: {
|
|
|
color: '#fff',
|
|
|
},
|
|
|
- axisLine:{
|
|
|
+ axisLine: {
|
|
|
show: false,
|
|
|
},
|
|
|
axisLabel: {
|
|
@@ -464,17 +453,20 @@ export default {
|
|
|
splitLine: {
|
|
|
show: true,
|
|
|
lineStyle: {
|
|
|
- type:'dashed',
|
|
|
+ type: 'dashed',
|
|
|
color: '#1D2F38', // 背景线颜色
|
|
|
width: 1// 背景线宽度
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
axisTick: {
|
|
|
show: false,
|
|
|
},
|
|
|
- splitArea:false
|
|
|
+ splitArea: false
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
+ });
|
|
|
+},
|
|
|
+
|
|
|
|
|
|
//碳排放量月度变化趋势图
|
|
|
carbonEmissionStatistics() {
|