|
@@ -42,8 +42,8 @@ export default {
|
|
|
this.dialogTableVisible = true;
|
|
|
this.check_wpid();
|
|
|
this.$nextTick(function () {
|
|
|
- this.ECZM.leida_tc("leidatu" , this.getChartDataValue,this.BASE.getBzDate(new Date(this.wp_n_1.recordDate),0),this.getChartDataValue2,this.BASE.getBzDate(new Date(this.wp_n_2.recordDate),0));
|
|
|
- this.ECZM.bar_tc("histogram_n" , this.wp_n_1 , this.wp_n_2);
|
|
|
+ this.ECZM.leida_tc("leidatu" , this.getChartDataValue,this.fdcName1,this.getChartDataValue2,this.fdcName2);
|
|
|
+ this.ECZM.bar_tc("histogram_n" , this.wp_n_1 , this.wp_n_2 , this.wp_n_1.wpId , this.wp_n_2.wpId);
|
|
|
});
|
|
|
},
|
|
|
headStyle() {
|
|
@@ -200,28 +200,6 @@ export default {
|
|
|
* 跳转详情页面
|
|
|
*/
|
|
|
handleEdit(a, b) {
|
|
|
- this.wpId = [];
|
|
|
- this.lineDataOption = [];
|
|
|
- if (this.selectrowdate.length == 2) {
|
|
|
- for (let i = 0; i < this.selectrowdate.length; i++) {
|
|
|
- this.wpId.push(this.selectrowdate[i].wpId);
|
|
|
- this.wpName.push(this.selectrowdate[i].wpName);
|
|
|
- this.lineDataOption.push({
|
|
|
- id: this.selectrowdate[i].wpId,
|
|
|
- name: this.selectrowdate[i].wpName,
|
|
|
- });
|
|
|
- }
|
|
|
- this.$router.push({
|
|
|
- path: "/yardBenchmarkParticulars",
|
|
|
- query: {
|
|
|
- wpId: this.wpId,
|
|
|
- beginDate: this.beginDate,
|
|
|
- endDate: this.endDate,
|
|
|
- wpName: this.wpName,
|
|
|
- select: this.lineDataOption,
|
|
|
- },
|
|
|
- });
|
|
|
- } else {
|
|
|
this.lineDataOption.push({ id: b.wpId, name: b.wpName });
|
|
|
this.$router.push({
|
|
|
path: "/yardBenchmarkParticulars",
|
|
@@ -233,7 +211,6 @@ export default {
|
|
|
select: this.lineDataOption,
|
|
|
},
|
|
|
});
|
|
|
- }
|
|
|
},
|
|
|
/**
|
|
|
* 查询场内对标列表信息
|
|
@@ -269,35 +246,7 @@ export default {
|
|
|
|
|
|
}
|
|
|
|
|
|
- //this.drawhistoram();
|
|
|
- this.ECZM.getBar_fdd("histogram",[
|
|
|
- {
|
|
|
- name: "限电损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- data: this.histogram.xdss,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "故障损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- data: this.histogram.gzss,
|
|
|
- },
|
|
|
- ,
|
|
|
- {
|
|
|
- name: "检修损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- data: this.histogram.jxss,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "性能损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- data: this.histogram.xnss,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "受累损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- data: this.histogram.slss,
|
|
|
- },
|
|
|
- ],this.histogram.date);
|
|
|
+ this.ECZM.getBar_fdd("histogram",this.histogram);
|
|
|
}).catch(error =>{
|
|
|
this.$message.error('获取数据失败');
|
|
|
});
|
|
@@ -311,250 +260,6 @@ export default {
|
|
|
|
|
|
return this.BASE.getBzDate(date,0);
|
|
|
},
|
|
|
-
|
|
|
- drawleidatu() {
|
|
|
- var chartDom = document.getElementById("leidatu");
|
|
|
- var myChart = echarts.init(chartDom);
|
|
|
- var option;
|
|
|
-
|
|
|
- option = {
|
|
|
- title: {
|
|
|
- text: "对标排名分析",
|
|
|
- left: 400,
|
|
|
- top: -5,
|
|
|
- textStyle: {
|
|
|
- fontSize: 13,
|
|
|
- },
|
|
|
- },
|
|
|
- grid: {
|
|
|
- top: "10%",
|
|
|
- left: "10%",
|
|
|
- right: "10%",
|
|
|
- bottom: "0",
|
|
|
- },
|
|
|
- tooltip: {},
|
|
|
- legend: {
|
|
|
- orient: "vertical",
|
|
|
- x: "left", //可设定图例在左、右、居中
|
|
|
- y: "0", //可设定图例在上、下、居中
|
|
|
- padding: [0, 50, 0, 0],
|
|
|
- },
|
|
|
- radar: {
|
|
|
- // shape: 'circle',
|
|
|
- name: {
|
|
|
- textStyle: {
|
|
|
- color: "#fff",
|
|
|
- backgroundColor: "#999",
|
|
|
- borderRadius: 3,
|
|
|
- padding: [3, 5],
|
|
|
- },
|
|
|
- },
|
|
|
- indicator: [
|
|
|
- { name: "风能利用率", max: 100 },
|
|
|
- { name: "故障损失率", max: 100 },
|
|
|
- { name: "检修损失率", max: 100 },
|
|
|
- { name: "弃风率", max: 100 },
|
|
|
- { name: "性能损失率", max: 100 },
|
|
|
- { name: "受累损失率", max: 100 },
|
|
|
- { name: "复位及时率", max: 100 },
|
|
|
- { name: "状态转换率", max: 100 },
|
|
|
- { name: "消缺及时率", max: 100 },
|
|
|
- ],
|
|
|
- },
|
|
|
- series: [
|
|
|
- {
|
|
|
- name: "预算 vs 开销(Budget vs spending)",
|
|
|
- type: "radar",
|
|
|
- // areaStyle: {normal: {}},
|
|
|
- data: [
|
|
|
- {
|
|
|
- value: this.getChartDataValue,
|
|
|
- name: this.BASE.getBzDate(new Date(this.wp_n_1.recordDate),0),
|
|
|
- },
|
|
|
- {
|
|
|
- value: this.getChartDataValue2,
|
|
|
- name: this.BASE.getBzDate(new Date(this.wp_n_2.recordDate),0),
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
- };
|
|
|
-
|
|
|
- option && myChart.setOption(option);
|
|
|
- },
|
|
|
-
|
|
|
- drawhistogram_n() {
|
|
|
- var chartDom = document.getElementById("histogram_n");
|
|
|
- var myChart = echarts.init(chartDom);
|
|
|
- var option;
|
|
|
-
|
|
|
- option = {
|
|
|
- tooltip: {
|
|
|
- trigger: "axis",
|
|
|
- axisPointer: {
|
|
|
- type: "cross",
|
|
|
- crossStyle: {
|
|
|
- color: "#999",
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- title: {
|
|
|
- text: "损失电量分析",
|
|
|
- left: 100,
|
|
|
- top: 8,
|
|
|
- textStyle: {
|
|
|
- fontSize: 13,
|
|
|
- },
|
|
|
- },
|
|
|
- grid: {
|
|
|
- top: "90",
|
|
|
- left: "10%",
|
|
|
- right: "10%",
|
|
|
- bottom: "30",
|
|
|
- },
|
|
|
- legend: {
|
|
|
- orient: "vertical",
|
|
|
- x: "right", //可设定图例在左、右、居中
|
|
|
- y: 0, //可设定图例在上、下、居中
|
|
|
- padding: [0, 50, 200, 0],
|
|
|
- data: [
|
|
|
- "限电损失电量(单位:万kwh)",
|
|
|
- "故障损失电量(单位:万kwh)",
|
|
|
- "检修损失电量(单位:万kwh)",
|
|
|
- "性能损失电量(单位:万kwh)",
|
|
|
- "受累损失电量(单位:万kwh)",
|
|
|
- ],
|
|
|
- },
|
|
|
- xAxis: [
|
|
|
- {
|
|
|
- type: "category",
|
|
|
- data: [
|
|
|
- this.BASE.getBzDate(new Date(this.wp_n_1.recordDate),0),
|
|
|
- this.BASE.getBzDate(new Date(this.wp_n_2.recordDate),0),
|
|
|
- ],
|
|
|
- axisPointer: {
|
|
|
- type: "shadow",
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- yAxis: [
|
|
|
- {
|
|
|
- type: "value",
|
|
|
- name: "电量",
|
|
|
-
|
|
|
- interval: 50,
|
|
|
- axisLabel: {
|
|
|
- formatter: "{value} 万kw",
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- series: [
|
|
|
- {
|
|
|
- name: "限电损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- yAxisIndex: 0,
|
|
|
- data: [this.wp_n_1.xdss, this.wp_n_2.xdss],
|
|
|
- },
|
|
|
- {
|
|
|
- name: "故障损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- yAxisIndex: 0,
|
|
|
- data: [this.wp_n_1.zzss, this.wp_n_2.gzss],
|
|
|
- },
|
|
|
- {
|
|
|
- name: "检修损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- yAxisIndex: 0,
|
|
|
- data: [this.wp_n_1.jxss, this.wp_n_2.jxss],
|
|
|
- },
|
|
|
- {
|
|
|
- name: "性能损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- yAxisIndex: 0,
|
|
|
- data: [this.wp_n_1.xnss, this.wp_n_2.xnss],
|
|
|
- },
|
|
|
- {
|
|
|
- name: "受累损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- yAxisIndex: 0,
|
|
|
- data: [this.wp_n_1.slss, this.wp_n_2.slss],
|
|
|
- },
|
|
|
- ],
|
|
|
- };
|
|
|
-
|
|
|
- option && myChart.setOption(option);
|
|
|
- },
|
|
|
- drawhistogram() {
|
|
|
- var app = {};
|
|
|
- var chartDom = document.getElementById("histogram");
|
|
|
-
|
|
|
- var myChart = echarts.init(chartDom);
|
|
|
- var option;
|
|
|
-
|
|
|
- option = {
|
|
|
- title: {
|
|
|
- text: "损失电量分析",
|
|
|
- },
|
|
|
- tooltip: {
|
|
|
- trigger: "axis",
|
|
|
- axisPointer: {
|
|
|
- type: "shadow",
|
|
|
- },
|
|
|
- },
|
|
|
- legend: {
|
|
|
- data: [
|
|
|
- "限电损失电量(单位:万kwh)",
|
|
|
- "故障损失电量(单位:万kwh)",
|
|
|
- "检修损失电量(单位:万kwh)",
|
|
|
- "性能损失电量(单位:万kwh)",
|
|
|
- "受累损失电量(单位:万kwh)",
|
|
|
- ],
|
|
|
- },
|
|
|
- grid: {
|
|
|
- left: "3%",
|
|
|
- right: "4%",
|
|
|
- bottom: "3%",
|
|
|
- containLabel: true,
|
|
|
- },
|
|
|
- yAxis: {
|
|
|
- type: "value",
|
|
|
- boundaryGap: [0, 0.01],
|
|
|
- },
|
|
|
- xAxis: {
|
|
|
- type: "category",
|
|
|
- data: this.histogram.date,
|
|
|
- },
|
|
|
- series: [
|
|
|
- {
|
|
|
- name: "限电损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- data: this.histogram.xdss,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "故障损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- data: this.histogram.gzss,
|
|
|
- },
|
|
|
- ,
|
|
|
- {
|
|
|
- name: "检修损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- data: this.histogram.jxss,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "性能损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- data: this.histogram.xnss,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "受累损失电量(单位:万kwh)",
|
|
|
- type: "bar",
|
|
|
- data: this.histogram.slss,
|
|
|
- },
|
|
|
- ],
|
|
|
- };
|
|
|
- option && myChart.setOption(option);
|
|
|
- },
|
|
|
},
|
|
|
mounted() {
|
|
|
this.query_fc();
|