|
@@ -540,6 +540,7 @@
|
|
|
windFielddata:[],
|
|
|
windFieldsituation: [],
|
|
|
lineChartdata:[],
|
|
|
+ linedata:[],
|
|
|
windStationCardContainerwidth:'',
|
|
|
};
|
|
|
},
|
|
@@ -941,282 +942,25 @@
|
|
|
this.socketTask_index_curve_columnar_windSpeed_power.onMessage(res => {
|
|
|
//console.log("收到服务器内容:" + res.data);
|
|
|
let json = JSON.parse(res.data);
|
|
|
+
|
|
|
console.log(json);
|
|
|
for(let x in json){
|
|
|
+ if(x==_this.FDC)
|
|
|
+ {
|
|
|
+ _this.linedata=json[x];
|
|
|
+ }
|
|
|
_this.lineChartdata.push(json[x]);
|
|
|
}
|
|
|
for(let i=0;i<_this.plusDrawerList.length;i++){
|
|
|
_this.$refs.windFarmcard[i].getUchartData(_this.lineChartdata[i]);
|
|
|
}
|
|
|
- console.log("---");
|
|
|
- let LineA = {
|
|
|
- categories: [],
|
|
|
- series: [{
|
|
|
- name: '功率',
|
|
|
- data: [],
|
|
|
- color: '#4BB94B',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 0,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '风速',
|
|
|
- data: [],
|
|
|
- color: '#E82E2F',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'm/s';
|
|
|
- },
|
|
|
- index: 1,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '理论功率',
|
|
|
- data: [],
|
|
|
- color: '#F5A83C',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 0,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '预测功率',
|
|
|
- data: [],
|
|
|
- color: '#4A80B1',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 1,
|
|
|
- legendShape: 'circle'
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
-
|
|
|
- let LineB = {
|
|
|
- categories: [],
|
|
|
- series: [{
|
|
|
- name: '功率',
|
|
|
- data: [],
|
|
|
- color: '#4BB94B',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 0,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '风速',
|
|
|
- data: [],
|
|
|
- color: '#E82E2F',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'm/s';
|
|
|
- },
|
|
|
- index: 1,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '理论功率',
|
|
|
- data: [],
|
|
|
- color: '#F5A83C',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 0,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '预测功率',
|
|
|
- data: [],
|
|
|
- color: '#4A80B1',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 1,
|
|
|
- legendShape: 'circle'
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
-
|
|
|
- let LineC = {
|
|
|
- categories: [],
|
|
|
- series: [{
|
|
|
- name: '功率',
|
|
|
- data: [],
|
|
|
- color: '#4BB94B',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 0,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '风速',
|
|
|
- data: [],
|
|
|
- color: '#E82E2F',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'm/s';
|
|
|
- },
|
|
|
- index: 1,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '理论功率',
|
|
|
- data: [],
|
|
|
- color: '#F5A83C',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 0,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '预测功率',
|
|
|
- data: [],
|
|
|
- color: '#4A80B1',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 1,
|
|
|
- legendShape: 'circle'
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
- let LineD = {
|
|
|
- categories: [],
|
|
|
- series: [{
|
|
|
- name: '功率',
|
|
|
- data: [],
|
|
|
- color: '#4BB94B',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 0,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '风速',
|
|
|
- data: [],
|
|
|
- color: '#E82E2F',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'm/s';
|
|
|
- },
|
|
|
- index: 1,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '理论功率',
|
|
|
- data: [],
|
|
|
- color: '#F5A83C',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 0,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '预测功率',
|
|
|
- data: [],
|
|
|
- color: '#4A80B1',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 1,
|
|
|
- legendShape: 'circle'
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
- let LineE = {
|
|
|
- categories: [],
|
|
|
- series: [{
|
|
|
- name: '功率',
|
|
|
- data: [],
|
|
|
- color: '#4BB94B',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 0,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '风速',
|
|
|
- data: [],
|
|
|
- color: '#E82E2F',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'm/s';
|
|
|
- },
|
|
|
- index: 1,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '理论功率',
|
|
|
- data: [],
|
|
|
- color: '#F5A83C',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 0,
|
|
|
- legendShape: 'circle'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '预测功率',
|
|
|
- data: [],
|
|
|
- color: '#4A80B1',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- textSize: this.seriesTextSize,
|
|
|
- format: val => {
|
|
|
- return val + 'kwh';
|
|
|
- },
|
|
|
- index: 1,
|
|
|
- legendShape: 'circle'
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
+
|
|
|
|
|
|
let Line = {
|
|
|
categories: [],
|
|
|
|
|
|
series: [{
|
|
|
- name: '功率',
|
|
|
+ name: '预测功率',
|
|
|
|
|
|
data: [],
|
|
|
|
|
@@ -1236,7 +980,7 @@
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- name: '风速',
|
|
|
+ name: '实际功率',
|
|
|
|
|
|
data: [],
|
|
|
|
|
@@ -1276,7 +1020,7 @@
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- name: '预测功率',
|
|
|
+ name: '风速',
|
|
|
|
|
|
data: [],
|
|
|
|
|
@@ -1301,212 +1045,27 @@
|
|
|
Line.series[0].data = [];
|
|
|
/* LineA.series[0].name=this.targetName; */
|
|
|
console.log(_this.FDC);
|
|
|
- for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
|
|
|
- _this.FDC]['gl'].length; i++) {
|
|
|
- let time = new Date(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
|
|
|
- 'gl'
|
|
|
- ][i].pointTime * 1000
|
|
|
- ).Format('hh');
|
|
|
+ for (var i = 0; i <_this.linedata.length; i++) {
|
|
|
+ let time = new Date(_this.linedata[i].time).Format('hh');
|
|
|
|
|
|
Line.categories.push(time);
|
|
|
//console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
|
|
|
Line.series[0].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
|
|
|
- 'gl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
+ _this.linedata[i].value1 );
|
|
|
Line.series[1].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
|
|
|
- 'fs'
|
|
|
- ][i].pointValueInDouble
|
|
|
+ _this.linedata[i].value2
|
|
|
);
|
|
|
Line.series[2].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
|
|
|
- 'llgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
+ _this.linedata[i].value3
|
|
|
);
|
|
|
Line.series[3].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
|
|
|
- 'ycgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
+ _this.linedata[i].value4
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- LineA.categories = [];
|
|
|
- LineA.series[0].data = [];
|
|
|
- /* LineA.series[0].name=this.targetName; */
|
|
|
- for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
|
|
|
- 'CL_FDC']['gl'].length; i++) {
|
|
|
- let time = new Date(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
|
|
|
- 'gl'
|
|
|
- ][i].pointTime * 1000
|
|
|
- ).Format('hh');
|
|
|
-
|
|
|
- LineA.categories.push(time);
|
|
|
- //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
|
|
|
- LineA.series[0].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
|
|
|
- 'gl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineA.series[1].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
|
|
|
- 'fs'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineA.series[2].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
|
|
|
- 'llgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineA.series[3].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
|
|
|
- 'ycgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- LineB.categories = [];
|
|
|
- LineB.series[0].data = [];
|
|
|
- /* LineA.series[0].name=this.targetName; */
|
|
|
- for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
|
|
|
- 'DX_FDC']['gl'].length; i++) {
|
|
|
- let time = new Date(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
|
|
|
- 'gl'
|
|
|
- ][i].pointTime * 1000
|
|
|
- ).Format('hh');
|
|
|
-
|
|
|
- LineB.categories.push(time);
|
|
|
- //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
|
|
|
- LineB.series[0].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
|
|
|
- 'gl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineB.series[1].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
|
|
|
- 'fs'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineB.series[2].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
|
|
|
- 'llgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineB.series[3].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
|
|
|
- 'ycgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- LineC.categories = [];
|
|
|
- LineC.series[0].data = [];
|
|
|
- /* LineA.series[0].name=this.targetName; */
|
|
|
- for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
|
|
|
- 'KB_FDC']['gl'].length; i++) {
|
|
|
- let time = new Date(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
|
|
|
- 'gl'
|
|
|
- ][i].pointTime * 1000
|
|
|
- ).Format('hh');
|
|
|
-
|
|
|
- LineC.categories.push(time);
|
|
|
- //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
|
|
|
- LineC.series[0].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
|
|
|
- 'gl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineC.series[1].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
|
|
|
- 'fs'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineC.series[2].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
|
|
|
- 'llgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineC.series[3].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
|
|
|
- 'ycgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- }
|
|
|
- /* LineD.categories = [];
|
|
|
- LineD.series[0].data = [];
|
|
|
- for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
|
|
|
- 'QS_FDC']['gl'].length; i++) {
|
|
|
- let time = new Date(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
|
|
|
- 'QS_FDC']['gl'][i].pointTime * 1000).Format(
|
|
|
- 'hh'
|
|
|
- );
|
|
|
-
|
|
|
- LineD.categories.push(time);
|
|
|
- //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
|
|
|
- LineD.series[0].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
|
|
|
- 'gl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineD.series[1].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
|
|
|
- 'fs'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineD.series[2].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
|
|
|
- 'llgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineD.series[3].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
|
|
|
- 'ycgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- }
|
|
|
- LineE.categories = [];
|
|
|
- LineE.series[0].data = [];
|
|
|
- for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
|
|
|
- 'XS_FDC']['gl'].length; i++) {
|
|
|
- let time = new Date(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
|
|
|
- 'XS_FDC']['gl'][i].pointTime * 1000).Format(
|
|
|
- 'hh'
|
|
|
- );
|
|
|
-
|
|
|
- LineE.categories.push(time);
|
|
|
- //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
|
|
|
- LineE.series[0].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
|
|
|
- 'gl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineE.series[1].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
|
|
|
- 'fs'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineE.series[2].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
|
|
|
- 'llgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- LineE.series[3].data.push(
|
|
|
- _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
|
|
|
- 'ycgl'
|
|
|
- ][i].pointValueInDouble
|
|
|
- );
|
|
|
- } */
|
|
|
-
|
|
|
+
|
|
|
_this.showLineA('canvasLineA', Line);
|
|
|
- _this.showWindStationCardLineA1('windStationCanvasLineA', LineA);
|
|
|
- // _this.showWindStationCardLineA1('windStationCanvasLineA', LineA);
|
|
|
- _this.showWindStationCardLineA2('windStationCanvasLineB', LineB);
|
|
|
- _this.showWindStationCardLineA3('windStationCanvasLineC', LineC);
|
|
|
+
|
|
|
/*
|
|
|
_this.showWindStationCardLineA4('windStationCanvasLineD', LineD);
|
|
|
_this.showWindStationCardLineA5('windStationCanvasLineE', LineE); */
|