|
@@ -3,6 +3,11 @@ import * as echarts from "echarts";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ pickerOptions: {
|
|
|
|
+ disabledDate(time) {
|
|
|
|
+ return time.getTime() > Date.now();
|
|
|
|
+ },
|
|
|
|
+ },
|
|
formInline: {
|
|
formInline: {
|
|
windfarm: "",
|
|
windfarm: "",
|
|
project: "",
|
|
project: "",
|
|
@@ -21,6 +26,8 @@ export default {
|
|
sortInOrderTop2: [],
|
|
sortInOrderTop2: [],
|
|
fdcName1: "",
|
|
fdcName1: "",
|
|
fdcName2: "",
|
|
fdcName2: "",
|
|
|
|
+ wp_n_1: {},
|
|
|
|
+ wp_n_2: {},
|
|
currentPage2: 1,
|
|
currentPage2: 1,
|
|
pagesize: 10,
|
|
pagesize: 10,
|
|
classification: [
|
|
classification: [
|
|
@@ -77,6 +84,7 @@ export default {
|
|
getChartDataValue: [],
|
|
getChartDataValue: [],
|
|
getChartDataValue2: [],
|
|
getChartDataValue2: [],
|
|
chartsAName2: "",
|
|
chartsAName2: "",
|
|
|
|
+ selectrowdate: {},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
// components: {
|
|
// components: {
|
|
@@ -103,7 +111,7 @@ export default {
|
|
* 检查是否选择两个项目
|
|
* 检查是否选择两个项目
|
|
*/
|
|
*/
|
|
querycheck(){
|
|
querycheck(){
|
|
- if(this.multipleSelection.length == 2){
|
|
|
|
|
|
+ if(this.selectrowdate.length == 2){
|
|
this.queryApDataMx();
|
|
this.queryApDataMx();
|
|
}else{
|
|
}else{
|
|
this.$message({
|
|
this.$message({
|
|
@@ -176,130 +184,134 @@ export default {
|
|
*/
|
|
*/
|
|
queryApDataMx() {
|
|
queryApDataMx() {
|
|
this.dialogTableVisible = true;
|
|
this.dialogTableVisible = true;
|
|
|
|
+ this.check_wpid();
|
|
this.$nextTick(function () {
|
|
this.$nextTick(function () {
|
|
- this.ECZM.leida_tc("leiDaTu" , this.sortInOrder,this.fdcName1,this.sortInOrderTop,this.fdcName2);
|
|
|
|
- //this.drawPie("leiDaTu");
|
|
|
|
- //this.drawPie2("leiDaTu2");
|
|
|
|
- this.ECZM.bar_tc_2("leiDaTu2",this.sortInOrde2);
|
|
|
|
|
|
+ this.ECZM.bar_tc("leiDaTu8" , this.wp_n_1 , this.wp_n_2 , this.wp_n_1.wpId , this.wp_n_2.wpId);
|
|
|
|
+ this.ECZM.leida_tc("leiDatu6" , this.sortInOrder,this.fdcName1,this.sortInOrderTop,this.fdcName2);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ handleSelectionChange(val) {
|
|
|
|
+ this.selectrowdate = val;
|
|
|
|
+ },
|
|
/**
|
|
/**
|
|
* 数据转换
|
|
* 数据转换
|
|
*/
|
|
*/
|
|
- handleSelectionChange(val) {
|
|
|
|
|
|
+ check_wpid() {
|
|
|
|
+ this.wp_n_1 = {};
|
|
|
|
+ this.wp_n_2 = {};
|
|
this.sortInOrder = [];
|
|
this.sortInOrder = [];
|
|
this.sortInOrderTop = [];
|
|
this.sortInOrderTop = [];
|
|
this.getTableData = [];
|
|
this.getTableData = [];
|
|
this.sortInOrde2 = [];
|
|
this.sortInOrde2 = [];
|
|
- this.multipleSelection = val;
|
|
|
|
- if (this.multipleSelection.length == 2) {
|
|
|
|
- this.fdcName1 = this.multipleSelection[0].wpName;
|
|
|
|
- this.fdcName2 = this.multipleSelection[1].wpName;
|
|
|
|
|
|
+ this.fdcName1 = "";
|
|
|
|
+ this.fdcName2 = "";
|
|
|
|
+
|
|
|
|
+ this.wp_n_1 = this.selectrowdate[0];
|
|
|
|
+ this.wp_n_2 = this.selectrowdate[1];
|
|
|
|
+ this.fdcName1 = this.selectrowdate[0].wpName;
|
|
|
|
+ this.fdcName2 = this.selectrowdate[1].wpName;
|
|
this.sortInOrder.push(
|
|
this.sortInOrder.push(
|
|
- this.multipleSelection[0].fnlyl,
|
|
|
|
- this.multipleSelection[0].xqjsl,
|
|
|
|
- this.multipleSelection[0].ztzhjsl,
|
|
|
|
- this.multipleSelection[0].fwjsl,
|
|
|
|
- this.multipleSelection[0].slssl,
|
|
|
|
- this.multipleSelection[0].xnssl,
|
|
|
|
- this.multipleSelection[0].qfl,
|
|
|
|
- this.multipleSelection[0].jxssl,
|
|
|
|
- this.multipleSelection[0].gzssl
|
|
|
|
|
|
+ this.selectrowdate[0].fnlyl,
|
|
|
|
+ this.selectrowdate[0].xqjsl,
|
|
|
|
+ this.selectrowdate[0].ztzhjsl,
|
|
|
|
+ this.selectrowdate[0].fwjsl,
|
|
|
|
+ this.selectrowdate[0].slssl,
|
|
|
|
+ this.selectrowdate[0].xnssl,
|
|
|
|
+ this.selectrowdate[0].qfl,
|
|
|
|
+ this.selectrowdate[0].jxssl,
|
|
|
|
+ this.selectrowdate[0].gzssl
|
|
);
|
|
);
|
|
this.sortInOrderTop.push(
|
|
this.sortInOrderTop.push(
|
|
- this.multipleSelection[1].fnlyl,
|
|
|
|
- this.multipleSelection[1].xqjsl,
|
|
|
|
- this.multipleSelection[1].ztzhjsl,
|
|
|
|
- this.multipleSelection[1].fwjsl,
|
|
|
|
- this.multipleSelection[1].slssl,
|
|
|
|
- this.multipleSelection[1].xnssl,
|
|
|
|
- this.multipleSelection[1].qfl,
|
|
|
|
- this.multipleSelection[1].jxssl,
|
|
|
|
- this.multipleSelection[1].gzssl
|
|
|
|
|
|
+ this.selectrowdate[1].fnlyl,
|
|
|
|
+ this.selectrowdate[1].xqjsl,
|
|
|
|
+ this.selectrowdate[1].ztzhjsl,
|
|
|
|
+ this.selectrowdate[1].fwjsl,
|
|
|
|
+ this.selectrowdate[1].slssl,
|
|
|
|
+ this.selectrowdate[1].xnssl,
|
|
|
|
+ this.selectrowdate[1].qfl,
|
|
|
|
+ this.selectrowdate[1].jxssl,
|
|
|
|
+ this.selectrowdate[1].gzssl
|
|
);
|
|
);
|
|
- for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
|
|
- this.sortInOrde2.push({
|
|
|
|
- product: this.multipleSelection[i].wpName,
|
|
|
|
- "限电损失电量单位:万KWh": this.multipleSelection[i].xdss,
|
|
|
|
- "故障损失电量单位:万KWh": this.multipleSelection[i].gzss,
|
|
|
|
- "检修损失电量单位:万KWh": this.multipleSelection[i].jxssl,
|
|
|
|
- "性能损失电量单位:万KWh": this.multipleSelection[i].xnssl,
|
|
|
|
- "受累损失电量单位:万KWh": this.multipleSelection[i].slss,
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ // for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
|
|
+ // this.sortInOrde2.push({
|
|
|
|
+ // product: this.multipleSelection[i].wpName,
|
|
|
|
+ // "限电损失电量单位:万KWh": this.multipleSelection[i].xdss,
|
|
|
|
+ // "故障损失电量单位:万KWh": this.multipleSelection[i].gzss,
|
|
|
|
+ // "检修损失电量单位:万KWh": this.multipleSelection[i].jxssl,
|
|
|
|
+ // "性能损失电量单位:万KWh": this.multipleSelection[i].xnssl,
|
|
|
|
+ // "受累损失电量单位:万KWh": this.multipleSelection[i].slss,
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "发电量",
|
|
index: "发电量",
|
|
- data1: this.multipleSelection[0].fdl,
|
|
|
|
- data2: this.multipleSelection[1].fdl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].fdl,
|
|
|
|
+ data2: this.selectrowdate[1].fdl,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "故障损失电量",
|
|
index: "故障损失电量",
|
|
- data1: this.multipleSelection[0].gzss,
|
|
|
|
- data2: this.multipleSelection[1].gzss,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].gzss,
|
|
|
|
+ data2: this.selectrowdate[1].gzss,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "检修损失电量",
|
|
index: "检修损失电量",
|
|
- data1: this.multipleSelection[0].jxssl,
|
|
|
|
- data2: this.multipleSelection[1].jxssl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].jxssl,
|
|
|
|
+ data2: this.selectrowdate[1].jxssl,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "性能未达标损失电量",
|
|
index: "性能未达标损失电量",
|
|
- data1: this.multipleSelection[0].xnsslfraction,
|
|
|
|
- data2: this.multipleSelection[1].xnsslfraction,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].xnsslfraction,
|
|
|
|
+ data2: this.selectrowdate[1].xnsslfraction,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "受累损失电量",
|
|
index: "受累损失电量",
|
|
- data1: this.multipleSelection[0].slss,
|
|
|
|
- data2: this.multipleSelection[1].slss,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].slss,
|
|
|
|
+ data2: this.selectrowdate[1].slss,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "风能利用率",
|
|
index: "风能利用率",
|
|
- data1: this.multipleSelection[0].fnlyl,
|
|
|
|
- data2: this.multipleSelection[1].fnlyl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].fnlyl,
|
|
|
|
+ data2: this.selectrowdate[1].fnlyl,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "故障损失率",
|
|
index: "故障损失率",
|
|
- data1: this.multipleSelection[0].gzssl,
|
|
|
|
- data2: this.multipleSelection[1].gzssl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].gzssl,
|
|
|
|
+ data2: this.selectrowdate[1].gzssl,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "检修损失率",
|
|
index: "检修损失率",
|
|
- data1: this.multipleSelection[0].jxssl,
|
|
|
|
- data2: this.multipleSelection[1].jxssl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].jxssl,
|
|
|
|
+ data2: this.selectrowdate[1].jxssl,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "弃风率",
|
|
index: "弃风率",
|
|
- data1: this.multipleSelection[0].qfl,
|
|
|
|
- data2: this.multipleSelection[1].qfl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].qfl,
|
|
|
|
+ data2: this.selectrowdate[1].qfl,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "性能损失率",
|
|
index: "性能损失率",
|
|
- data1: this.multipleSelection[0].xnssl,
|
|
|
|
- data2: this.multipleSelection[1].xnssl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].xnssl,
|
|
|
|
+ data2: this.selectrowdate[1].xnssl,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "受累损失率",
|
|
index: "受累损失率",
|
|
- data1: this.multipleSelection[0].slssl,
|
|
|
|
- data2: this.multipleSelection[1].slssl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].slssl,
|
|
|
|
+ data2: this.selectrowdate[1].slssl,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "复位及时率",
|
|
index: "复位及时率",
|
|
- data1: this.multipleSelection[0].fwjsl,
|
|
|
|
- data2: this.multipleSelection[1].fwjsl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].fwjsl,
|
|
|
|
+ data2: this.selectrowdate[1].fwjsl,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "消缺及时率",
|
|
index: "消缺及时率",
|
|
- data1: this.multipleSelection[0].xqjsl,
|
|
|
|
- data2: this.multipleSelection[1].xqjsl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].xqjsl,
|
|
|
|
+ data2: this.selectrowdate[1].xqjsl,
|
|
});
|
|
});
|
|
this.getTableData.push({
|
|
this.getTableData.push({
|
|
index: "状态转换率",
|
|
index: "状态转换率",
|
|
- data1: this.multipleSelection[0].ztzhjsl,
|
|
|
|
- data2: this.multipleSelection[1].ztzhjsl,
|
|
|
|
|
|
+ data1: this.selectrowdate[0].ztzhjsl,
|
|
|
|
+ data2: this.selectrowdate[1].ztzhjsl,
|
|
});
|
|
});
|
|
- }
|
|
|
|
- },
|
|
|
|
- handleCurrentChange(val) {
|
|
|
|
},
|
|
},
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
this.pagesize = val;
|
|
this.pagesize = val;
|
|
@@ -350,144 +362,6 @@ export default {
|
|
this.$message.error('获取数据失败');
|
|
this.$message.error('获取数据失败');
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- drawPie() {
|
|
|
|
- var charts;
|
|
|
|
- if (charts != null && charts != "" && charts != undefined) {
|
|
|
|
- charts.dispose();
|
|
|
|
- }
|
|
|
|
- charts = this.$echarts.init(document.getElementById("leiDaTu"));
|
|
|
|
- let option = {
|
|
|
|
- title: {
|
|
|
|
- // text: '对标排名分析',
|
|
|
|
- left: "center",
|
|
|
|
- },
|
|
|
|
- tooltip: {},
|
|
|
|
- // legend: {
|
|
|
|
- // data: ['预算分配(Allocated Budget)', '实际开销(Actual Spending)'],
|
|
|
|
- // left: 'right'
|
|
|
|
- // },
|
|
|
|
- radar: {
|
|
|
|
- // shape: 'circle',
|
|
|
|
- name: {
|
|
|
|
- textStyle: {
|
|
|
|
- color: "#fff",
|
|
|
|
- backgroundColor: "#999",
|
|
|
|
- borderRadius: 3,
|
|
|
|
- padding: [3, 5],
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- indicator: [
|
|
|
|
- { name: "风能利用率", max: 150 },
|
|
|
|
- { name: "消缺及时率", max: 150 },
|
|
|
|
- { name: "状态转换率", max: 150 },
|
|
|
|
- { name: "复位及时率", max: 150 },
|
|
|
|
- { name: "受累损失率", max: 150 },
|
|
|
|
- { name: "性能损失率", max: 150 },
|
|
|
|
- { name: "弃风率", max: 150 },
|
|
|
|
- { name: "检修损失率", max: 150 },
|
|
|
|
- { name: "故障损失率", max: 150 },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- series: [
|
|
|
|
- {
|
|
|
|
- name: "预算 vs 开销(Budget vs spending)",
|
|
|
|
- type: "radar",
|
|
|
|
- // areaStyle: {normal: {}},
|
|
|
|
- data: [
|
|
|
|
- {
|
|
|
|
- value: this.sortInOrder,
|
|
|
|
- name: this.fdcName1,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: this.sortInOrderTop,
|
|
|
|
- name: this.fdcName2,
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- };
|
|
|
|
- charts.clear();
|
|
|
|
- charts.setOption(option);
|
|
|
|
- },
|
|
|
|
- drawPie2() {
|
|
|
|
- var charts2;
|
|
|
|
- if (charts2 != null && charts2 != "" && charts2 != undefined) {
|
|
|
|
- charts2.dispose();
|
|
|
|
- }
|
|
|
|
- charts2 = this.$echarts.init(document.getElementById("leiDaTu2"));
|
|
|
|
- let option2 = {
|
|
|
|
- legend: {
|
|
|
|
- orient: "vertical",
|
|
|
|
- left: "right",
|
|
|
|
- },
|
|
|
|
- tooltip: {},
|
|
|
|
- dataset: {
|
|
|
|
- dimensions: [
|
|
|
|
- "product",
|
|
|
|
- "限电损失电量单位:万KWh",
|
|
|
|
- "故障损失电量单位:万KWh",
|
|
|
|
- "检修损失电量单位:万KWh",
|
|
|
|
- "性能损失电量单位:万KWh",
|
|
|
|
- "受累损失电量单位:万KWh",
|
|
|
|
- ],
|
|
|
|
- source: this.sortInOrde2,
|
|
|
|
- },
|
|
|
|
- xAxis: { type: "category" },
|
|
|
|
- yAxis: {},
|
|
|
|
- // Declare several bar series, each will be mapped
|
|
|
|
- // to a column of dataset.source by default.
|
|
|
|
- series: [
|
|
|
|
- {
|
|
|
|
- // barGap:'100%',/*多个并排柱子设置柱子之间的间距*/
|
|
|
|
- type: "bar",
|
|
|
|
- barWidth: 30,
|
|
|
|
- itemStyle: {
|
|
|
|
- normal: {
|
|
|
|
- color: "#D201D8",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- type: "bar",
|
|
|
|
- barWidth: 30,
|
|
|
|
- itemStyle: {
|
|
|
|
- normal: {
|
|
|
|
- color: "#FD0100",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- type: "bar",
|
|
|
|
- barWidth: 30,
|
|
|
|
- itemStyle: {
|
|
|
|
- normal: {
|
|
|
|
- color: "#FF7B16",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- type: "bar",
|
|
|
|
- barWidth: 30,
|
|
|
|
- itemStyle: {
|
|
|
|
- normal: {
|
|
|
|
- color: "#8085E9",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- type: "bar",
|
|
|
|
- barWidth: 30,
|
|
|
|
- itemStyle: {
|
|
|
|
- normal: {
|
|
|
|
- color: "#A6A6A6",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- };
|
|
|
|
- charts2.clear();
|
|
|
|
- charts2.setOption(option2);
|
|
|
|
- },
|
|
|
|
getPackageData(gridData, value2) {
|
|
getPackageData(gridData, value2) {
|
|
for (let i = 0; i < gridData.length; i++) {
|
|
for (let i = 0; i < gridData.length; i++) {
|
|
this.getChartDataValue.push({
|
|
this.getChartDataValue.push({
|