Browse Source

游客修改

shilin 4 years ago
parent
commit
241cb7c95b

+ 4 - 1
common/store.js

@@ -11,8 +11,11 @@ const store = new Vuex.Store({
            "宁夏新能源公司":"0","麻黄山风电场":"MHS_FDC","牛首山风电场":"NSS_FDC","青山风电场":"SBQ_FDC","石板泉风电场":"QS_FDC","香山风电场":"QS_FDC"
 		},
 		default_wpid:'0',
-		default_tourist:'2',
+		
 		default_wpname:'河北能源集团',
+		default_tourist:'2',
+		default_tourist_wpid:'CL_FDC',
+		default_tourist_wpname:'崇礼风电场',
         memberData:'',
         initName:''
     },

+ 22 - 4
components/login/Login.vue

@@ -190,10 +190,13 @@
 				let _this = this;
 				_this.loginFalg = true;
 
+				_this.dataprocessing.putWindPowerStationId(_this.$store.state.default_tourist_wpid);
+				_this.dataprocessing.putWindPowerStationName(_this.$store.state.default_tourist_wpname);
 				uni.setStorageSync('userid', _this.$store.state.default_tourist);
+
 				_this.dataprocessing.viewUserid();
 				_this.dataprocessing.monitoringAuthority();
-				
+
 				uni.switchTab({
 					url: '/pages/index/Index'
 				});
@@ -227,8 +230,17 @@
 
 					uni.setStorageSync('gyeeusername', uni.getStorageSync('fingerPrintname'));
 					uni.setStorageSync('gyeepassword', uni.getStorageSync('fingerPrintpassword'));
+					uni.setStorageSync('userid', uni.getStorageSync('fingerPrintuserid'));
+
+
 					this.dataprocessing.viewUserid();
 					this.dataprocessing.monitoringAuthority();
+					
+					let plusDrawerList = uni.getStorageSync('plusList');
+					
+					this.dataprocessing.putWindPowerStationId(plusDrawerList[0].windId);
+					this.dataprocessing.putWindPowerStationName(plusDrawerList[0].name);
+
 					uni.switchTab({
 						url: '/pages/index/Index'
 					});
@@ -263,15 +275,21 @@
 						console.log(res.data);
 						_this.userid = res.data.data;
 
+
 						uni.setStorageSync('userid', _this.userid);
+						uni.setStorageSync('fingerPrintuserid', _this.userid);
 						//sessionStorage.setItem('userid',_this.userid);
 						if (res.data.code == 200) {
 
-							_this.dataprocessing.putWindPowerStationId(_this.$store.state.default_wpid);
-							_this.dataprocessing.putWindPowerStationName(_this.$store.state.default_wpname);
-
+							
 							_this.dataprocessing.viewUserid();
 							_this.dataprocessing.monitoringAuthority();
+							
+							let plusDrawerList = uni.getStorageSync('plusList');
+							
+							_this.dataprocessing.putWindPowerStationId(plusDrawerList[0].windId);
+							_this.dataprocessing.putWindPowerStationName(plusDrawerList[0].name);
+							
 							// if(_this.dataprocessing.getWindPowerStationId()=='')
 							// {
 							// 	//debugger

+ 11 - 9
components/monitor/MatrixMonitor.vue

@@ -177,8 +177,8 @@
 		data: function() {
 			return {
 				address: '',
-				userid:'',
-				permissionsInformation:[],
+				userid: '',
+				permissionsInformation: [],
 				badge: 22,
 				drawerList: [],
 				plusDrawerList: [],
@@ -193,7 +193,7 @@
 				cardCur: 0,
 				dotStyle: false,
 				windowWidth: '',
-				leftNavigationtitle:'监视功能分组',
+				leftNavigationtitle: '监视功能分组',
 				windowHeight: '',
 				spopupWrapperHeight: "",
 				windStationListHeight: '',
@@ -1184,11 +1184,13 @@
 		// 	}
 		// 	this.windStationListHeight=(this.windStation.length*50+40)+"px"
 		// },
-		onShow() {
+		onShow: function() {
 			this.address = this.dataprocessing.getWindPowerStationName();
 			this.FDC = this.dataprocessing.getWindPowerStationId();
 			this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
 
+			this.viewUserid();
+			this.monitoringAuthority();
 		},
 		created: function() {
 			this.viewUserid();
@@ -1236,10 +1238,10 @@
 		},
 		methods: {
 			viewUserid: function() {
-				this.plusDrawerList=uni.getStorageSync('plusList_we');
+				this.plusDrawerList = uni.getStorageSync('plusList');
 			},
 			monitoringAuthority: function() {
-				this.drawerList=uni.getStorageSync('leftlist3');
+				this.drawerList = uni.getStorageSync('leftlist1');
 			},
 			pushWindPowerStationNameToSessionStorage(windpowerstationName) {
 				uni.setStorageSync('windpowerstationName', windpowerstationName);
@@ -1253,7 +1255,7 @@
 			},
 			openDrawer: function() {
 				//this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList);
-				this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
+				this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList, this.leftNavigationtitle);
 			},
 			openPlusDrawer(e) {
 				this.modalName = e.currentTarget.dataset.target;
@@ -1289,8 +1291,8 @@
 					_this.choiceIndex = -1;
 					_this.cardCur = index;
 				}, 1000);
-				this.FDC =this.dataprocessing.getWindPowerStationNameById(item);
-				
+				this.FDC = this.dataprocessing.getWindPowerStationNameById(item);
+
 				this.dataprocessing.putWindPowerStationId(this.FDC);
 			},
 			getWindMotorStatusCard: function() {

+ 195 - 190
components/weatherProphethomepage/WeatherProphethomepage.vue

@@ -1,20 +1,20 @@
 <template>
 	<view class="content">
 		<cu-custom bgColor="bg-blacks" :isBack="false">
-		    <block slot="right">
+			<block slot="right">
 				<image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-left: 2%;" @tap="openDrawer"></image>
 			</block>
-			<block slot="right">	
-					<view class="icon cuIcon-notice text-white" v-if="badge != 0" style="margin-left: -70%;">
-						<view class="cu-tag looknumber" style="margin-top: -2%;">
-							<block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
-						</view>
+			<block slot="right">
+				<view class="icon cuIcon-notice text-white" v-if="badge != 0" style="margin-left: -70%;">
+					<view class="cu-tag looknumber" style="margin-top: -2%;">
+						<block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
 					</view>
+				</view>
 			</block>
 			<block slot="right">
-					
+
 			</block>
-		    <block slot="content">{{address}}</block>
+			<block slot="content">{{address}}</block>
 			<block slot="right">
 				<view class="plus" @tap="showModal" data-target="viewModal">+</view>
 			</block>
@@ -35,10 +35,10 @@
 				 @click="weatherFromeighttofifteendays()">8~15天</view>
 				<view :class="[weatherFortydaysbutton?'weatherFortydayswhite':'weatherFortydays']" @click="weatherFortydays()">40天</view>
 			</view>
-				
+
 			<!--风场选项卡-->
 			<view class="windStationNameAndChoice">
-				
+
 				<view class="windStationName"></view>
 				<!--<view class="windStationName">{{ windStationName }}</view>
 				<view class="windStationChoice"><a @click="showCenterVisible = true">其他ㅤ〉</a></view>-->
@@ -409,9 +409,9 @@
 							</view>
 						</view>
 
-						<scroll-view scroll-x scroll-with-animation :scroll-left=scrollposition class="scrollUcharts" @touchstart="topblock" @scroll="uChartsScrollEvent"
-						 :scroll-into-view="'uCharts-'+mainCur">
-							<view class="qiun-charts" >
+						<scroll-view scroll-x scroll-with-animation :scroll-left=scrollposition class="scrollUcharts" @touchstart="topblock"
+						 @scroll="uChartsScrollEvent" :scroll-into-view="'uCharts-'+mainCur">
+							<view class="qiun-charts">
 								<canvas canvas-id="canvasLineA" id="canvasLineA" class="charts"></canvas>
 							</view>
 						</scroll-view>
@@ -420,10 +420,10 @@
 				</view>
 				<div>
 
-					<scroll-view scroll-y scroll-with-animation :scroll-top=scrollpositiontmp class="scrollList" :style="{'height': scrollHeight }"  @touchstart="bottomblock"
-					 @scroll="listScrollEvent">					
+					<scroll-view scroll-y scroll-with-animation :scroll-top=scrollpositiontmp class="scrollList" :style="{'height': scrollHeight }"
+					 @touchstart="bottomblock" @scroll="listScrollEvent">
 						<weatherCalendarCardList8_15 ref="weatherCalendarCardList8_15"></weatherCalendarCardList8_15>
-					
+
 					</scroll-view>
 
 				</div>
@@ -446,8 +446,8 @@
 							</view>
 						</view>
 						<view @tap="topblock_40">
-							<scroll-view scroll-x scroll-with-animation :scroll-left=scrollposition_uCharts class="scrollUcharts40" @touchstart="topblock_40" @scroll="uChartsScrollEvent40"
-							 :scroll-into-view="'uCharts-'+mainCur40">
+							<scroll-view scroll-x scroll-with-animation :scroll-left=scrollposition_uCharts class="scrollUcharts40"
+							 @touchstart="topblock_40" @scroll="uChartsScrollEvent40" :scroll-into-view="'uCharts-'+mainCur40">
 								<view class="qiun-charts40">
 									<canvas canvas-id="canvasLineA40" id="canvasLineA40" class="charts40"></canvas>
 								</view>
@@ -457,7 +457,7 @@
 				</view>
 				<view @tap="topbottom_40">
 					<scroll-view scroll-y scroll-with-animation :scroll-top=scrollposition_list class="scrollList40" :style="{'height': scrollListHeight40 }"
-					 @scroll="listScrollEvent40" @touchstart="bottomblock_40" >
+					 @scroll="listScrollEvent40" @touchstart="bottomblock_40">
 						<weatherCalendarCardList40 ref="weatherCalendarCardList40"></weatherCalendarCardList40>
 					</scroll-view>
 				</view>
@@ -491,11 +491,11 @@
 		},
 		data() {
 			return {
-				userid:'',
-				name:[],
-				windId:[],
-				socketTaskHourId:'',
-				outThreeLineDrawerIsShow:false,
+				userid: '',
+				name: [],
+				windId: [],
+				socketTaskHourId: '',
+				outThreeLineDrawerIsShow: false,
 				badge: 22,
 				modalName: null,
 				inconList: ["form", "favor", "question", "edit"],
@@ -513,7 +513,7 @@
 				spopupWrapperHeight: "",
 				windStationListHeight: '',
 				drawerList: [],
-				leftNavigationtitle:'预测功能分组',
+				leftNavigationtitle: '预测功能分组',
 				plusDrawerList: [],
 				utils: utils,
 				margintop: '',
@@ -657,11 +657,11 @@
 				windowWidth: "",
 				windowHeight: "",
 				windowWidth7: "",
-				windowHeight7:"",
+				windowHeight7: "",
 				windowWidth8_15: "",
-				windowHeight8_15:"",
+				windowHeight8_15: "",
 				windowWidth40: "",
-				windowHeight40:"",
+				windowHeight40: "",
 				ziHeight: '',
 				fontSize: '',
 				xianHeight: '',
@@ -813,22 +813,22 @@
 				xianHeight7: '',
 				nightmarginleft7: '',
 				socketTask7: '',
-				userCanviewthewindfarm:[],
-				permissionsInformation:[],
-				timer:null
+				userCanviewthewindfarm: [],
+				permissionsInformation: [],
+				timer: null
 			}
 		},
 		created: function() {
 			// this.pushWindPowerStationNameToSessionStorage("麻黄山");
 			this.viewUserid();
 			this.monitoringAuthority();
-			
+
 			this.address = this.dataprocessing.getWindPowerStationName();
-			
-			this.FDC=this.dataprocessing.getWindPowerStationNameByWeatherId(this.address);
 
-	
-			
+			this.FDC = this.dataprocessing.getWindPowerStationNameByWeatherId(this.address);
+
+
+
 			this.$nextTick(function() {
 				this.getWeatherDataToday();
 				this.getWeatherData7();
@@ -837,106 +837,109 @@
 			this.cHeight = uni.upx2px(350);
 			this.cWidth40 = uni.upx2px(5000);
 			this.cHeight40 = uni.upx2px(350);
-			
-			this.windStation =this.dataprocessing.getWindPowerStationNameByNames(this.address);
+
+			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;
 			this.windowHeight = uni.getSystemInfoSync().windowHeight;
 			if (this.windowWidth >= 768) {
-				this.margintop="60px";
-				this.margintopThree="80px";
-				this.messageTop="10px";
-				this.fontSize="18px";
-				this.xianHeight="168px";
-				this.marginleftBiao="50px";
+				this.margintop = "60px";
+				this.margintopThree = "80px";
+				this.messageTop = "10px";
+				this.fontSize = "18px";
+				this.xianHeight = "168px";
+				this.marginleftBiao = "50px";
 			} else {
-				this.margintop="3.5%";
-				this.margintopThree="3.5%";
-				this.fontSize="14px";
-				this.xianHeight="85%";
-				this.marginleftBiao="26px";
+				this.margintop = "3.5%";
+				this.margintopThree = "3.5%";
+				this.fontSize = "14px";
+				this.xianHeight = "85%";
+				this.marginleftBiao = "26px";
 			}
 			this.heightToday = parseInt(uni.getSystemInfoSync().windowHeight - 440) + "px";
 			this.widthToday = parseInt(uni.getSystemInfoSync().windowWidth) + "px";
-			
+
 			this.windowWidth7 = uni.getSystemInfoSync().windowWidth;
 			this.windowHeight7 = uni.getSystemInfoSync().windowHeight;
-			if(this.windowWidth7>=768){
-				this.margintop7="60px";
-				this.margintopThree7="80px";
-				this.messageTop7="10px";
-				this.fontSize7="18px";
-				this.xianHeight7="168px";
-				this.nightmarginleft7="20px";
-			}else{
-				this.margintop7="3.5%";
-				this.margintopThree7="3.5%";
-				this.fontSize7="14px";
-				this.xianHeight7="85%";
-				this.nightmarginleft7="20px";
+			if (this.windowWidth7 >= 768) {
+				this.margintop7 = "60px";
+				this.margintopThree7 = "80px";
+				this.messageTop7 = "10px";
+				this.fontSize7 = "18px";
+				this.xianHeight7 = "168px";
+				this.nightmarginleft7 = "20px";
+			} else {
+				this.margintop7 = "3.5%";
+				this.margintopThree7 = "3.5%";
+				this.fontSize7 = "14px";
+				this.xianHeight7 = "85%";
+				this.nightmarginleft7 = "20px";
 			}
 			this.height7 = parseInt(uni.getSystemInfoSync().windowHeight - 440) + "px";
 			this.width7 = parseInt(uni.getSystemInfoSync().windowWidth) + "px";
-			
+
 			this.windowWidth8_15 = uni.getSystemInfoSync().windowWidth;
 			this.windowHeight8_15 = uni.getSystemInfoSync().windowHeight;
-			if(this.windowWidth8_15>=768){
-				this.width="99";
-				this.choiceFontSize="22px";
-				this.choiceMarginTop="27.5px";
-				this.xAxisFontSize=18;
-				this.seriesTextSize=18;
-				this.cardWidth=100;
-				this.cardHeight=130;
-				this.scrollHeight=(this.windowHeight8_15-550)+"px";
-			}
-			else{
-				this.width="100";
-				this.choiceFontSize="15px";
-				this.choiceMarginTop="0";
-				this.xAxisFontSize=12;
-				this.seriesTextSize=12;
-				this.cardWidth=100;
-				this.cardHeight=100;
-				this.scrollHeight=(this.windowHeight8_15-360)+"px";
+			if (this.windowWidth8_15 >= 768) {
+				this.width = "99";
+				this.choiceFontSize = "22px";
+				this.choiceMarginTop = "27.5px";
+				this.xAxisFontSize = 18;
+				this.seriesTextSize = 18;
+				this.cardWidth = 100;
+				this.cardHeight = 130;
+				this.scrollHeight = (this.windowHeight8_15 - 550) + "px";
+			} else {
+				this.width = "100";
+				this.choiceFontSize = "15px";
+				this.choiceMarginTop = "0";
+				this.xAxisFontSize = 12;
+				this.seriesTextSize = 12;
+				this.cardWidth = 100;
+				this.cardHeight = 100;
+				this.scrollHeight = (this.windowHeight8_15 - 360) + "px";
 			}
 			this.windowWidth40 = uni.getSystemInfoSync().windowWidth;
 			this.windowHeight40 = uni.getSystemInfoSync().windowHeight;
-			if(this.windowWidth40>=768){
-				this.choiceFontSize40="22px";
-				this.choiceMarginTop40="27.5px";
-				this.xAxisFontSize40=18;
-				this.seriesTextSize40=18;
-				this.cardWidth40=100;
-				this.cardHeight40=130;
-				this.scrollListHeight40=(this.windowHeight40-550)+"px";
-			}else{
-				this.choiceFontSize40="15px";
-				this.choiceMarginTop40="0";
-				this.xAxisFontSize40=12;
-				this.seriesTextSize40=12;
-				this.cardWidth40=100;
-				this.cardHeight40=100;
-				this.scrollListHeight40=(this.windowHeight40-360)+"px";
+			if (this.windowWidth40 >= 768) {
+				this.choiceFontSize40 = "22px";
+				this.choiceMarginTop40 = "27.5px";
+				this.xAxisFontSize40 = 18;
+				this.seriesTextSize40 = 18;
+				this.cardWidth40 = 100;
+				this.cardHeight40 = 130;
+				this.scrollListHeight40 = (this.windowHeight40 - 550) + "px";
+			} else {
+				this.choiceFontSize40 = "15px";
+				this.choiceMarginTop40 = "0";
+				this.xAxisFontSize40 = 12;
+				this.seriesTextSize40 = 12;
+				this.cardWidth40 = 100;
+				this.cardHeight40 = 100;
+				this.scrollListHeight40 = (this.windowHeight40 - 360) + "px";
 			}
 		},
-		onShow() {
-			
-		this.address = this.dataprocessing.getWindPowerStationName();
-		
-			this.FDC=this.dataprocessing.getWindPowerStationNameByWeatherId(this.address);
-		
+		onShow: function() {
 
+		this.viewUserid();
+		this.monitoringAuthority();
 			
 			this.getWeatherData();
 			this.getWeatherDataToday();
 			this.getWeatherData7();
 		},
 		onLoad: function() {
-			this.address = this.getWindPowerStationNameToSessionStorage();
+			this.address = this.dataprocessing.getWindPowerStationName();
+			
+			this.FDC = this.dataprocessing.getWindPowerStationNameByWeatherId(this.address);
+			
+			
+			this.viewUserid();
+			this.monitoringAuthority();
+			
 			this.cWidth = uni.upx2px(2000);
 			this.cHeight = uni.upx2px(350);
 			this.getServerData();
@@ -950,26 +953,26 @@
 			this.hideModal();
 		},
 		computed: {
-					backStageIp: function() {
-						return this.$store.state.wholeSituationBackStageIp;
-					},
-					backStagePort: function() {
-						return this.$store.state.wholeSituationBackStagePort;
-					},
-					windpowerstationNameToId: function() {
-						return this.$store.state.windpowerstationNameToId;
-					}
-				},
+			backStageIp: function() {
+				return this.$store.state.wholeSituationBackStageIp;
+			},
+			backStagePort: function() {
+				return this.$store.state.wholeSituationBackStagePort;
+			},
+			windpowerstationNameToId: function() {
+				return this.$store.state.windpowerstationNameToId;
+			}
+		},
 		methods: {
 			viewUserid: function() {
-				this.plusDrawerList=uni.getStorageSync('plusList_we');
+				this.plusDrawerList = uni.getStorageSync('plusList_we');
 			},
 			monitoringAuthority: function() {
-				this.drawerList=uni.getStorageSync('leftlist3');
+				this.drawerList = uni.getStorageSync('leftlist3');
 			},
 			openDrawer: function() {
-				this.outThreeLineDrawerIsShow=true;
-				this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
+				this.outThreeLineDrawerIsShow = true;
+				this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList, this.leftNavigationtitle);
 			},
 			closeDrawer: function() {
 				this.drawerIsShow = false;
@@ -1001,8 +1004,8 @@
 					_this.choiceIndex = -1;
 					_this.cardCur = index;
 				}, 1000);
-				
-				this.FDC =this.dataprocessing.getWindPowerStationNameByWeatherId(item);
+
+				this.FDC = this.dataprocessing.getWindPowerStationNameByWeatherId(item);
 
 				this.dataprocessing.putWindPowerStationId(this.FDC);
 				//uni.setStorageSync('windPowerStationId',this.FDC);
@@ -1115,9 +1118,8 @@
 						//console.log("收到服务器内容:" + res.data);
 						_this.weatherProphetDataAll_17Hour = res.data;
 						_this.weatherProphetDataAll_17Hour = JSON.parse(res.data);
-						
-						if(_this.weatherProphetDataAll_17Hour.length!=0)
-						{
+
+						if (_this.weatherProphetDataAll_17Hour.length != 0) {
 							_this.weatherProphetData_17Hour = [];
 							//判断风场id 40天
 							for (let i1 = 0; i1 < _this.weatherProphetDataAll_17Hour.length; i1++) {
@@ -1129,7 +1131,7 @@
 							// console.log(_this.weatherProphetData_17Hour)
 							_this.$nextTick(function() {
 								if (_this.$refs.thermometerCard == undefined) {
-							
+
 								} else {
 									_this.$refs.thermometerCard.getHourWeatherData("90", "260", _this.weatherProphetData_17Hour, _this.weatherProphetData_1);
 								}
@@ -1588,72 +1590,72 @@
 					}
 				});
 			},
-			topblock(){
+			topblock() {
 				this.block = "top";
 			},
-			bottomblock(){
+			bottomblock() {
 				this.block = "bottom";
 			},
-			topblock_40(){
+			topblock_40() {
 				this.block_40 = "top";
 			},
-			bottomblock_40(){
+			bottomblock_40() {
 				this.block_40 = "bottom";
 			},
 			uChartsScrollEvent(e) {
 				//this.topblock();
-               if(this.block=="top"){
-				   this.scrollpositiontmp = e.detail.scrollLeft;
-			   }
-			   
+				if (this.block == "top") {
+					this.scrollpositiontmp = e.detail.scrollLeft;
+				}
+
 				// let scrollposition2 = scrollposition*0.98;
 			},
 			listScrollEvent(e) {
 				//this.bottomblock();
-				if(this.block=="bottom"){
-				   this.scrollposition = e.detail.scrollTop;
+				if (this.block == "bottom") {
+					this.scrollposition = e.detail.scrollTop;
 				}
 			},
 			uChartsScrollEvent40(e) {
-				if(this.block_40=="top"){
-				// this.scrollposition_uCharts = e.detail.scrollLeft;
-				if (e.detail.scrollLeft < 237) {
-					this.scrollposition_list = 0;
-				} else if (e.detail.scrollLeft < 487 && e.detail.scrollLeft > 237) {
-					this.scrollposition_list = 104;
-				} else if (e.detail.scrollLeft < 737 && e.detail.scrollLeft > 487) {
-					this.scrollposition_list = 208;
-				} else if (e.detail.scrollLeft < 987 && e.detail.scrollLeft > 737) {
-					this.scrollposition_list = 312;
-				} else if (e.detail.scrollLeft < 1237 && e.detail.scrollLeft > 987) {
-					this.scrollposition_list = 416;
-				} else if (e.detail.scrollLeft < 1487 && e.detail.scrollLeft > 1237) {
-					this.scrollposition_list = 520;
-				} else if (e.detail.scrollLeft < 1737 && e.detail.scrollLeft > 1487) {
-					this.scrollposition_list = 624;
-				} else if (e.detail.scrollLeft > 1737) {
-					this.scrollposition_list = 656;
-				}
+				if (this.block_40 == "top") {
+					// this.scrollposition_uCharts = e.detail.scrollLeft;
+					if (e.detail.scrollLeft < 237) {
+						this.scrollposition_list = 0;
+					} else if (e.detail.scrollLeft < 487 && e.detail.scrollLeft > 237) {
+						this.scrollposition_list = 104;
+					} else if (e.detail.scrollLeft < 737 && e.detail.scrollLeft > 487) {
+						this.scrollposition_list = 208;
+					} else if (e.detail.scrollLeft < 987 && e.detail.scrollLeft > 737) {
+						this.scrollposition_list = 312;
+					} else if (e.detail.scrollLeft < 1237 && e.detail.scrollLeft > 987) {
+						this.scrollposition_list = 416;
+					} else if (e.detail.scrollLeft < 1487 && e.detail.scrollLeft > 1237) {
+						this.scrollposition_list = 520;
+					} else if (e.detail.scrollLeft < 1737 && e.detail.scrollLeft > 1487) {
+						this.scrollposition_list = 624;
+					} else if (e.detail.scrollLeft > 1737) {
+						this.scrollposition_list = 656;
+					}
 				}
 			},
 			listScrollEvent40(e) {
-				if(this.block_40=="bottom"){
-				// this.scrollposition_list = e.detail.scrollTop;
-				if (e.detail.scrollTop < 104) {
-					this.scrollposition_uCharts = 0;
-				} else if (e.detail.scrollTop < 208 && e.detail.scrollTop > 104) {
-					this.scrollposition_uCharts = 237;
-				} else if (e.detail.scrollTop < 312 && e.detail.scrollTop > 208) {
-					this.scrollposition_uCharts = 487;
-				} else if (e.detail.scrollTop < 416 && e.detail.scrollTop > 312) {
-					this.scrollposition_uCharts = 737;
-				} else if (e.detail.scrollTop < 520 && e.detail.scrollTop > 416) {
-					this.scrollposition_uCharts = 987;
-				} else if (e.detail.scrollTop < 624 && e.detail.scrollTop > 520) {
-					this.scrollposition_uCharts = 1237;
-				} else if (e.detail.scrollTop < 656 && e.detail.scrollTop > 624) {
-					this.scrollposition_uCharts = 1487;
-				}
+				if (this.block_40 == "bottom") {
+					// this.scrollposition_list = e.detail.scrollTop;
+					if (e.detail.scrollTop < 104) {
+						this.scrollposition_uCharts = 0;
+					} else if (e.detail.scrollTop < 208 && e.detail.scrollTop > 104) {
+						this.scrollposition_uCharts = 237;
+					} else if (e.detail.scrollTop < 312 && e.detail.scrollTop > 208) {
+						this.scrollposition_uCharts = 487;
+					} else if (e.detail.scrollTop < 416 && e.detail.scrollTop > 312) {
+						this.scrollposition_uCharts = 737;
+					} else if (e.detail.scrollTop < 520 && e.detail.scrollTop > 416) {
+						this.scrollposition_uCharts = 987;
+					} else if (e.detail.scrollTop < 624 && e.detail.scrollTop > 520) {
+						this.scrollposition_uCharts = 1237;
+					} else if (e.detail.scrollTop < 656 && e.detail.scrollTop > 624) {
+						this.scrollposition_uCharts = 1487;
+					}
 				}
 			},
 			changeTap: function(item) {
@@ -1733,14 +1735,17 @@
 		overflow-x: hidden;
 		overflow-y: hidden;
 	}
+
 	.notice {
 		width: 50px;
 		height: 45px;
 		float: left;
 	}
-	.icon{
+
+	.icon {
 		font-size: 40upx;
 	}
+
 	.plus {
 		width: 30px;
 		height: 45px;
@@ -1751,7 +1756,7 @@
 		text-align: right;
 		margin-right: 2.5%;
 	}
-	
+
 	.DrawerPage {
 		position: fixed;
 		width: 100vw;
@@ -1760,14 +1765,14 @@
 		background-color: #1f1f1f;
 		transition: all 0.4s;
 	}
-	
+
 	.DrawerPage.show {
 		transform: scale(0.9, 0.9);
 		left: 85vw;
 		box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
 		transform-origin: 0;
 	}
-	
+
 	.DrawerWindow {
 		position: absolute;
 		width: 85vw;
@@ -1780,13 +1785,13 @@
 		transition: all 0.4s;
 		padding: 100upx 0;
 	}
-	
+
 	.DrawerWindow.show {
 		transform: scale(1, 1) translateX(0%);
 		opacity: 1;
 		pointer-events: all;
 	}
-	
+
 	.DrawerClose {
 		position: absolute;
 		width: 40vw;
@@ -1805,14 +1810,14 @@
 		pointer-events: none;
 		transition: all 0.4s;
 	}
-	
+
 	.DrawerClose.show {
 		opacity: 1;
 		pointer-events: all;
 		width: 15vw;
 		color: #fff;
 	}
-	
+
 	.DrawerPage .cu-bar.tabbar .action button.cuIcon {
 		width: 64upx;
 		height: 64upx;
@@ -1820,20 +1825,20 @@
 		margin: 0;
 		display: inline-block;
 	}
-	
+
 	.DrawerPage .cu-bar.tabbar .action .cu-avatar {
 		margin: 0;
 	}
-	
+
 	.DrawerPage .nav {
 		flex: 1;
 	}
-	
+
 	.DrawerPage .nav .cu-item.cur {
 		border-bottom: 0;
 		position: relative;
 	}
-	
+
 	.DrawerPage .nav .cu-item.cur::after {
 		content: '';
 		width: 10upx;
@@ -1846,7 +1851,7 @@
 		right: 0;
 		margin: auto;
 	}
-	
+
 	.DrawerPage .cu-bar.tabbar .action {
 		flex: initial;
 	}
@@ -2062,7 +2067,7 @@
 
 	.scrollList {
 		height: 750upx;
-		margin-top: 40upx ;
+		margin-top: 40upx;
 	}
 
 	.cardContenter40 {
@@ -2273,7 +2278,7 @@
 		color: #333333;
 	}
 
-	
+
 
 	.weatherDetails {
 		margin-top: 0%;
@@ -2325,7 +2330,7 @@
 		border-right-color: #19B5BC;
 	}
 
-/* 	.scrollList {
+	/* 	.scrollList {
 		// height:20%;
 		height: 130px;
 		width: 95%;
@@ -2577,4 +2582,4 @@
 		width: 100%;
 		margin-left: -15px;
 	}
-</style>
+</style>

+ 5 - 3
pages/forecast/Forecast.vue

@@ -299,8 +299,6 @@ export default {
 	},
 	mounted() {
 		//document.querySelector('body').setAttribute('style', 'background-color:#000000');
-	},onShow(){
-		this.leftbar();
 	},created: function() {
 		// this.pushWindPowerStationNameToSessionStorage("麻黄山");
 		this.viewUserid();
@@ -489,9 +487,13 @@ export default {
 			this.$refs.drawer.closeDrawer();
 			this.hideModal();
 		},
-		onShow() {
+		onShow: function() {
+			this.leftbar();
 			this.windPowerStationId = uni.getStorageSync('windPowerStationId');
 			this.address = this.getWindPowerStationNameToSessionStorage();
+			
+			this.viewUserid();
+			this.monitoringAuthority();
 		},
 		showModal(e) {
 			this.kg=false;

+ 19 - 51
pages/index/Index.vue

@@ -961,21 +961,31 @@
 
 			this.timeNow();
 			
+		
 			this.viewUserid();
 			this.monitoringAuthority();
-			
 			this.address = this.dataprocessing.getWindPowerStationName();
 			this.FDC=this.dataprocessing.getWindPowerStationId();
 			this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
 
 
 		},
+		
 		onLoad: function() {
 			let that = this;
 			setTimeout(function() {
 				that.loading = true;
 			}, 500);
 			_self = this;
+			
+			this.address = this.dataprocessing.getWindPowerStationName();
+			
+			this.FDC = this.dataprocessing.getWindPowerStationNameByWeatherId(this.address);
+			
+			
+			this.viewUserid();
+			this.monitoringAuthority();
+			
 			this.cWidth = uni.upx2px(750);
 			this.cHeight = uni.upx2px(400);
 			this.getServerData();
@@ -1007,10 +1017,13 @@
 			this.$refs.drawer.closeDrawer();
 			this.hideModal();
 		},
-		onShow() {
+		onShow: function() {
 			this.address = this.dataprocessing.getWindPowerStationName();
 			this.FDC=this.dataprocessing.getWindPowerStationId();
 			this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
+			
+			this.viewUserid();
+			this.monitoringAuthority();
 		},
 		methods: {
 			timeNow(){
@@ -1020,57 +1033,10 @@
 					this.dateNow =  new Date().Format('yyyy年MM月dd hh:mm');
 				}, 60000);
 			},viewUserid: function() {
-				let _this = this;
-				_this.userid = uni.getStorageSync('userid')
-				//_this.userid = sessionStorage.getItem('userid');
-				uni.request({
-					url: 'http://' + this.backStageIp + ':' + this.backStagePort + '/GyeeorganController/GyeeOrganList?userid=' +
-						_this.userid,
-					data: {},
-					method: 'GET',
-					success: function(res) {
-						for (let i = 0; i < res.data.data.length; i++) {
-							// _this.name.push(res.data.data[i].describes);
-							// _this.windId.push(res.data.data[i].name);
-						}
-						for (let j = 0; j < res.data.data.length; j++) {
-							var a = {};
-							_this.$set(a, "name", res.data.data[j].describes);
-							_this.$set(a, "windId", res.data.data[j].name);
-							_this.plusDrawerList.push(a);
-						}
-					},
-				})
+				this.plusDrawerList=uni.getStorageSync('plusList');
 			},
 			monitoringAuthority: function() {
-				let _this = this;
-				uni.request({
-					url: 'http://' + this.backStageIp + ':' + this.backStagePort +
-						'/GyeepermissionController/GyeePermissionList?userid=' + _this.userid,
-					data: {},
-					method: 'GET',
-					success: function(res) {
-						console.log(res);
-						for (let i = 0; i < res.data.data.length; i++) {
-							if (res.data.data[i].describes == "监视") {
-								var b = {};
-								_this.$set(b, "gyeePermissionList", res.data.data[i].gyeePermissionList);
-								_this.permissionsInformation.push(b);
-								console.log(_this.permissionsInformation);
-								for (let k = 0; k < _this.permissionsInformation[0].gyeePermissionList.length; k++) {
-									if (_this.permissionsInformation[0].gyeePermissionList[k].parent == 1) {
-										var c = {};
-										var d = {};
-										_this.$set(c, "name", _this.permissionsInformation[0].gyeePermissionList[k].permisssionname);
-										_this.$set(c, "remark1",_this.permissionsInformation[0].gyeePermissionList[k].remark1);
-										_this.drawerList.push(c);
-									}
-								}
-								console.log(_this.drawerList)
-							}
-						}
-					}
-				})
+				this.drawerList=uni.getStorageSync('leftlist1');
 			},
 			async index_curve_columnar_five_loss() {
 				Date.prototype.Format = function(fmt) {
@@ -1961,6 +1927,8 @@
 			},
 			showModal(e) {
 				this.modalName = e.currentTarget.dataset.target;
+				this.viewUserid();
+				this.monitoringAuthority();
 				this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
 			},
 			hideModal() {