|
@@ -79,12 +79,6 @@ export default {
|
|
|
this.singleMachinePower();
|
|
|
},
|
|
|
singleMachinePower() {
|
|
|
- this.gridDataChart = [];
|
|
|
- this.gridDataChartX = [];
|
|
|
- this.gridDataChartYsjnh = [];
|
|
|
- this.gridDataChartYzynh = [];
|
|
|
- this.gridDataChartYbzgl = [];
|
|
|
-
|
|
|
var singleMachinePowerData = new URLSearchParams();
|
|
|
var singleMachinePowerDataChart = new URLSearchParams();
|
|
|
if (this.information == 'first') {
|
|
@@ -98,20 +92,28 @@ export default {
|
|
|
singleMachinePowerData.append('isAsc', this.isAsc);
|
|
|
singleMachinePowerData.append('wtId', this.value2);
|
|
|
this.API.post("/powersaturation/powersaturationamonutlist", singleMachinePowerData).then((res) => {
|
|
|
+ this.gridData = [];
|
|
|
this.gridData = res.data.list;
|
|
|
this.total = res.data.total;
|
|
|
})
|
|
|
singleMachinePowerDataChart.append('wtId', this.value2);
|
|
|
+
|
|
|
this.API.post("/powersaturation/powersaturationamonutchart", singleMachinePowerDataChart).then((res) => {
|
|
|
- this.gridDataChart = res.data;
|
|
|
- for (let i = 0; i < this.gridDataChart.length; i++) {
|
|
|
- this.gridDataChartX.push(this.gridDataChart[i].value1);
|
|
|
- this.gridDataChartYsjnh.push(this.gridDataChart[i].value2);
|
|
|
- this.gridDataChartYzynh.push(this.gridDataChart[i].value3);
|
|
|
- this.gridDataChartYbzgl.push(this.gridDataChart[i].value4);
|
|
|
+
|
|
|
+ let gridDataChart = [];
|
|
|
+ let gridDataChartX = [];
|
|
|
+ let gridDataChartYsjnh = [];
|
|
|
+ let gridDataChartYzynh = [];
|
|
|
+ let gridDataChartYbzgl = [];
|
|
|
+ gridDataChart = res.data;
|
|
|
+ for (let i = 0; i < gridDataChart.length; i++) {
|
|
|
+ gridDataChartX.push(gridDataChart[i].value1);
|
|
|
+ gridDataChartYsjnh.push(gridDataChart[i].value2);
|
|
|
+ gridDataChartYzynh.push(gridDataChart[i].value3);
|
|
|
+ gridDataChartYbzgl.push(gridDataChart[i].value4);
|
|
|
}
|
|
|
this.$nextTick(function () {
|
|
|
- this.drawPie('leiDaTu')
|
|
|
+ this.drawPie('leiDaTu',gridDataChartX,gridDataChartYsjnh,gridDataChartYzynh,gridDataChartYbzgl)
|
|
|
})
|
|
|
})
|
|
|
} else if (this.information == 'second') {
|
|
@@ -150,26 +152,34 @@ export default {
|
|
|
console.log(this.timemonth)
|
|
|
singleMachinePowerData.append('month', this.timemonth);
|
|
|
this.API.post("/powersaturation/powersaturationmonthlist", singleMachinePowerData).then((res) => {
|
|
|
+ this.gridData = [];
|
|
|
this.gridData = res.data.list;
|
|
|
this.total = res.data.total;
|
|
|
})
|
|
|
singleMachinePowerDataChart.append('wtId', this.value2);
|
|
|
singleMachinePowerDataChart.append('year', this.timeyear);
|
|
|
singleMachinePowerDataChart.append('month', this.timemonth);
|
|
|
+
|
|
|
this.API.post("/powersaturation/powersaturationmonthchart", singleMachinePowerDataChart).then((res) => {
|
|
|
- this.gridDataChart = res.data;
|
|
|
- for (let i = 0; i < this.gridDataChart.length; i++) {
|
|
|
- this.gridDataChartX.push(this.gridDataChart[i].value1);
|
|
|
- this.gridDataChartYsjnh.push(this.gridDataChart[i].value2);
|
|
|
- this.gridDataChartYzynh.push(this.gridDataChart[i].value3);
|
|
|
- this.gridDataChartYbzgl.push(this.gridDataChart[i].value4);
|
|
|
+ let gridDataChart = [];
|
|
|
+ let gridDataChartX = [];
|
|
|
+ let gridDataChartYsjnh = [];
|
|
|
+ let gridDataChartYzynh = [];
|
|
|
+ let gridDataChartYbzgl = [];
|
|
|
+ gridDataChart = res.data;
|
|
|
+ for (let i = 0; i < gridDataChart.length; i++) {
|
|
|
+ gridDataChartX.push(gridDataChart[i].value1);
|
|
|
+ gridDataChartYsjnh.push(gridDataChart[i].value2);
|
|
|
+ gridDataChartYzynh.push(gridDataChart[i].value3);
|
|
|
+ gridDataChartYbzgl.push(gridDataChart[i].value4);
|
|
|
}
|
|
|
console.log(this.gridDataChart)
|
|
|
this.$nextTick(function () {
|
|
|
- this.drawPie('leiDaTu')
|
|
|
+ this.drawPie('leiDaTu',gridDataChartX,gridDataChartYsjnh,gridDataChartYzynh,gridDataChartYbzgl)
|
|
|
})
|
|
|
})
|
|
|
} else if (this.information == 'cord') {
|
|
|
+
|
|
|
this.title = '单机日功率信息列表';
|
|
|
this.switchtableall = false;
|
|
|
this.switchtableday = false;
|
|
@@ -184,50 +194,57 @@ export default {
|
|
|
singleMachinePowerData.append('wtId', this.value2);
|
|
|
singleMachinePowerData.append('recorddate', this.time);
|
|
|
this.API.post("/powersaturation/powersaturationlist", singleMachinePowerData).then((res) => {
|
|
|
+ this.gridData = [];
|
|
|
this.gridData = res.data.list;
|
|
|
this.total = res.data.total;
|
|
|
})
|
|
|
singleMachinePowerDataChart.append('wtId', this.value2);
|
|
|
singleMachinePowerDataChart.append('recorddate', this.time);
|
|
|
+
|
|
|
this.API.post("/powersaturation/powersaturationchart", singleMachinePowerDataChart).then((res) => {
|
|
|
- this.gridDataChart = res.data;
|
|
|
- for (let i = 0; i < this.gridDataChart.length; i++) {
|
|
|
- this.gridDataChartX.push(this.gridDataChart[i].value1);
|
|
|
- this.gridDataChartYsjnh.push(this.gridDataChart[i].value2);
|
|
|
- this.gridDataChartYzynh.push(this.gridDataChart[i].value3);
|
|
|
- this.gridDataChartYbzgl.push(this.gridDataChart[i].value4);
|
|
|
+ let gridDataChart = [];
|
|
|
+ let gridDataChartX = [];
|
|
|
+ let gridDataChartYsjnh = [];
|
|
|
+ let gridDataChartYzynh = [];
|
|
|
+ let gridDataChartYbzgl = [];
|
|
|
+ gridDataChart = res.data;
|
|
|
+ for (let i = 0; i < gridDataChart.length; i++) {
|
|
|
+ gridDataChartX.push(gridDataChart[i].value1);
|
|
|
+ gridDataChartYsjnh.push(gridDataChart[i].value2);
|
|
|
+ gridDataChartYzynh.push(gridDataChart[i].value3);
|
|
|
+ gridDataChartYbzgl.push(gridDataChart[i].value4);
|
|
|
}
|
|
|
this.$nextTick(function () {
|
|
|
- this.drawPie('leiDaTu')
|
|
|
+ this.drawPie('leiDaTu',gridDataChartX,gridDataChartYsjnh,gridDataChartYzynh,gridDataChartYbzgl)
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
toExcel() {
|
|
|
- excelHelper.exportExcel("singlemachinepower", "负荷率排行榜", ".xls", true);
|
|
|
+ this.BASE.excelHelp("singlemachinepower", "单机饱和度", ".xls", true);
|
|
|
},
|
|
|
- drawPie() {
|
|
|
- this.ECLZX.getSingleMachineSaturationChart("leiDaTu",this.gridDataChartX,
|
|
|
- [
|
|
|
- {
|
|
|
- name: '实际拟合功率',
|
|
|
- type: 'line',
|
|
|
- stack: '总量',
|
|
|
- data: this.gridDataChartYsjnh
|
|
|
- },
|
|
|
- {
|
|
|
- name: '最优拟合功率',
|
|
|
- type: 'line',
|
|
|
- stack: '总量',
|
|
|
- data: this.gridDataChartYzynh
|
|
|
- },
|
|
|
- {
|
|
|
- name: '保证功率',
|
|
|
- type: 'line',
|
|
|
- stack: '总量',
|
|
|
- data: this.gridDataChartYbzgl
|
|
|
- },
|
|
|
- ],['实际拟合功率', '最优拟合功率', '保证功率']);
|
|
|
+ drawPie(a,s,d,f,g) {
|
|
|
+ this.ECLZX.getSingleMachineSaturationChart("leiDaTu", s,
|
|
|
+ [
|
|
|
+ {
|
|
|
+ name: '实际拟合功率',
|
|
|
+ type: 'line',
|
|
|
+ stack: '总量',
|
|
|
+ data: d
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '最优拟合功率',
|
|
|
+ type: 'line',
|
|
|
+ stack: '总量',
|
|
|
+ data: f
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '保证功率',
|
|
|
+ type: 'line',
|
|
|
+ stack: '总量',
|
|
|
+ data: g
|
|
|
+ },
|
|
|
+ ], ['实际拟合功率', '最优拟合功率', '保证功率']);
|
|
|
|
|
|
},
|
|
|
}
|