123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- class Common {
- constructor() {
- }
-
- navTo(url) {
- uni.navigateTo({
- url: url
- })
- }
- goback(url) {
- var page = getCurrentPages();
-
- console.log(page);
- console.log(url);
- let windpowerstationName = uni.getStorageSync('windpowerstationName');
- page[page.length - 1].$vm.address = windpowerstationName;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- if (page[page.length - 1].route == "pages/index/Index") {
- page[page.length - 1].$vm.FDC = uni.getStorageSync('windPowerStationId');
- page[page.length - 1].$vm.target_comprehensive_indicators();
- page[page.length - 1].$vm.target_windSpeed_power();
- page[page.length - 1].$vm.index_windturbine_status();
- page[page.length - 1].$vm.index_electricQuantity();
- page[page.length - 1].$vm.index_target_basic_indicators();
- page[page.length - 1].$vm.index_curve_columnar_windSpeed_power();
- } else if (page[page.length - 1].route == "components/monitor/MatrixMonitor") {
- page[page.length - 1].$vm.cardCur = 0;
- page[page.length - 1].$vm.choiceIndex = -1;
- page[page.length - 1].$vm.FDC = uni.getStorageSync('windPowerStationId');
- page[page.length - 1].$vm.windStationName = windpowerstationName.replace('风电场', '');
- page[page.length - 1].$vm.getProjectcollection();
- page[page.length - 1].$vm.getWindfarmconnectioninformation();
- } else if (page[page.length - 1].route == "pages/forecast/Forecast") {
-
- page[page.length - 1].$refs.r1.viewUserid();
- page[page.length - 1].$refs.r1.address = uni.getStorageSync('windpowerstationName');
- page[page.length - 1].$refs.r1.FDC = uni.getStorageSync('windPowerStationId');
- page[page.length - 1].$refs.r1.windStationName = windpowerstationName.replace('风电场', '');
- page[page.length - 1].$refs.r1.getWeatherDataToday();
- page[page.length - 1].$refs.r1.getWeatherData7();
- page[page.length - 1].$refs.r1.getWeatherData();
- page[page.length - 1].$refs.r1.getWeatherData40();
-
-
- page[page.length - 1].$vm.$children[0].address = uni.getStorageSync('windpowerstationName');
- page[page.length - 1].$vm.$children[0].FDC = uni.getStorageSync('windPowerStationId');
- page[page.length - 1].$vm.$children[0].windStationName = windpowerstationName.replace('风电场', '');
- page[page.length - 1].$vm.$children[0].getWeatherDataToday();
- page[page.length - 1].$vm.$children[0].getWeatherData7();
- page[page.length - 1].$vm.$children[0].getWeatherData();
- page[page.length - 1].$vm.$children[0].getWeatherData40();
-
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
- let common = new Common();
- export default common;
|