|
@@ -1082,19 +1082,21 @@ export default {
|
|
|
this.getPowerLineChartData();
|
|
|
this.getWindResources();
|
|
|
} else if (this.tabIndex === 2) {
|
|
|
- this.getMgt("goodness/wprzdfs", { wpId: this.wpId, recorddate: this.recorddate }, "rzdfsData");
|
|
|
- this.getMgt("goodness/wpyzdfs", { wpId: this.wpId, recorddate: this.recorddate }, "yzdfsData");
|
|
|
- this.getMgt("goodness/wpnzdfs", { wpId: this.wpId, recorddate: this.recorddate }, "nzdfsData");
|
|
|
- this.getMgt("goodness/wprfxpl", { wpId: this.wpId, recorddate: this.recorddate }, "rfxplData");
|
|
|
- this.getMgt("goodness/wpyfxpl", { wpId: this.wpId, recorddate: this.recorddate }, "yfxplData");
|
|
|
- this.getMgt("goodness/wpnfxpl", { wpId: this.wpId, recorddate: this.recorddate }, "nfxplData");
|
|
|
+ const xhrParam = { wpId: this.wpId, recorddate: this.recorddate };
|
|
|
+ this.getMgt("goodness/wprzdfs", xhrParam, "rzdfsData");
|
|
|
+ this.getMgt("goodness/wpyzdfs", xhrParam, "yzdfsData");
|
|
|
+ this.getMgt("goodness/wpnzdfs", xhrParam, "nzdfsData");
|
|
|
+ this.getMgt("goodness/wprfxpl", xhrParam, "rfxplData");
|
|
|
+ this.getMgt("goodness/wpyfxpl", xhrParam, "yfxplData");
|
|
|
+ this.getMgt("goodness/wpnfxpl", xhrParam, "nfxplData");
|
|
|
} else if (this.tabIndex === 3) {
|
|
|
- this.getMgt("goodness/wtrzdfs", { wtId: this.wtId, recorddate: this.recorddate }, "rzdfsData");
|
|
|
- this.getMgt("goodness/wtyzdfs", { wtId: this.wtId, recorddate: this.recorddate }, "yzdfsData");
|
|
|
- this.getMgt("goodness/wtnzdfs", { wtId: this.wtId, recorddate: this.recorddate }, "nzdfsData");
|
|
|
- this.getMgt("goodness/wtrfxpl", { wtId: this.wtId, recorddate: this.recorddate }, "rfxplData");
|
|
|
- this.getMgt("goodness/wtyfxpl", { wtId: this.wtId, recorddate: this.recorddate }, "yfxplData");
|
|
|
- this.getMgt("goodness/wtnfxpl", { wtId: this.wtId, recorddate: this.recorddate }, "nfxplData");
|
|
|
+ const xhrParam = { wtId: this.wtId, recorddate: this.recorddate };
|
|
|
+ this.getMgt("goodness/wtrzdfs", xhrParam, "rzdfsData");
|
|
|
+ this.getMgt("goodness/wtyzdfs", xhrParam, "yzdfsData");
|
|
|
+ this.getMgt("goodness/wtnzdfs", xhrParam, "nzdfsData");
|
|
|
+ this.getMgt("goodness/wtrfxpl", xhrParam, "rfxplData");
|
|
|
+ this.getMgt("goodness/wtyfxpl", xhrParam, "yfxplData");
|
|
|
+ this.getMgt("goodness/wtnfxpl", xhrParam, "nfxplData");
|
|
|
} else if (this.tabIndex === 4) {
|
|
|
this.getPieChart("goodness/pieChart", "1", "dayWindPieData");
|
|
|
this.getPieChart("goodness/pieChart", "2", "monthWindPieData");
|