|
@@ -348,6 +348,7 @@ import MultipleBarChart from "../../components/chart/bar/multiple-bar-chart.vue"
|
|
|
import SvgIcon from "../../components/coms/icon/svg-icon.vue";
|
|
|
import Panel from "../../components/coms/panel/panel.vue";
|
|
|
import groupTable from "../../components/coms/table/group-table.vue";
|
|
|
+import api from "@api/economic/index.js";
|
|
|
export default {
|
|
|
components: { groupTable, Panel, MultipleBarChart, SvgIcon },
|
|
|
data() {
|
|
@@ -640,16 +641,12 @@ export default {
|
|
|
},
|
|
|
// 表格数据
|
|
|
requestDataTable(timetype) {
|
|
|
- let that = this;
|
|
|
- this.API.requestData({
|
|
|
- method: "GET",
|
|
|
- baseURL: "http://10.83.66.220:8020/",
|
|
|
- subUrl: "benchmarking/dbmainbottom",
|
|
|
- data: {
|
|
|
+ api
|
|
|
+ .benchmarkingDbmainbottom({
|
|
|
timetype: timetype,
|
|
|
foreigntype: "风电",
|
|
|
- },
|
|
|
- success(res) {
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
res.data.forEach((item) => {
|
|
|
if (item.foreignkeyid === "SBQ_FDC") item.name = "石板泉";
|
|
@@ -878,24 +875,273 @@ export default {
|
|
|
that.setRank();
|
|
|
that.echartData(that.eltableData.column[1].child.slice(3));
|
|
|
}
|
|
|
- },
|
|
|
- });
|
|
|
+ });
|
|
|
+
|
|
|
+ // let that = this;
|
|
|
+ // this.API.requestData({
|
|
|
+ // method: "GET",
|
|
|
+ // baseURL: "http://10.83.66.220:8020/",
|
|
|
+ // subUrl: "benchmarking/dbmainbottom",
|
|
|
+ // data: {
|
|
|
+ // timetype: timetype,
|
|
|
+ // foreigntype: "风电",
|
|
|
+ // },
|
|
|
+ // success(res) {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // res.data.forEach((item) => {
|
|
|
+ // if (item.foreignkeyid === "SBQ_FDC") item.name = "石板泉";
|
|
|
+ // if (item.foreignkeyid === "MHS_FDC") item.name = "麻黄山";
|
|
|
+ // if (item.foreignkeyid === "NSS_FDC") item.name = "牛首山";
|
|
|
+ // if (item.foreignkeyid === "XS_FDC") item.name = "香山";
|
|
|
+ // if (item.foreignkeyid === "QS_FDC") item.name = "青山";
|
|
|
+ // item.mark = that.filter(item.mark);
|
|
|
+ // item.theoreticalpower = that.filter(item.theoreticalpower);
|
|
|
+ // item.actualpower = that.filter(item.actualpower);
|
|
|
+ // item.daynhgzssdl = that.filter(item.daynhgzssdl);
|
|
|
+ // item.daynhwhssdl = that.filter(item.daynhwhssdl);
|
|
|
+ // item.daynhxdssdl = that.filter(item.daynhxdssdl);
|
|
|
+ // item.daynhcfdl = that.filter(item.daynhcfdl);
|
|
|
+ // item.daynhqfdl = that.filter(item.daynhqfdl);
|
|
|
+ // item.windenergy = that.filter(item.windenergy);
|
|
|
+ // item.powerlossrate = that.filter(item.powerlossrate);
|
|
|
+ // item.performancelossrate = that.filter(item.performancelossrate);
|
|
|
+ // item.comprehensiverate = that.filter(item.comprehensiverate);
|
|
|
+ // item.utilizationhours = that.filter(item.utilizationhours);
|
|
|
+ // item.windpoweraccuracy = that.filter(item.windpoweraccuracy);
|
|
|
+ // item.agccurvefollowing = that.filter(item.agccurvefollowing);
|
|
|
+ // item.mtbf = that.filter(item.mtbf);
|
|
|
+ // item.mttf = that.filter(item.mttf);
|
|
|
+ // item.availability = that.filter(item.availability);
|
|
|
+ // item.availabilityfactor = that.filter(item.availabilityfactor);
|
|
|
+ // item.failurelossrate = that.filter(item.failurelossrate);
|
|
|
+ // item.mainlossrate = that.filter(item.mainlossrate);
|
|
|
+ // item.mttr = that.filter(item.mttr);
|
|
|
+ // item.hiddentimely = that.filter(item.hiddentimely);
|
|
|
+ // item.resettimelyrate = that.filter(item.resettimelyrate);
|
|
|
+ // item.statetransitionrate = that.filter(item.statetransitionrate);
|
|
|
+ // item.eliminationrate = that.filter(item.eliminationrate);
|
|
|
+ // });
|
|
|
+
|
|
|
+ // // 合计列
|
|
|
+ // let item = res.data;
|
|
|
+ // let obj = {
|
|
|
+ // name: "合计",
|
|
|
+ // mark: that.filter(
|
|
|
+ // (Number(item[0].mark) +
|
|
|
+ // Number(item[1].mark) +
|
|
|
+ // Number(item[2].mark) +
|
|
|
+ // Number(item[3].mark)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // capacity: that.filter(
|
|
|
+ // Number(item[0].capacity) +
|
|
|
+ // Number(item[1].capacity) +
|
|
|
+ // Number(item[2].capacity) +
|
|
|
+ // Number(item[3].capacity)
|
|
|
+ // ),
|
|
|
+ // units: that.filter(
|
|
|
+ // Number(item[0].units) +
|
|
|
+ // Number(item[1].units) +
|
|
|
+ // Number(item[2].units) +
|
|
|
+ // Number(item[3].units)
|
|
|
+ // ),
|
|
|
+ // theoreticalpower: that.filter(
|
|
|
+ // Number(item[0].theoreticalpower) +
|
|
|
+ // Number(item[1].theoreticalpower) +
|
|
|
+ // Number(item[2].theoreticalpower) +
|
|
|
+ // Number(item[3].theoreticalpower)
|
|
|
+ // ),
|
|
|
+ // actualpower: that.filter(
|
|
|
+ // Number(item[0].actualpower) +
|
|
|
+ // Number(item[1].actualpower) +
|
|
|
+ // Number(item[2].actualpower) +
|
|
|
+ // Number(item[3].actualpower)
|
|
|
+ // ),
|
|
|
+ // daynhgzssdl: that.filter(
|
|
|
+ // Number(item[0].daynhgzssdl) +
|
|
|
+ // Number(item[1].daynhgzssdl) +
|
|
|
+ // Number(item[2].daynhgzssdl) +
|
|
|
+ // Number(item[3].daynhgzssdl)
|
|
|
+ // ),
|
|
|
+ // daynhwhssdl: that.filter(
|
|
|
+ // Number(item[0].daynhwhssdl) +
|
|
|
+ // Number(item[1].daynhwhssdl) +
|
|
|
+ // Number(item[2].daynhwhssdl) +
|
|
|
+ // Number(item[3].daynhwhssdl)
|
|
|
+ // ),
|
|
|
+ // daynhxdssdl: that.filter(
|
|
|
+ // Number(item[0].daynhxdssdl) +
|
|
|
+ // Number(item[1].daynhxdssdl) +
|
|
|
+ // Number(item[2].daynhxdssdl) +
|
|
|
+ // Number(item[3].daynhxdssdl)
|
|
|
+ // ),
|
|
|
+ // daynhcfdl: that.filter(
|
|
|
+ // Number(item[0].daynhcfdl) +
|
|
|
+ // Number(item[1].daynhcfdl) +
|
|
|
+ // Number(item[2].daynhcfdl) +
|
|
|
+ // Number(item[3].daynhcfdl)
|
|
|
+ // ),
|
|
|
+ // daynhqfdl: that.filter(
|
|
|
+ // Number(item[0].daynhqfdl) +
|
|
|
+ // Number(item[1].daynhqfdl) +
|
|
|
+ // Number(item[2].daynhqfdl) +
|
|
|
+ // Number(item[3].daynhqfdl)
|
|
|
+ // ),
|
|
|
+ // windenergy: that.filter(
|
|
|
+ // (Number(item[0].windenergy) +
|
|
|
+ // Number(item[1].windenergy) +
|
|
|
+ // Number(item[2].windenergy) +
|
|
|
+ // Number(item[3].windenergy)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // powerlossrate: that.filter(
|
|
|
+ // (Number(item[0].powerlossrate) +
|
|
|
+ // Number(item[1].powerlossrate) +
|
|
|
+ // Number(item[2].powerlossrate) +
|
|
|
+ // Number(item[3].powerlossrate)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // performancelossrate: that.filter(
|
|
|
+ // (Number(item[0].performancelossrate) +
|
|
|
+ // Number(item[1].performancelossrate) +
|
|
|
+ // Number(item[2].performancelossrate) +
|
|
|
+ // Number(item[3].performancelossrate)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // comprehensiverate: that.filter(
|
|
|
+ // (Number(item[0].comprehensiverate) +
|
|
|
+ // Number(item[1].comprehensiverate) +
|
|
|
+ // Number(item[2].comprehensiverate) +
|
|
|
+ // Number(item[3].comprehensiverate)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // utilizationhours: that.filter(
|
|
|
+ // Number(item[0].utilizationhours) +
|
|
|
+ // Number(item[1].utilizationhours) +
|
|
|
+ // Number(item[2].utilizationhours) +
|
|
|
+ // Number(item[3].utilizationhours)
|
|
|
+ // ),
|
|
|
+ // windpoweraccuracy: that.filter(
|
|
|
+ // (Number(item[0].windpoweraccuracy) +
|
|
|
+ // Number(item[1].windpoweraccuracy) +
|
|
|
+ // Number(item[2].windpoweraccuracy) +
|
|
|
+ // Number(item[3].windpoweraccuracy)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // agccurvefollowing: that.filter(
|
|
|
+ // (Number(item[0].agccurvefollowing) +
|
|
|
+ // Number(item[1].agccurvefollowing) +
|
|
|
+ // Number(item[2].agccurvefollowing) +
|
|
|
+ // Number(item[3].agccurvefollowing)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // mtbf: that.filter(
|
|
|
+ // Number(item[0].mtbf) +
|
|
|
+ // Number(item[1].mtbf) +
|
|
|
+ // Number(item[2].mtbf) +
|
|
|
+ // Number(item[3].mtbf)
|
|
|
+ // ),
|
|
|
+ // mttf: that.filter(
|
|
|
+ // Number(item[0].mttf) +
|
|
|
+ // Number(item[1].mttf) +
|
|
|
+ // Number(item[2].mttf) +
|
|
|
+ // Number(item[3].mttf)
|
|
|
+ // ),
|
|
|
+ // availability: that.filter(
|
|
|
+ // (Number(item[0].availability) +
|
|
|
+ // Number(item[1].availability) +
|
|
|
+ // Number(item[2].availability) +
|
|
|
+ // Number(item[3].availability)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // availabilityfactor: that.filter(
|
|
|
+ // (Number(item[0].availabilityfactor) +
|
|
|
+ // Number(item[1].availabilityfactor) +
|
|
|
+ // Number(item[2].availabilityfactor) +
|
|
|
+ // Number(item[3].availabilityfactor)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // failurelossrate: that.filter(
|
|
|
+ // (Number(item[0].failurelossrate) +
|
|
|
+ // Number(item[1].failurelossrate) +
|
|
|
+ // Number(item[2].failurelossrate) +
|
|
|
+ // Number(item[3].failurelossrate)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // mainlossrate: that.filter(
|
|
|
+ // (Number(item[0].mainlossrate) +
|
|
|
+ // Number(item[1].mainlossrate) +
|
|
|
+ // Number(item[2].mainlossrate) +
|
|
|
+ // Number(item[3].mainlossrate)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // mttr: that.filter(
|
|
|
+ // Number(item[0].mttr) +
|
|
|
+ // Number(item[1].mttr) +
|
|
|
+ // Number(item[2].mttr) +
|
|
|
+ // Number(item[3].mttr)
|
|
|
+ // ),
|
|
|
+ // hiddentimely: that.filter(
|
|
|
+ // (Number(item[0].hiddentimely) +
|
|
|
+ // Number(item[1].hiddentimely) +
|
|
|
+ // Number(item[2].hiddentimely) +
|
|
|
+ // Number(item[3].hiddentimely)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // resettimelyrate: that.filter(
|
|
|
+ // (Number(item[0].resettimelyrate) +
|
|
|
+ // Number(item[1].resettimelyrate) +
|
|
|
+ // Number(item[2].resettimelyrate) +
|
|
|
+ // Number(item[3].resettimelyrate)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // statetransitionrate: that.filter(
|
|
|
+ // (Number(item[0].statetransitionrate) +
|
|
|
+ // Number(item[1].statetransitionrate) +
|
|
|
+ // Number(item[2].statetransitionrate) +
|
|
|
+ // Number(item[3].statetransitionrate)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // eliminationrate: that.filter(
|
|
|
+ // (Number(item[0].eliminationrate) +
|
|
|
+ // Number(item[1].eliminationrate) +
|
|
|
+ // Number(item[2].eliminationrate) +
|
|
|
+ // Number(item[3].eliminationrate)) /
|
|
|
+ // 4
|
|
|
+ // ),
|
|
|
+ // };
|
|
|
+ // item.push(obj);
|
|
|
+ // that.eltableData.data = res.data;
|
|
|
+ // that.setRank();
|
|
|
+ // that.echartData(that.eltableData.column[1].child.slice(3));
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // });
|
|
|
},
|
|
|
// 顶部数据
|
|
|
requestDataTop(timetype) {
|
|
|
- let that = this;
|
|
|
- this.API.requestData({
|
|
|
- method: "GET",
|
|
|
- baseURL: "http://10.83.66.220:8020/",
|
|
|
- subUrl: "benchmarking/dbmaintop",
|
|
|
- data: {
|
|
|
+ api
|
|
|
+ .benchmarkingLineList({
|
|
|
timetype: timetype,
|
|
|
foreigntype: "风电",
|
|
|
- },
|
|
|
- success(res) {
|
|
|
- if (res.code == 200) that.calculate(res.data);
|
|
|
- },
|
|
|
- });
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200) this.calculate(res.data);
|
|
|
+ });
|
|
|
+
|
|
|
+ // let that = this;
|
|
|
+ // this.API.requestData({
|
|
|
+ // method: "GET",
|
|
|
+ // baseURL: "http://10.83.66.220:8020/",
|
|
|
+ // subUrl: "benchmarking/dbmaintop",
|
|
|
+ // data: {
|
|
|
+ // timetype: timetype,
|
|
|
+ // foreigntype: "风电",
|
|
|
+ // },
|
|
|
+ // success(res) {
|
|
|
+ // if (res.code == 200) that.calculate(res.data);
|
|
|
+ // },
|
|
|
+ // });
|
|
|
},
|
|
|
// 左边的排序
|
|
|
setRank(column, name) {
|