123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- class Dataprocessing {
- constructor() {
- }
-
- //
- putWindPowerStationName(windPowerStationName) {
- uni.setStorageSync('windpowerstationName', windPowerStationName);
- }
-
- putWindPowerStationId(windPowerStationId) {
- uni.setStorageSync('windPowerStationId', windPowerStationId);
- }
-
- getWindPowerStationName() {
- return uni.getStorageSync('windpowerstationName');
- }
-
- getWindPowerStationId() {
- return uni.getStorageSync('windPowerStationId');
- }
-
- getWindPowerStationNameById(name)
- {
- if (name == '宁夏新能源公司') {
- let wpId = '0';
- return wpId;
- }else if (name == '麻黄山风电场') {
-
- let wpId = 'MHS_FDC';
- return wpId;
- }else if (name == '牛首山风电场') {
- let wpId = 'NSS_FDC';
- return wpId;
- }else if (name == '石板泉风电场') {
- let wpId = 'SBQ_FDC';
- return wpId;
- }else if (name == '青山风电场') {
- let wpId = 'QS_FDC';
- return wpId;
- }else if (name == '香山风电场') {
- let wpId = 'XS_FDC';
- return wpId;
- }else if (name == '河北能源集团') {
- let wpId = '0';
- return wpId;
- }else if (name == '崇礼风电场') {
- let wpId = 'CL_FDC';
- return wpId;
- }else if (name == '康保风电场') {
- let wpId = 'KB_FDC';
- return wpId;
- }else if (name == '代县风电场') {
- let wpId = 'DX_FDC';
- return wpId;
- }
- }
-
- getWindPowerStationNameByWeatherId(name)
- {
-
- if (name == '宁夏新能源公司') {
- let wpId = 'MHS_FDC';
- return wpId;
- }else if (name == '麻黄山风电场') {
-
- let wpId = 'MHS_FDC';
- return wpId;
- }else if (name == '牛首山风电场') {
- let wpId = 'NSS_FDC';
- return wpId;
- }else if (name == '石板泉风电场') {
- let wpId = 'SBQ_FDC';
- return wpId;
- }else if (name == '青山风电场') {
- let wpId = 'QS_FDC';
- return wpId;
- }else if (name == '香山风电场') {
- let wpId = 'XS_FDC';
- return wpId;
- }else if (name == '河北能源集团') {
- let wpId = 'CL_FDC';
- return wpId;
- }else if (name == '崇礼风电场') {
- let wpId = 'CL_FDC';
- return wpId;
- }else if (name == '康保风电场') {
- let wpId = 'KB_FDC';
- return wpId;
- }else if (name == '代县风电场') {
- let wpId = 'DX_FDC';
- return wpId;
- }
- }
-
- getWindPowerStationNameByNames(name)
- {
- if (name == '宁夏新能源公司') {
-
- let windStations=['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
- return windStations;
- }else if (name == '麻黄山风电场') {
- let windStations = ['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
- return windStations;
- }else if (name == '牛首山风电场') {
- let windStations = ['牛首山风电场', '麻黄山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
- return windStations;
- }else if (name == '石板泉风电场') {
- let windStations = ['石板泉风电场', '麻黄山风电场', '牛首山风电场', '青山风电场', '香山风电场'];
- return windStations;
- }else if (name == '香山风电场') {
- let windStations = ['香山风电场', '麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场'];
- return windStations;
- }else if (name == '青山风电场') {
- let windStations = ['青山风电场', '麻黄山风电场', '牛首山风电场', '石板泉风电场', '香山风电场'];
- return windStations;
- }else if (name == '河北能源集团') {
- let windStations = ['崇礼风电场', '康保风电场', '代县风电场'];
- return windStations;
- }else if (name == '崇礼风电场') {
- let windStations = ['崇礼风电场', '康保风电场', '代县风电场'];
- return windStations;
- }else if (name == '康保风电场') {
- let windStations = ['康保风电场', '崇礼风电场', '代县风电场'];
- return windStations;
- }else if (name == '代县风电场') {
- let windStations = ['代县风电场', '康保风电场', '崇礼风电场'];
- return windStations;
- }
- }
-
-
- }
- let dataprocessing = new Dataprocessing();
- export default dataprocessing;
|