|
@@ -477,6 +477,8 @@
|
|
|
|
|
|
<script>
|
|
|
import * as echarts from "echarts";
|
|
|
+import formateDate from "@/utils/date";
|
|
|
+import formateDate1 from "@/utils/date_1";
|
|
|
import excelHelper from "@/utils/excelHelper";
|
|
|
export default {
|
|
|
data() {
|
|
@@ -489,6 +491,10 @@ export default {
|
|
|
autoHeight_fc: 400,
|
|
|
autoHeight_pj: 800,
|
|
|
autoHeight_xl: 1200,
|
|
|
+ tableHeight_fc:'',
|
|
|
+ tableHeight_pj:'',
|
|
|
+ tableHeight_xl:'',
|
|
|
+ queryAll_table_lyl:[],
|
|
|
wpIdslist: {
|
|
|
name:"",
|
|
|
id:"",
|
|
@@ -525,16 +531,31 @@ export default {
|
|
|
},
|
|
|
styleObject_xl: {
|
|
|
height: '1220px'
|
|
|
+ },
|
|
|
+ linechar_data:{
|
|
|
+ dayspeed:[],
|
|
|
+ daydl2:[],
|
|
|
+ daynhgzssdl:[],
|
|
|
+ daynhcfdl:[],
|
|
|
+ daynhqfdl:[],
|
|
|
+ daynhxdssdl:[],
|
|
|
+ lyl:[],
|
|
|
+ wtName:[],
|
|
|
+ total:[],
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ created(){
|
|
|
+
|
|
|
+ },
|
|
|
onSubmit() {},
|
|
|
query_wpid() {
|
|
|
-
|
|
|
- this.$http.get("powercompare/windfarmAjax?").then((res) => {
|
|
|
- this.wpIdslist = res.data.data;
|
|
|
-
|
|
|
+ var newData = new Date();
|
|
|
+ this.beginDate = formateDate1(newData.getTime()/1000);
|
|
|
+ this.endDate = formateDate1(newData.getTime()/1000);
|
|
|
+ this.$http.get("powercompare/windfarmAjax?").then((res) => {
|
|
|
+ this.wpIdslist = res.data.data;
|
|
|
});
|
|
|
},
|
|
|
query_xml(){
|
|
@@ -551,11 +572,6 @@ export default {
|
|
|
this.linelist = res.data.data;
|
|
|
});
|
|
|
},
|
|
|
- query_lyl(queryAll_table) {
|
|
|
- Object.assign(this.$data.gridData, this.$options.data().gridData);
|
|
|
- queryAll_table.splice(-1, 1);
|
|
|
- this.gridData = queryAll_table;
|
|
|
- },
|
|
|
handleClick(tab) {
|
|
|
if (tab.name === "first") {
|
|
|
this.tableid = "fc";
|
|
@@ -578,6 +594,7 @@ export default {
|
|
|
Object.assign(this.$data.styleObject_pj, this.$options.data().styleObject_pj);
|
|
|
Object.assign(this.$data.autoHeight_xl, this.$options.data().autoHeight_xl);
|
|
|
Object.assign(this.$data.styleObject_xl, this.$options.data().styleObject_xl);
|
|
|
+ Object.assign(this.$data.queryAll_table_lyl, this.$options.data().queryAll_table_lyl);
|
|
|
this.styleObject_fc.height = '460px';
|
|
|
this.autoHeight_fc = '400px';
|
|
|
this.styleObject_pj.height = '860px';
|
|
@@ -587,27 +604,6 @@ export default {
|
|
|
this.fc_date = "";
|
|
|
this.xl_date = "";
|
|
|
this.pj_date = "";
|
|
|
- this.$http
|
|
|
- .get(
|
|
|
- "powercompare/queryPowerAll?wpIds=" +
|
|
|
- this.fc +
|
|
|
- "&beginDate=" +
|
|
|
- this.beginDate +
|
|
|
- "&endDate=" +
|
|
|
- this.endDate +
|
|
|
- "&queryType=" +
|
|
|
- this.tableid
|
|
|
- )
|
|
|
- .then((res) => {
|
|
|
- let that = this;
|
|
|
- if (this.tableid === "fc") {
|
|
|
- that.drawhistogram_fc(res.data.data);
|
|
|
- } else if (this.tableid === "pj") {
|
|
|
- that.drawhistogram_pj(res.data.data);
|
|
|
- } else if (this.tableid === "xl") {
|
|
|
- that.drawhistogram_xl(res.data.data);
|
|
|
- }
|
|
|
- });
|
|
|
//表格数据获取
|
|
|
this.$http
|
|
|
.get(
|
|
@@ -626,20 +622,46 @@ export default {
|
|
|
)
|
|
|
.then((res) => {
|
|
|
let that = this;
|
|
|
- let queryAll_table = res.data.data;
|
|
|
- this.query_lyl(queryAll_table);
|
|
|
+ Object.assign(this.$data.linechar_data, this.$options.data().linechar_data);
|
|
|
+ this.linechar_data.dayspeed=[];
|
|
|
+ this.linechar_data.daydl2=[];
|
|
|
+ this.linechar_data.daynhgzssdl=[];
|
|
|
+ this.linechar_data.daynhcfdl=[];
|
|
|
+ this.linechar_data.daynhqfdl=[];
|
|
|
+ this.linechar_data.daynhxdssdl=[];
|
|
|
+ this.linechar_data.lyl=[];
|
|
|
+ this.linechar_data.wtName=[];
|
|
|
+ let queryAll_table = res.data.data.list;
|
|
|
+ let queryAll_table_lyl = res.data.data.lyl;
|
|
|
+ for(let i = 0;i < Object.keys(queryAll_table).length;i++){
|
|
|
+ if(queryAll_table[i].wtName!="合计"){
|
|
|
+ that.linechar_data.dayspeed.push(queryAll_table[i].dayspeed.toFixed(2));
|
|
|
+ that.linechar_data.daydl2.push(queryAll_table[i].daydl2.toFixed(2));
|
|
|
+ that.linechar_data.daynhgzssdl.push(queryAll_table[i].daynhgzssdl.toFixed(2));
|
|
|
+ that.linechar_data.daynhcfdl.push(queryAll_table[i].daynhcfdl.toFixed(2));
|
|
|
+ that.linechar_data.daynhqfdl.push(queryAll_table[i].daynhqfdl.toFixed(2));
|
|
|
+ that.linechar_data.daynhxdssdl.push(queryAll_table[i].daynhxdssdl.toFixed(2));
|
|
|
+ that.linechar_data.lyl.push(queryAll_table[i].lyl.toFixed(2));
|
|
|
+ that.linechar_data.wtName.push(queryAll_table[i].wtName);
|
|
|
+ that.linechar_data.total.push(queryAll_table[i].total.toFixed(2));
|
|
|
+ }
|
|
|
+ }
|
|
|
if (this.tableid === "fc") {
|
|
|
that.fc_date = queryAll_table;
|
|
|
+ that.drawhistogram_fc(this.linechar_data,queryAll_table_lyl);
|
|
|
} else if (this.tableid === "pj") {
|
|
|
that.pj_date = queryAll_table;
|
|
|
+ that.drawhistogram_pj(this.linechar_data,queryAll_table_lyl);
|
|
|
} else if (this.tableid === "xl") {
|
|
|
that.xl_date = queryAll_table;
|
|
|
+ that.drawhistogram_xl(this.linechar_data,queryAll_table_lyl);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
async queryPowerAll() {
|
|
|
Object.assign(this.$data.autoHeight_fc, this.$options.data().autoHeight_fc);
|
|
|
Object.assign(this.$data.styleObject_fc, this.$options.data().styleObject_fc);
|
|
|
+ Object.assign(this.$data.linechar_data, this.$options.data().linechar_data);
|
|
|
let that = this;
|
|
|
if (
|
|
|
this.beginDate == "" ||
|
|
@@ -663,9 +685,39 @@ export default {
|
|
|
) {
|
|
|
that.query();
|
|
|
} else {
|
|
|
+ // this.$http
|
|
|
+ // .get(
|
|
|
+ // "powercompare/queryPower?wpIds=" +
|
|
|
+ // this.fc +
|
|
|
+ // "&pjIds=" +
|
|
|
+ // this.pj +
|
|
|
+ // "&lineIds=" +
|
|
|
+ // this.xl +
|
|
|
+ // "&beginDate=" +
|
|
|
+ // this.beginDate +
|
|
|
+ // "&endDate=" +
|
|
|
+ // this.endDate
|
|
|
+ // )
|
|
|
+ // .then((res) => {
|
|
|
+ // let that = this;
|
|
|
+ // let queryAll = res.data.data;
|
|
|
+ // this.len = Object.keys(queryAll.names).length;
|
|
|
+ // if(this.len <= 10){that.autoHeight_fc = 575; that.styleObject_fc.height = '700px' }
|
|
|
+ // else if(this.len > 10 && this.len <=20){that.autoHeight_fc = 775; that.styleObject_fc.height = '800px';that.autoHeight_pj = 775; that.styleObject_pj.height = '800px';that.autoHeight_xl = 775; that.styleObject_xl.height = '800px' }
|
|
|
+ // else if(this.len > 20 && this.len <=30){that.autoHeight_fc = 975; that.styleObject_fc.height = '1000px';that.autoHeight_pj = 975; that.styleObject_pj.height = '1000px';that.autoHeight_xl = 975; that.styleObject_xl.height = '1000px' }
|
|
|
+ // else if(this.len > 30 && this.len <=40){that.autoHeight_fc = 1175; that.styleObject_fc.height = '1200px';that.autoHeight_pj = 1175; that.styleObject_pj.height = '1200px';that.autoHeight_xl = 1175; that.styleObject_xl.height = '1200px' }
|
|
|
+ // else if(this.len > 40 && this.len <=50){that.autoHeight_fc = 1375; that.styleObject_fc.height = '1400px';that.autoHeight_pj = 1375; that.styleObject_pj.height = '1400px';that.autoHeight_xl = 1375; that.styleObject_xl.height = '1400px' }
|
|
|
+ // else if(this.len > 50 && this.len <=60){that.autoHeight_fc = 1575; that.styleObject_fc.height = '1600px';that.autoHeight_pj = 1575; that.styleObject_pj.height = '1600px';that.autoHeight_xl = 1575; that.styleObject_xl.height = '1600px' }
|
|
|
+ // else if(this.len > 60 && this.len <=70){that.autoHeight_fc = 1775; that.styleObject_fc.height = '1800px';that.autoHeight_pj = 1775; that.styleObject_pj.height = '1800px';that.autoHeight_xl = 1775; that.styleObject_xl.height = '1800px' }
|
|
|
+ // else if(this.len > 70 && this.len <=80){that.autoHeight_fc = 1975; that.styleObject_fc.height = '2000px';that.autoHeight_pj = 1975; that.styleObject_pj.height = '2000px';that.autoHeight_xl = 1975; that.styleObject_xl.height = '2000px' }
|
|
|
+ // else{that.autoHeight_fc = 2175; that.styleObject_fc.height = '2200px';that.autoHeight_pj = 2175; that.styleObject_pj.height = '2200px';that.autoHeight_xl = 2175; that.styleObject_xl.height = '2200px' }
|
|
|
+ // this.tableHeight_fc = this.autoHeight_fc - 20;
|
|
|
+ // this.tableHeight_pj = this.autoHeight_pj - 20;
|
|
|
+ // this.tableHeight_xl = this.autoHeight_xl - 20;
|
|
|
+ //});
|
|
|
this.$http
|
|
|
.get(
|
|
|
- "powercompare/queryPower?wpIds=" +
|
|
|
+ "powercompare/powerAjax?wpIds=" +
|
|
|
this.fc +
|
|
|
"&pjIds=" +
|
|
|
this.pj +
|
|
@@ -674,13 +726,15 @@ export default {
|
|
|
"&beginDate=" +
|
|
|
this.beginDate +
|
|
|
"&endDate=" +
|
|
|
- this.endDate
|
|
|
+ this.endDate +
|
|
|
+ "&sortName=" +
|
|
|
+ this.fc +
|
|
|
+ "&sortOrder=" +
|
|
|
+ "Asc"
|
|
|
)
|
|
|
.then((res) => {
|
|
|
let that = this;
|
|
|
- let queryAll = res.data.data;
|
|
|
- this.len = Object.keys(queryAll.names).length;
|
|
|
-
|
|
|
+ this.len = Object.keys(res.data.data.list).length;
|
|
|
if(this.len <= 10){that.autoHeight_fc = 575; that.styleObject_fc.height = '700px' }
|
|
|
else if(this.len > 10 && this.len <=20){that.autoHeight_fc = 775; that.styleObject_fc.height = '800px';that.autoHeight_pj = 775; that.styleObject_pj.height = '800px';that.autoHeight_xl = 775; that.styleObject_xl.height = '800px' }
|
|
|
else if(this.len > 20 && this.len <=30){that.autoHeight_fc = 975; that.styleObject_fc.height = '1000px';that.autoHeight_pj = 975; that.styleObject_pj.height = '1000px';that.autoHeight_xl = 975; that.styleObject_xl.height = '1000px' }
|
|
@@ -690,45 +744,45 @@ export default {
|
|
|
else if(this.len > 60 && this.len <=70){that.autoHeight_fc = 1775; that.styleObject_fc.height = '1800px';that.autoHeight_pj = 1775; that.styleObject_pj.height = '1800px';that.autoHeight_xl = 1775; that.styleObject_xl.height = '1800px' }
|
|
|
else if(this.len > 70 && this.len <=80){that.autoHeight_fc = 1975; that.styleObject_fc.height = '2000px';that.autoHeight_pj = 1975; that.styleObject_pj.height = '2000px';that.autoHeight_xl = 1975; that.styleObject_xl.height = '2000px' }
|
|
|
else{that.autoHeight_fc = 2175; that.styleObject_fc.height = '2200px';that.autoHeight_pj = 2175; that.styleObject_pj.height = '2200px';that.autoHeight_xl = 2175; that.styleObject_xl.height = '2200px' }
|
|
|
-
|
|
|
- if (this.tableid === "fc") {
|
|
|
- that.drawhistogram_fc(queryAll);
|
|
|
- } else if (this.tableid === "pj") {
|
|
|
- that.drawhistogram_pj(queryAll);
|
|
|
- } else if (this.tableid === "xl") {
|
|
|
- that.drawhistogram_xl(queryAll);
|
|
|
- }
|
|
|
this.tableHeight_fc = this.autoHeight_fc - 20;
|
|
|
this.tableHeight_pj = this.autoHeight_pj - 20;
|
|
|
this.tableHeight_xl = this.autoHeight_xl - 20;
|
|
|
- });
|
|
|
- this.$http
|
|
|
- .get(
|
|
|
- "powercompare/powerAjax?wpIds=" +
|
|
|
- this.fc +
|
|
|
- "&pjIds=" +
|
|
|
- this.pj +
|
|
|
- "&lineIds=" +
|
|
|
- this.xl +
|
|
|
- "&beginDate=" +
|
|
|
- this.beginDate +
|
|
|
- "&endDate=" +
|
|
|
- this.endDate +
|
|
|
- "&sortName=" +
|
|
|
- this.fc +
|
|
|
- "&sortOrder=" +
|
|
|
- "Asc"
|
|
|
- )
|
|
|
- .then((res) => {
|
|
|
- let that = this;
|
|
|
- let queryAll_table = res.data.data;
|
|
|
- if (this.tableid === "fc") {
|
|
|
- that.fc_date = queryAll_table;
|
|
|
- } else if (this.tableid === "pj") {
|
|
|
- that.pj_date = queryAll_table;
|
|
|
- } else if (this.tableid === "xl") {
|
|
|
- that.xl_date = queryAll_table;
|
|
|
+ Object.assign(this.$data.linechar_data, this.$options.data().linechar_data);
|
|
|
+ this.linechar_data.dayspeed=[];
|
|
|
+ this.linechar_data.daydl2=[];
|
|
|
+ this.linechar_data.daynhgzssdl=[];
|
|
|
+ this.linechar_data.daynhcfdl=[];
|
|
|
+ this.linechar_data.daynhqfdl=[];
|
|
|
+ this.linechar_data.daynhxdssdl=[];
|
|
|
+ this.linechar_data.lyl=[];
|
|
|
+ this.linechar_data.wtName=[];
|
|
|
+ let queryAll_table = res.data.data.list;
|
|
|
+ let queryAll_table_lyl = res.data.data.lyl;
|
|
|
+ //this.query_lyl(queryAll_table);
|
|
|
+ for(let i = 0;i < Object.keys(queryAll_table).length;i++){
|
|
|
+ if(queryAll_table[i].wtName!="合计"){
|
|
|
+ that.linechar_data.dayspeed.push(queryAll_table[i].dayspeed.toFixed(2));
|
|
|
+ that.linechar_data.daydl2.push(queryAll_table[i].daydl2.toFixed(2));
|
|
|
+ that.linechar_data.daynhgzssdl.push(queryAll_table[i].daynhgzssdl.toFixed(2));
|
|
|
+ that.linechar_data.daynhcfdl.push(queryAll_table[i].daynhcfdl.toFixed(2));
|
|
|
+ that.linechar_data.daynhqfdl.push(queryAll_table[i].daynhqfdl.toFixed(2));
|
|
|
+ that.linechar_data.daynhxdssdl.push(queryAll_table[i].daynhxdssdl.toFixed(2));
|
|
|
+ that.linechar_data.lyl.push(queryAll_table[i].lyl.toFixed(2));
|
|
|
+ that.linechar_data.wtName.push(queryAll_table[i].wtName);
|
|
|
+ that.linechar_data.total.push(queryAll_table[i].total.toFixed(2));
|
|
|
}
|
|
|
+
|
|
|
+ }
|
|
|
+ if (this.tableid === "fc") {
|
|
|
+ that.fc_date = queryAll_table;
|
|
|
+ that.drawhistogram_fc(this.linechar_data,queryAll_table_lyl);
|
|
|
+ } else if (this.tableid === "pj") {
|
|
|
+ that.pj_date = queryAll_table;
|
|
|
+ that.drawhistogram_pj(this.linechar_data,queryAll_table_lyl);
|
|
|
+ } else if (this.tableid === "xl") {
|
|
|
+ that.xl_date = queryAll_table;
|
|
|
+ that.drawhistogram_xl(this.linechar_data,queryAll_table_lyl);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -792,7 +846,7 @@ export default {
|
|
|
excelHelper.exportExcel("xl_table", "xl数据", ".xls", true);
|
|
|
}
|
|
|
},
|
|
|
- drawhistogram_fc(date) {
|
|
|
+ drawhistogram_fc(date,date2) {
|
|
|
this.chartLine = echarts.init(document.getElementById("histogram_fc"));
|
|
|
this.chartLine.clear();
|
|
|
this.chartLine.resize({ height: this.autoHeight_fc });
|
|
@@ -832,7 +886,7 @@ export default {
|
|
|
"限电损失",
|
|
|
"受累损失",
|
|
|
"性能损失",
|
|
|
- "总和",
|
|
|
+ "-",
|
|
|
],
|
|
|
},
|
|
|
grid: {
|
|
@@ -846,7 +900,7 @@ export default {
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "category",
|
|
|
- data: date.names,
|
|
|
+ data: date.wtName,
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
@@ -859,7 +913,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.sfdl,
|
|
|
+ data: date.daydl2,
|
|
|
},
|
|
|
{
|
|
|
name: "计划检修损失",
|
|
@@ -871,7 +925,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.whdl,
|
|
|
+ data: date.daynhwhssdl,
|
|
|
},
|
|
|
{
|
|
|
name: "非计划检修损失",
|
|
@@ -883,7 +937,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.gzdl,
|
|
|
+ data: date.daynhgzssdl,
|
|
|
},
|
|
|
{
|
|
|
name: "限电损失",
|
|
@@ -895,7 +949,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.xddl,
|
|
|
+ data: date.daynhxdssdl,
|
|
|
},
|
|
|
{
|
|
|
name: "受累损失",
|
|
@@ -907,24 +961,27 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.sldl,
|
|
|
+ data: date.daynhcfdl,
|
|
|
},
|
|
|
{
|
|
|
name: "性能损失",
|
|
|
type: "bar",
|
|
|
stack: "total",
|
|
|
label: {
|
|
|
- show: date.qfdl,
|
|
|
+ show: true,
|
|
|
},
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.qfdl,
|
|
|
+ data: date.daynhxdssdl,
|
|
|
},
|
|
|
//曲线
|
|
|
{
|
|
|
- name: "总和",
|
|
|
- data: date.yfdl,
|
|
|
+ name: "-",
|
|
|
+ data: date.total,
|
|
|
+ markPoint: {
|
|
|
+ data: date2,
|
|
|
+ },
|
|
|
type: "line",
|
|
|
symbol: "circle",
|
|
|
symbolSize: 20,
|
|
@@ -943,7 +1000,7 @@ export default {
|
|
|
};
|
|
|
this.chartLine.setOption(option);
|
|
|
},
|
|
|
- drawhistogram_pj(date) {
|
|
|
+ drawhistogram_pj(date,date2) {
|
|
|
this.chartLine = echarts.init(document.getElementById("histogram_xm"));
|
|
|
this.chartLine.clear();
|
|
|
this.chartLine.resize({ height: this.autoHeight_pj });
|
|
@@ -985,7 +1042,7 @@ export default {
|
|
|
"限电损失",
|
|
|
"受累损失",
|
|
|
"性能损失",
|
|
|
- "总和",
|
|
|
+ "-",
|
|
|
],
|
|
|
},
|
|
|
grid: {
|
|
@@ -999,7 +1056,7 @@ export default {
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "category",
|
|
|
- data: date.names,
|
|
|
+ data: date.wtName,
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
@@ -1012,7 +1069,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.sfdl,
|
|
|
+ data: date.daydl2,
|
|
|
},
|
|
|
{
|
|
|
name: "计划检修损失",
|
|
@@ -1024,7 +1081,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.whdl,
|
|
|
+ data: date.daynhwhssdl,
|
|
|
},
|
|
|
{
|
|
|
name: "非计划检修损失",
|
|
@@ -1036,7 +1093,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.gzdl,
|
|
|
+ data: date.daynhgzssdl,
|
|
|
},
|
|
|
{
|
|
|
name: "限电损失",
|
|
@@ -1048,7 +1105,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.xddl,
|
|
|
+ data: date.daynhxdssdl,
|
|
|
},
|
|
|
{
|
|
|
name: "受累损失",
|
|
@@ -1060,24 +1117,27 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.sldl,
|
|
|
+ data: date.daynhcfdl,
|
|
|
},
|
|
|
{
|
|
|
name: "性能损失",
|
|
|
type: "bar",
|
|
|
stack: "total",
|
|
|
label: {
|
|
|
- show: date.qfdl,
|
|
|
+ show: true,
|
|
|
},
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.qfdl,
|
|
|
+ data: date.daynhxdssdl,
|
|
|
},
|
|
|
//曲线
|
|
|
{
|
|
|
- name: "总和",
|
|
|
- data: date.yfdl,
|
|
|
+ name: "-",
|
|
|
+ data: date.total,
|
|
|
+ markPoint: {
|
|
|
+ data: date2,
|
|
|
+ },
|
|
|
type: "line",
|
|
|
symbol: "circle",
|
|
|
symbolSize: 20,
|
|
@@ -1096,7 +1156,7 @@ export default {
|
|
|
};
|
|
|
this.chartLine.setOption(option);
|
|
|
},
|
|
|
- drawhistogram_xl(date) {
|
|
|
+ drawhistogram_xl(date,date2) {
|
|
|
this.chartLine = echarts.init(document.getElementById("histogram_jdxl"));
|
|
|
this.chartLine.clear();
|
|
|
this.chartLine.resize({ height: this.autoHeight_xl });
|
|
@@ -1137,7 +1197,7 @@ export default {
|
|
|
"限电损失",
|
|
|
"受累损失",
|
|
|
"性能损失",
|
|
|
- "总和",
|
|
|
+ "-",
|
|
|
],
|
|
|
},
|
|
|
grid: {
|
|
@@ -1151,7 +1211,7 @@ export default {
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "category",
|
|
|
- data: date.names,
|
|
|
+ data: date.wtName,
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
@@ -1164,7 +1224,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.sfdl,
|
|
|
+ data: date.daydl2,
|
|
|
},
|
|
|
{
|
|
|
name: "计划检修损失",
|
|
@@ -1176,7 +1236,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.whdl,
|
|
|
+ data: date.daynhwhssdl,
|
|
|
},
|
|
|
{
|
|
|
name: "非计划检修损失",
|
|
@@ -1188,7 +1248,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.gzdl,
|
|
|
+ data: date.daynhgzssdl,
|
|
|
},
|
|
|
{
|
|
|
name: "限电损失",
|
|
@@ -1200,7 +1260,7 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.xddl,
|
|
|
+ data: date.daynhxdssdl,
|
|
|
},
|
|
|
{
|
|
|
name: "受累损失",
|
|
@@ -1212,24 +1272,27 @@ export default {
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.sldl,
|
|
|
+ data: date.daynhcfdl,
|
|
|
},
|
|
|
{
|
|
|
name: "性能损失",
|
|
|
type: "bar",
|
|
|
stack: "total",
|
|
|
label: {
|
|
|
- show: date.qfdl,
|
|
|
+ show: true,
|
|
|
},
|
|
|
emphasis: {
|
|
|
focus: "series",
|
|
|
},
|
|
|
- data: date.qfdl,
|
|
|
+ data: date.daynhxdssdl,
|
|
|
},
|
|
|
//曲线
|
|
|
{
|
|
|
- name: "总和",
|
|
|
- data: date.yfdl,
|
|
|
+ name: "-",
|
|
|
+ data: date.total,
|
|
|
+ markPoint: {
|
|
|
+ data: date2,
|
|
|
+ },
|
|
|
type: "line",
|
|
|
symbol: "circle",
|
|
|
symbolSize: 20,
|
|
@@ -1254,6 +1317,7 @@ export default {
|
|
|
|
|
|
//后面的50:根据需求空出的高度,自行调整
|
|
|
});
|
|
|
+
|
|
|
this.query_wpid();
|
|
|
this.query();
|
|
|
},
|