|
@@ -489,7 +489,7 @@
|
|
|
badge: 22,
|
|
|
modalName: null,
|
|
|
inconList: ["form", "favor", "question", "edit"],
|
|
|
- address: '宁夏新能源公司',
|
|
|
+ address: '',
|
|
|
weatherTodaybutton: true,
|
|
|
weatherSevendaybutton: false,
|
|
|
weatherFromeighttofifteendaysbutton: false,
|
|
@@ -810,18 +810,11 @@
|
|
|
// this.pushWindPowerStationNameToSessionStorage("麻黄山");
|
|
|
this.viewUserid();
|
|
|
this.monitoringAuthority();
|
|
|
- this.address = this.getWindPowerStationNameToSessionStorage();
|
|
|
-
|
|
|
- this.windPowerStationId = uni.getStorageSync('windPowerStationId');
|
|
|
- this.FDC= uni.getStorageSync('windPowerStationId');
|
|
|
|
|
|
- if (this.address == '宁夏新能源公司') {
|
|
|
- this.FDC = 'MHS_FDC';
|
|
|
- }
|
|
|
- if (this.address == '河北能源集团') {
|
|
|
- this.FDC = 'CL_FDC';
|
|
|
- }
|
|
|
- uni.setStorageSync('windPowerStationId',this.FDC);
|
|
|
+ this.address = this.dataprocessing.getWindPowerStationName();
|
|
|
+ this.FDC=this.dataprocessing.getWindPowerStationId();
|
|
|
+ this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
|
|
|
+
|
|
|
this.$nextTick(function() {
|
|
|
this.getWeatherDataToday();
|
|
|
this.getWeatherData7();
|
|
@@ -831,65 +824,9 @@
|
|
|
this.cWidth40 = uni.upx2px(5000);
|
|
|
this.cHeight40 = uni.upx2px(350);
|
|
|
|
|
|
- if (this.address == '宁夏新能源公司') {
|
|
|
- this.windStation = ['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
- // this.windPowerStationId = 'MHS_FDC';
|
|
|
- // this.getWeatherDataToday();
|
|
|
- }
|
|
|
- if (this.address == '麻黄山风电场') {
|
|
|
- this.windStation = ['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
- // this.windPowerStationId = 'MHS_FDC';
|
|
|
- // this.getWeatherDataToday();
|
|
|
- }
|
|
|
- if (this.address == '牛首山风电场') {
|
|
|
- this.windStation = ['牛首山风电场', '麻黄山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
- // this.windPowerStationId = 'NSS_FDC';
|
|
|
- // this.getWeatherDataToday();
|
|
|
- }
|
|
|
- if (this.address == '石板泉风电场') {
|
|
|
- this.windStation = ['石板泉风电场', '麻黄山风电场', '牛首山风电场', '青山风电场', '香山风电场'];
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
- // this.windPowerStationId = 'SBQ_FDC';
|
|
|
- // this.getWeatherDataToday();
|
|
|
- }
|
|
|
- if (this.address == '香山风电场') {
|
|
|
- this.windStation = ['香山风电场', '麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场'];
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
- // this.windPowerStationId = 'XS_FDC';
|
|
|
- // this.getWeatherDataToday();
|
|
|
- }
|
|
|
- if (this.address == '青山风电场') {
|
|
|
- this.windStation = ['青山风电场', '麻黄山风电场', '牛首山风电场', '石板泉风电场', '香山风电场'];
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
- // this.windPowerStationId = 'QS_FDC';
|
|
|
- // this.getWeatherDataToday();
|
|
|
- }if (this.address == '河北能源集团') {
|
|
|
- this.windStation = ['崇礼风电场', '康保风电场', '代县风电场'];
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
- // this.windPowerStationId = 'QS_FDC';
|
|
|
- // this.getWeatherDataToday();
|
|
|
- }
|
|
|
- if (this.address == '崇礼风电场') {
|
|
|
- this.windStation = ['崇礼风电场', '康保风电场', '代县风电场'];
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
- // this.windPowerStationId = 'QS_FDC';
|
|
|
- // this.getWeatherDataToday();
|
|
|
- }
|
|
|
- if (this.address == '康保风电场') {
|
|
|
- this.windStation = ['康保风电场', '崇礼风电场', '代县风电场'];
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
- // this.windPowerStationId = 'QS_FDC';
|
|
|
- // this.getWeatherDataToday();
|
|
|
- }
|
|
|
- if (this.address == '代县风电场') {
|
|
|
- this.windStation = ['代县风电场', '康保风电场', '崇礼风电场'];
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
- // this.windPowerStationId = 'QS_FDC';
|
|
|
- // this.getWeatherDataToday();
|
|
|
- }
|
|
|
+ this.windStation =this.dataprocessing.getWindPowerStationNameByNames(this.address);
|
|
|
+ this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
+
|
|
|
this.windStationListHeight = this.windStation.length * 50 + 40 + 'px';
|
|
|
this.spopupWrapperHeight = this.windStation.length * 50 + 90 + 'px';
|
|
|
this.windowWidth = uni.getSystemInfoSync().windowWidth;
|
|
@@ -973,38 +910,11 @@
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.windPowerStationId = uni.getStorageSync('windPowerStationId');
|
|
|
- this.address = this.getWindPowerStationNameToSessionStorage();
|
|
|
- if (this.address == '宁夏新能源公司') {
|
|
|
- this.FDC = 'MHS_FDC';
|
|
|
- }
|
|
|
- if (this.address == '麻黄山风电场') {
|
|
|
- this.FDC = 'MHS_FDC';
|
|
|
- }
|
|
|
- if (this.address == '牛首山风电场') {
|
|
|
- this.FDC = 'NSS_FDC';
|
|
|
- }
|
|
|
- if (this.address == '石板泉风电场') {
|
|
|
- this.FDC = 'SBQ_FDC';
|
|
|
- }
|
|
|
- if (this.address == '青山风电场') {
|
|
|
- this.FDC = 'QS_FDC';
|
|
|
- }
|
|
|
- if (this.address == '香山风电场') {
|
|
|
- this.FDC = 'XS_FDC';
|
|
|
- }
|
|
|
- if (this.address == '河北能源集团') {
|
|
|
- this.FDC = 'CL_FDC';
|
|
|
- }
|
|
|
- if (this.address == '崇礼风电场') {
|
|
|
- this.FDC = 'CL_FDC';
|
|
|
- }
|
|
|
- if (this.address == '康保风电场') {
|
|
|
- this.FDC = 'KB_FDC';
|
|
|
- }
|
|
|
- if (this.address == '代县风电场') {
|
|
|
- this.FDC = 'DX_FDC';
|
|
|
- }
|
|
|
+
|
|
|
+ this.address = this.dataprocessing.getWindPowerStationName();
|
|
|
+ this.FDC=this.dataprocessing.getWindPowerStationId();
|
|
|
+ this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
|
|
|
+
|
|
|
this.getWeatherData();
|
|
|
this.getWeatherDataToday();
|
|
|
this.getWeatherData7();
|
|
@@ -1121,33 +1031,11 @@
|
|
|
_this.choiceIndex = -1;
|
|
|
_this.cardCur = index;
|
|
|
}, 1000);
|
|
|
- if (this.windStationName == '麻黄山') {
|
|
|
+
|
|
|
+ this.FDC =this.dataprocessing.getWindPowerStationNameById(item);
|
|
|
|
|
|
- this.FDC = 'MHS_FDC';
|
|
|
-
|
|
|
- }
|
|
|
- if (this.windStationName == '牛首山') {
|
|
|
- this.FDC = 'NSS_FDC';
|
|
|
- }
|
|
|
- if (this.windStationName == '石板泉') {
|
|
|
- this.FDC = 'SBQ_FDC';
|
|
|
- }
|
|
|
- if (this.windStationName == '青山') {
|
|
|
- this.FDC = 'QS_FDC';
|
|
|
- }
|
|
|
- if (this.windStationName == '香山') {
|
|
|
- this.FDC = 'XS_FDC';
|
|
|
- }
|
|
|
- if (this.windStationName == '崇礼') {
|
|
|
- this.FDC = 'CL_FDC';
|
|
|
- }
|
|
|
- if (this.windStationName == '康保') {
|
|
|
- this.FDC = 'KB_FDC';
|
|
|
- }
|
|
|
- if (this.windStationName == '代县') {
|
|
|
- this.FDC = 'YMG_FDC';
|
|
|
- }
|
|
|
- uni.setStorageSync('windPowerStationId',this.FDC);
|
|
|
+ this.dataprocessing.putWindPowerStationId(this.FDC);
|
|
|
+ //uni.setStorageSync('windPowerStationId',this.FDC);
|
|
|
if (this.weatherTodaybutton == true) {
|
|
|
|
|
|
this.getWeatherDataToday();
|
|
@@ -1167,10 +1055,10 @@
|
|
|
this.cardCur = e.detail.current;
|
|
|
for (let i = 0; i < this.windStation.length; i++) {
|
|
|
if (this.cardCur == i) {
|
|
|
- if (this.address == '宁夏新能源公司' || this.address == '河北能源集团' ) {
|
|
|
- this.windStationName = this.windStation[i].replace('风电场', '');
|
|
|
- this.modalWindStationName = this.windStation[i].replace('风电场', '');
|
|
|
- }
|
|
|
+ // if (this.address == '宁夏新能源公司' || this.address == '河北能源集团' ) {
|
|
|
+ // this.windStationName = this.windStation[i].replace('风电场', '');
|
|
|
+ // this.modalWindStationName = this.windStation[i].replace('风电场', '');
|
|
|
+ // }
|
|
|
if (this.address.search('风电场') != -1) {
|
|
|
if (this.windStation[i].search('风电场') != -1) {
|
|
|
this.windStationName = this.windStation[i].replace('风电场', '');
|