소스 검색

登录初始化修正

shilin 4 년 전
부모
커밋
5c825037d9
1개의 변경된 파일31개의 추가작업 그리고 3개의 파일을 삭제
  1. 31 3
      pages/index/Index.vue

+ 31 - 3
pages/index/Index.vue

@@ -555,9 +555,8 @@
 			this.address = this.dataprocessing.getWindPowerStationName();
 			this.FDC = this.dataprocessing.getWindPowerStationId();
 			this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
-		},
+		},onLoad: function() {
 
-		onLoad: function() {
 			let that = this;
 			setTimeout(function() {
 				that.loading = true;
@@ -582,6 +581,35 @@
 			this.getWindStationCardData();
 			this.index_curve_columnar_windSpeed_power();
 			this.index_windStation_card(); /* P6F8与P6F4冲突 */
+		
+		},
+		onReady: function() {
+			let that = this;
+			setTimeout(function() {
+				that.loading = true;
+			}, 500);
+			_self = this;
+			this.viewUserid();
+			this.monitoringAuthority();
+			this.judgeWindfield();
+			this.address = this.dataprocessing.getWindPowerStationName();
+			this.FDC = this.dataprocessing.getWindPowerStationId();
+			this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
+			this.cWidth = uni.upx2px(750);
+			this.cHeight = uni.upx2px(400);
+			this.getServerData();
+			this.getColumnData();
+			this.windStationCardCWidth = 250;
+			this.windStationCardCHeight = 150;
+			this.target_comprehensive_indicators();
+			this.index_electricQuantity();
+			this.index_target_basic_indicators();
+			this.index_curve_columnar_five_loss();
+			this.target_windSpeed_power();
+			this.index_windturbine_status();
+			this.getWindStationCardData();
+			this.index_curve_columnar_windSpeed_power();
+			this.index_windStation_card(); /* P6F8与P6F4冲突 */
 		},
 		computed: {
 			backStageIp: function() {
@@ -1087,7 +1115,7 @@
 				if(this.$refs.drawer != undefined){
 					this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList, this.leftNavigationtitle);
 				}else{
-					console.log('雷霆嘎巴');
+					//console.log('雷霆嘎巴');
 				}
 			},
 			closeDrawer: function() {