|
@@ -536,7 +536,8 @@
|
|
windNum2: 'dd',
|
|
windNum2: 'dd',
|
|
tabs: [],
|
|
tabs: [],
|
|
analyisDialog: [],
|
|
analyisDialog: [],
|
|
- detailShow: 1
|
|
|
|
|
|
+ detailShow: 1,
|
|
|
|
+ ajaxData:[]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -598,6 +599,7 @@
|
|
},
|
|
},
|
|
success(res) {
|
|
success(res) {
|
|
console.log(JSON.stringify(res))
|
|
console.log(JSON.stringify(res))
|
|
|
|
+ that.ajaxData = res.data;
|
|
var dataTab = [], //表格
|
|
var dataTab = [], //表格
|
|
analyis = [],
|
|
analyis = [],
|
|
gzssdl = [],
|
|
gzssdl = [],
|
|
@@ -607,7 +609,7 @@
|
|
slssdl = [];
|
|
slssdl = [];
|
|
res.data.forEach((item, index) => {
|
|
res.data.forEach((item, index) => {
|
|
that.tableDateArr.push(item.date);
|
|
that.tableDateArr.push(item.date);
|
|
-that.tableIdArr.push(item.id);
|
|
|
|
|
|
+ that.tableIdArr.push(item.id);
|
|
dataTab.push({ //表格
|
|
dataTab.push({ //表格
|
|
index: index + 1,
|
|
index: index + 1,
|
|
zhpm: item.zhpm,
|
|
zhpm: item.zhpm,
|
|
@@ -690,135 +692,121 @@ that.tableIdArr.push(item.id);
|
|
},
|
|
},
|
|
AjaxDbfx() {
|
|
AjaxDbfx() {
|
|
var that = this;
|
|
var that = this;
|
|
- that.API.requestData({
|
|
|
|
- method: "GET",
|
|
|
|
- subUrl: "benchmarking/cndb",
|
|
|
|
- data: {
|
|
|
|
- wpid: that.value1,
|
|
|
|
- beginDate: that.value4,
|
|
|
|
- endDate: that.value5,
|
|
|
|
- target: '',
|
|
|
|
- sort: ''
|
|
|
|
- },
|
|
|
|
- success(res) {
|
|
|
|
- var data = res.data;
|
|
|
|
- that.windNum = data[0].date.substr(0, 10);
|
|
|
|
- that.windNum2 = data[1].date.substr(0, 10);
|
|
|
|
- that.tabs = [{
|
|
|
|
- name: "发电量",
|
|
|
|
- windData1: data[0].fdl,
|
|
|
|
- windData2: data[1].fdl
|
|
|
|
- }, {
|
|
|
|
- name: "故障损失电量",
|
|
|
|
- windData1: data[0].gzssdl,
|
|
|
|
- windData2: data[1].gzssdl
|
|
|
|
- }, {
|
|
|
|
- name: "检修损失电量",
|
|
|
|
- windData1: data[0].jxssdl,
|
|
|
|
- windData2: data[1].jxssdl
|
|
|
|
- }, {
|
|
|
|
- name: "性能未达标损失电量",
|
|
|
|
- windData1: data[0].xnssdl,
|
|
|
|
- windData2: data[1].xnssdl
|
|
|
|
- }, {
|
|
|
|
- name: "受累损失电量",
|
|
|
|
- windData1: data[0].slssdl,
|
|
|
|
- windData2: data[1].slssdl
|
|
|
|
- }, {
|
|
|
|
- name: "风能利用率",
|
|
|
|
- windData1: data[0].fnlyl,
|
|
|
|
- windData2: data[1].fnlyl
|
|
|
|
- }, {
|
|
|
|
- name: "故障损失率",
|
|
|
|
- windData1: data[0].gzssl,
|
|
|
|
- windData2: data[1].gzssl
|
|
|
|
- }, {
|
|
|
|
- name: "检修损失率",
|
|
|
|
- windData1: data[0].jxssl,
|
|
|
|
- windData2: data[1].jxssl
|
|
|
|
- }, {
|
|
|
|
- name: "弃风率",
|
|
|
|
- windData1: data[0].qfl,
|
|
|
|
- windData2: data[1].qfl
|
|
|
|
- }, {
|
|
|
|
- name: "性能损失率",
|
|
|
|
- windData1: data[0].xnssl,
|
|
|
|
- windData2: data[1].xnssl
|
|
|
|
- }, {
|
|
|
|
- name: "受累损失率",
|
|
|
|
- windData1: data[0].slssl,
|
|
|
|
- windData2: data[1].slssl
|
|
|
|
- }];
|
|
|
|
|
|
+ var data = that.ajaxData;
|
|
|
|
+ that.windNum = data[0].date.substr(0, 10);
|
|
|
|
+ that.windNum2 = data[1].date.substr(0, 10);
|
|
|
|
+ that.tabs = [{
|
|
|
|
+ name: "发电量",
|
|
|
|
+ windData1: data[0].fdl,
|
|
|
|
+ windData2: data[1].fdl
|
|
|
|
+ }, {
|
|
|
|
+ name: "故障损失电量",
|
|
|
|
+ windData1: data[0].gzssdl,
|
|
|
|
+ windData2: data[1].gzssdl
|
|
|
|
+ }, {
|
|
|
|
+ name: "检修损失电量",
|
|
|
|
+ windData1: data[0].jxssdl,
|
|
|
|
+ windData2: data[1].jxssdl
|
|
|
|
+ }, {
|
|
|
|
+ name: "性能未达标损失电量",
|
|
|
|
+ windData1: data[0].xnssdl,
|
|
|
|
+ windData2: data[1].xnssdl
|
|
|
|
+ }, {
|
|
|
|
+ name: "受累损失电量",
|
|
|
|
+ windData1: data[0].slssdl,
|
|
|
|
+ windData2: data[1].slssdl
|
|
|
|
+ }, {
|
|
|
|
+ name: "风能利用率",
|
|
|
|
+ windData1: data[0].fnlyl,
|
|
|
|
+ windData2: data[1].fnlyl
|
|
|
|
+ }, {
|
|
|
|
+ name: "故障损失率",
|
|
|
|
+ windData1: data[0].gzssl,
|
|
|
|
+ windData2: data[1].gzssl
|
|
|
|
+ }, {
|
|
|
|
+ name: "检修损失率",
|
|
|
|
+ windData1: data[0].jxssl,
|
|
|
|
+ windData2: data[1].jxssl
|
|
|
|
+ }, {
|
|
|
|
+ name: "弃风率",
|
|
|
|
+ windData1: data[0].qfl,
|
|
|
|
+ windData2: data[1].qfl
|
|
|
|
+ }, {
|
|
|
|
+ name: "性能损失率",
|
|
|
|
+ windData1: data[0].xnssl,
|
|
|
|
+ windData2: data[1].xnssl
|
|
|
|
+ }, {
|
|
|
|
+ name: "受累损失率",
|
|
|
|
+ windData1: data[0].slssl,
|
|
|
|
+ windData2: data[1].slssl
|
|
|
|
+ }];
|
|
|
|
+
|
|
|
|
+ that.radarValue = [{
|
|
|
|
+ indicator: ["风能利用率", "故障损失率", "检修损失率", "弃风率", "性能损失率", "受累损失率"],
|
|
|
|
+ data: [{
|
|
|
|
+ value: [data[0].fnlylpm, data[0].gzsslpm, data[0].jxsslpm, data[0].qflpm,
|
|
|
|
+ data[0].xnsslpm, data[0].slsslpm
|
|
|
|
+ ]
|
|
|
|
+ }, {
|
|
|
|
+ value: [data[1].fnlylpm, data[1].gzsslpm, data[1].jxsslpm, data[1].qflpm,
|
|
|
|
+ data[1].xnsslpm, data[1].slsslpm
|
|
|
|
+ ]
|
|
|
|
+ }]
|
|
|
|
+ }];
|
|
|
|
+
|
|
|
|
+ var analyis = [],
|
|
|
|
+ gzssdl = [],
|
|
|
|
+ jxssdl = [],
|
|
|
|
+ xnssdl = [],
|
|
|
|
+ xdssdl = [],
|
|
|
|
+ slssdl = [];
|
|
|
|
+ data.forEach((item, index) => {
|
|
|
|
+ gzssdl.push({
|
|
|
|
+ text: item.date.substr(0, 10),
|
|
|
|
+ value: item.gzssdl
|
|
|
|
+ });
|
|
|
|
+ jxssdl.push({
|
|
|
|
+ text: item.date.substr(0, 10),
|
|
|
|
+ value: item.jxssdl
|
|
|
|
+ });
|
|
|
|
+ xnssdl.push({
|
|
|
|
+ text: item.date.substr(0, 10),
|
|
|
|
+ value: item.xnssdl
|
|
|
|
+ });
|
|
|
|
+ xdssdl.push({
|
|
|
|
+ text: item.date.substr(0, 10),
|
|
|
|
+ value: item.xdssdl
|
|
|
|
+ });
|
|
|
|
+ slssdl.push({
|
|
|
|
+ text: item.date.substr(0, 10),
|
|
|
|
+ value: item.slssdl
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ analyis.push({
|
|
|
|
+ title: "故障损失电量",
|
|
|
|
+ yAxisIndex: 0,
|
|
|
|
+ value: gzssdl
|
|
|
|
+ }, {
|
|
|
|
+ title: "检修损失电量",
|
|
|
|
+ yAxisIndex: 0,
|
|
|
|
+ value: jxssdl
|
|
|
|
+ }, {
|
|
|
|
+ title: "性能损失电量",
|
|
|
|
+ yAxisIndex: 0,
|
|
|
|
+ value: xnssdl
|
|
|
|
+ }, {
|
|
|
|
+ title: "限电损失电量",
|
|
|
|
+ yAxisIndex: 0,
|
|
|
|
+ value: xdssdl
|
|
|
|
+ }, {
|
|
|
|
+ title: "受累损失电量",
|
|
|
|
+ yAxisIndex: 0,
|
|
|
|
+ value: slssdl
|
|
|
|
+ })
|
|
|
|
+ that.analyisDialog = analyis;
|
|
|
|
+
|
|
|
|
|
|
- that.radarValue = [{
|
|
|
|
- indicator: ["风能利用率", "故障损失率", "检修损失率", "弃风率", "性能损失率", "受累损失率"],
|
|
|
|
- data: [{
|
|
|
|
- value: [data[0].fnlylpm, data[0].gzsslpm, data[0].jxsslpm, data[0]
|
|
|
|
- .qflpm,
|
|
|
|
- data[0].xnsslpm, data[0].slsslpm
|
|
|
|
- ]
|
|
|
|
- }, {
|
|
|
|
- value: [data[1].fnlylpm, data[1].gzsslpm, data[1].jxsslpm, data[1]
|
|
|
|
- .qflpm,
|
|
|
|
- data[1].xnsslpm, data[1].slsslpm
|
|
|
|
- ]
|
|
|
|
- }]
|
|
|
|
- }];
|
|
|
|
|
|
|
|
- var analyis = [],
|
|
|
|
- gzssdl = [],
|
|
|
|
- jxssdl = [],
|
|
|
|
- xnssdl = [],
|
|
|
|
- xdssdl = [],
|
|
|
|
- slssdl = [];
|
|
|
|
- res.data.forEach((item, index) => {
|
|
|
|
- if (index < 7) {
|
|
|
|
- gzssdl.push({
|
|
|
|
- text: item.date.substr(0, 10),
|
|
|
|
- value: item.gzssdl
|
|
|
|
- });
|
|
|
|
- jxssdl.push({
|
|
|
|
- text: item.date.substr(0, 10),
|
|
|
|
- value: item.jxssdl
|
|
|
|
- });
|
|
|
|
- xnssdl.push({
|
|
|
|
- text: item.date.substr(0, 10),
|
|
|
|
- value: item.xnssdl
|
|
|
|
- });
|
|
|
|
- xdssdl.push({
|
|
|
|
- text: item.date.substr(0, 10),
|
|
|
|
- value: item.xdssdl
|
|
|
|
- });
|
|
|
|
- slssdl.push({
|
|
|
|
- text: item.date.substr(0, 10),
|
|
|
|
- value: item.slssdl
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- analyis.push({
|
|
|
|
- title: "故障损失电量",
|
|
|
|
- yAxisIndex: 0,
|
|
|
|
- value: gzssdl
|
|
|
|
- }, {
|
|
|
|
- title: "检修损失电量",
|
|
|
|
- yAxisIndex: 0,
|
|
|
|
- value: jxssdl
|
|
|
|
- }, {
|
|
|
|
- title: "性能损失电量",
|
|
|
|
- yAxisIndex: 0,
|
|
|
|
- value: xnssdl
|
|
|
|
- }, {
|
|
|
|
- title: "限电损失电量",
|
|
|
|
- yAxisIndex: 0,
|
|
|
|
- value: xdssdl
|
|
|
|
- }, {
|
|
|
|
- title: "受累损失电量",
|
|
|
|
- yAxisIndex: 0,
|
|
|
|
- value: slssdl
|
|
|
|
- })
|
|
|
|
- that.analyisDialog = analyis;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
},
|
|
},
|
|
tooltip(param, callback) {
|
|
tooltip(param, callback) {
|
|
var color = ["#05bb4c", "#4b55ae", "#fa8c16", "#f8de5b"];
|
|
var color = ["#05bb4c", "#4b55ae", "#fa8c16", "#f8de5b"];
|
|
@@ -850,6 +838,7 @@ that.tableIdArr.push(item.id);
|
|
height: calc(100vh - 24.5vh);
|
|
height: calc(100vh - 24.5vh);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.project-table {
|
|
.project-table {
|
|
overflow: auto;
|
|
overflow: auto;
|
|
|
|
|