Browse Source

一些图表添加单位

meizhou
selia-zx 2 weeks ago
parent
commit
b63bc3ed98
  1. 4
      src/views/aircAndWindc/awSysMonitor/asSysMonitorDetails.vue
  2. 7
      src/views/centerairC/enSourceAnalysis/components/deviceEnergy.vue
  3. 5
      src/views/centerairC/enSourceAnalysis/components/equipment.vue
  4. 40
      src/views/centerairC/energyAnalysis/components/energyAnalysis.vue
  5. 7
      src/views/centerairC/temHistoryQuery/index.vue
  6. 17
      src/views/hotWater/energyAnalysis/components/energyReport.vue
  7. 7
      src/views/hotWater/energyAnalysis/components/temReport.vue
  8. 7
      src/views/hotWater/energyAnalysis/components/waterReport.vue
  9. 10
      src/views/hotWater/energyQuery/components/energy.vue

4
src/views/aircAndWindc/awSysMonitor/asSysMonitorDetails.vue

@ -16,7 +16,7 @@
src="../../../assets/images/title-right.png" src="../../../assets/images/title-right.png"
alt="" alt=""
/> />
<div class="sys-title">铭汉高效冷源站管理系统</div> <div class="sys-title">空调风柜监控系统</div>
<!-- logo --> <!-- logo -->
<img src="../../../assets/images/logo-3.png" class="sys-logo" alt="" /> <img src="../../../assets/images/logo-3.png" class="sys-logo" alt="" />
<div class="nowTime">{{ formattedDate }}</div> <div class="nowTime">{{ formattedDate }}</div>
@ -606,7 +606,7 @@ export default {
}, },
// //
goBack() { goBack() {
this.$router.back(); window.history.go(-2);
}, },
// //
getDayData() { getDayData() {

7
src/views/centerairC/enSourceAnalysis/components/deviceEnergy.vue

@ -425,6 +425,11 @@ export default {
this.option2.series[0].data = this.electData2; this.option2.series[0].data = this.electData2;
this.option2.xAxis.data = this.dateList2; this.option2.xAxis.data = this.dateList2;
this.option2.yAxis.name = "kwh";
this.option2.yAxis.nameTextStyle = {
color: "rgba(255, 255, 255, 1)",
fontSize: 12,
};
console.log("x轴", this.dateList2); console.log("x轴", this.dateList2);
console.log("折线图数据", this.electData2); console.log("折线图数据", this.electData2);
this.screenAdapter(); this.screenAdapter();
@ -500,7 +505,7 @@ export default {
show: false, // show: false, //
}, },
grid: { grid: {
top: "5%", top: "6%",
left: "3%", left: "3%",
right: "4.4%", right: "4.4%",
bottom: "20%", bottom: "20%",

5
src/views/centerairC/enSourceAnalysis/components/equipment.vue

@ -560,6 +560,11 @@ export default {
console.log("图表数据", this.dataArr); console.log("图表数据", this.dataArr);
this.option1.series = this.dataArr; this.option1.series = this.dataArr;
this.option1.xAxis.data = this.timeData; this.option1.xAxis.data = this.timeData;
this.option1.yAxis.name = "kwh";
this.option1.yAxis.nameTextStyle = {
color: "rgba(255, 255, 255, 1)",
fontSize: 12,
};
// //
this.chartInstance1.clear(); this.chartInstance1.clear();
this.screenAdapter(); this.screenAdapter();

40
src/views/centerairC/energyAnalysis/components/energyAnalysis.vue

@ -487,7 +487,7 @@ export default {
}, },
grid: { grid: {
top: "5%", top: "9%",
left: "3%", left: "3%",
right: "4.4%", right: "4.4%",
bottom: "20%", bottom: "20%",
@ -696,6 +696,17 @@ export default {
// //
screenAdapter2() { screenAdapter2() {
// console.log("checkList:", this.checkList); // console.log("checkList:", this.checkList);
//
// const selected = {
// EER: false,
// : false,
// : false,
// };
// const updatedSelected = {
// ...selected,
// [this.checkList]: true,
// };
//
const selected = { const selected = {
瞬时系统EER: false, 瞬时系统EER: false,
瞬时冷量: false, 瞬时冷量: false,
@ -705,6 +716,26 @@ export default {
...selected, ...selected,
[this.checkList]: true, [this.checkList]: true,
}; };
let unit;
// selected
for (const key in updatedSelected) {
if (updatedSelected[key]) {
switch (key) {
case "瞬时系统EER":
unit = "";
break;
case "瞬时冷量":
unit = "kwr";
break;
case "瞬时功率":
unit = "kw";
break;
default:
unit = "";
}
break;
}
}
// console.log(updatedSelected); // console.log(updatedSelected);
//,2.6 mes_ref //,2.6 mes_ref
const titleFontSize = this.$refs.charts_refs.offsetWidth / 130; const titleFontSize = this.$refs.charts_refs.offsetWidth / 130;
@ -717,6 +748,9 @@ export default {
// data: ["2021", "2022", "2023"], // data: ["2021", "2022", "2023"],
data: this.dateList2, data: this.dateList2,
}, },
yAxis: {
name: unit,
},
series: [ series: [
{ {
name: "瞬时系统EER", name: "瞬时系统EER",
@ -756,6 +790,10 @@ export default {
axisLabel: { axisLabel: {
fontSize: titleFontSize * 1.5, fontSize: titleFontSize * 1.5,
}, },
nameTextStyle: {
color: "rgba(255, 255, 255, 1)",
fontSize: titleFontSize * 1.3,
},
}, },
}; };
//.chartInstanceoptiondataoption //.chartInstanceoptiondataoption

7
src/views/centerairC/temHistoryQuery/index.vue

@ -173,6 +173,13 @@ export default {
xAxis: { xAxis: {
data: timeValue, data: timeValue,
}, },
yAxis: {
name: "℃",
nameTextStyle: {
color: "rgba(255, 255, 255, 1)",
fontSize: 12,
},
},
series: [ series: [
{ {
data: hightValue, data: hightValue,

17
src/views/hotWater/energyAnalysis/components/energyReport.vue

@ -534,6 +534,11 @@ export default {
}, },
renderingBroken() { renderingBroken() {
if (this.currentIndex === 0) { if (this.currentIndex === 0) {
this.brokenOption.yAxis.name = "吨";
this.brokenOption.yAxis.nameTextStyle = {
color: "rgba(255, 255, 255, 1)",
fontSize: 12,
};
this.brokenOption.series[0].data = this.brokenData1; this.brokenOption.series[0].data = this.brokenData1;
this.brokenOption.series[0].itemStyle.color = "#d48e17"; this.brokenOption.series[0].itemStyle.color = "#d48e17";
this.brokenOption.series[0].areaStyle.color.colorStops = [ this.brokenOption.series[0].areaStyle.color.colorStops = [
@ -547,6 +552,11 @@ export default {
}, },
]; ];
} else if (this.currentIndex === 1) { } else if (this.currentIndex === 1) {
this.brokenOption.yAxis.name = "度";
this.brokenOption.yAxis.nameTextStyle = {
color: "rgba(255, 255, 255, 1)",
fontSize: 12,
};
this.brokenOption.series[0].data = this.brokenData2; this.brokenOption.series[0].data = this.brokenData2;
this.brokenOption.series[0].itemStyle.color = "#1ab395"; this.brokenOption.series[0].itemStyle.color = "#1ab395";
this.brokenOption.series[0].areaStyle.color.colorStops = [ this.brokenOption.series[0].areaStyle.color.colorStops = [
@ -560,6 +570,11 @@ export default {
}, },
]; ];
} else if (this.currentIndex === 2) { } else if (this.currentIndex === 2) {
this.brokenOption.yAxis.name = "度/吨";
this.brokenOption.yAxis.nameTextStyle = {
color: "rgba(255, 255, 255, 1)",
fontSize: 12,
};
this.brokenOption.series[0].data = this.brokenData3; this.brokenOption.series[0].data = this.brokenData3;
this.brokenOption.series[0].itemStyle.color = "#1f8dee"; this.brokenOption.series[0].itemStyle.color = "#1f8dee";
this.brokenOption.series[0].areaStyle.color.colorStops = [ this.brokenOption.series[0].areaStyle.color.colorStops = [
@ -723,7 +738,7 @@ export default {
}, },
grid: { grid: {
top: "4%", top: "10%",
left: "3%", left: "3%",
right: "4%", right: "4%",
bottom: "5%", bottom: "5%",

7
src/views/hotWater/energyAnalysis/components/temReport.vue

@ -224,6 +224,11 @@ export default {
}, },
// //
renderingBroken() { renderingBroken() {
this.brokenOption.yAxis.name = "℃";
this.brokenOption.yAxis.nameTextStyle = {
color: "rgba(255, 255, 255, 1)",
fontSize: 12,
};
this.brokenOption.series[0].data = this.brokenData1; this.brokenOption.series[0].data = this.brokenData1;
this.brokenOption.series[0].itemStyle.color = "#1f8dee"; this.brokenOption.series[0].itemStyle.color = "#1f8dee";
this.brokenOption.series[0].areaStyle.color.colorStops = [ this.brokenOption.series[0].areaStyle.color.colorStops = [
@ -432,7 +437,7 @@ export default {
}, },
grid: { grid: {
top: "4%", top: "10%",
left: "3%", left: "3%",
right: "4%", right: "4%",
bottom: "5%", bottom: "5%",

7
src/views/hotWater/energyAnalysis/components/waterReport.vue

@ -223,6 +223,11 @@ export default {
}, },
// //
renderingBroken() { renderingBroken() {
this.brokenOption.yAxis.name = "%";
this.brokenOption.yAxis.nameTextStyle = {
color: "rgba(255, 255, 255, 1)",
fontSize: 12,
};
this.brokenOption.series[0].data = this.brokenData1; this.brokenOption.series[0].data = this.brokenData1;
this.brokenOption.series[0].itemStyle.color = "#1f8dee"; this.brokenOption.series[0].itemStyle.color = "#1f8dee";
this.brokenOption.series[0].areaStyle.color.colorStops = [ this.brokenOption.series[0].areaStyle.color.colorStops = [
@ -432,7 +437,7 @@ export default {
}, },
grid: { grid: {
top: "4%", top: "10%",
left: "3%", left: "3%",
right: "4%", right: "4%",
bottom: "5%", bottom: "5%",

10
src/views/hotWater/energyQuery/components/energy.vue

@ -160,6 +160,11 @@ export default {
// //
getChartData() { getChartData() {
if (this.currentIndex === 0) { if (this.currentIndex === 0) {
this.brokenOption.yAxis.name = "吨";
this.brokenOption.yAxis.nameTextStyle = {
color: "rgba(255, 255, 255, 1)",
fontSize: 12,
};
this.brokenOption.series[0].data = this.brokenData1; this.brokenOption.series[0].data = this.brokenData1;
this.brokenOption.series[0].itemStyle.color = "#1f8dee"; this.brokenOption.series[0].itemStyle.color = "#1f8dee";
this.brokenOption.series[0].areaStyle.color.colorStops = [ this.brokenOption.series[0].areaStyle.color.colorStops = [
@ -173,6 +178,11 @@ export default {
}, },
]; ];
} else if (this.currentIndex === 1) { } else if (this.currentIndex === 1) {
this.brokenOption.yAxis.name = "度";
this.brokenOption.yAxis.nameTextStyle = {
color: "rgba(255, 255, 255, 1)",
fontSize: 12,
};
this.brokenOption.series[0].data = this.brokenData2; this.brokenOption.series[0].data = this.brokenData2;
this.brokenOption.series[0].itemStyle.color = "#1ab395"; this.brokenOption.series[0].itemStyle.color = "#1ab395";
this.brokenOption.series[0].areaStyle.color.colorStops = [ this.brokenOption.series[0].areaStyle.color.colorStops = [

Loading…
Cancel
Save