shilin 4 лет назад
Родитель
Сommit
d3a88defdf
1 измененных файлов с 27 добавлено и 45 удалено
  1. 27 45
      pages/mine/Mine.vue

+ 27 - 45
pages/mine/Mine.vue

@@ -47,66 +47,48 @@
 				badge: 22,
 				inconList:["form","favor","question","edit"],
 				modalName:null,
+				leftNavigationtitle:'我的功能分组',
 				buttonHeight:'',
-				address: '宁夏新能源公司',
-				drawerList: [{
-						"name": "首页"
-					},
-					{
-						"name": "状态监视"
-					},
-					{
-						"name": "矩阵监视"
-					},
-					{
-						"name": "风场监视"
-					},
-					{
-						"name": "人员监视"
-					},
-				],
-				plusDrawerList: [{
-						name: '宁夏新能源公司',
-						windPowerStationId: 'NINGXIAXINNENGYUANGONGSI'
-					},
-					{
-						name: '牛首山风电场',
-						windPowerStationId: 'NSS_FDC'
-					},
-					{
-						name: '香山风电场',
-						windPowerStationId: 'XS_FDC'
-					},
-					{
-						name: '石板泉风电场',
-						windPowerStationId: 'SBQ_FDC'
-					},
-					{
-						name: '青山风电场',
-						windPowerStationId: 'QS_FDC'
-					},
-					{
-						name: '麻黄山风电场',
-						windPowerStationId: 'MHS_FDC'
-					}
-				],
+				address: '',
+				drawerList: [],
+				plusDrawerList: [],
 				
 			}
+		},created: function() {
+
+			this.timeNow();
+			
+		
+			this.viewUserid();
+			this.monitoringAuthority();
+			this.address = this.dataprocessing.getWindPowerStationName();
+			this.FDC=this.dataprocessing.getWindPowerStationId();
+			this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
+
+
 		},
 		onHide() {
 			this.$refs.drawer.closeDrawer();
 			this.hideModal();
 		},
 		onShow(){
-			this.windPowerStationId = uni.getStorageSync('windPowerStationId');
-			this.address = this.getWindPowerStationNameToSessionStorage();
+			this.viewUserid();
+			this.monitoringAuthority();
+			this.address = this.dataprocessing.getWindPowerStationName();
+			this.FDC=this.dataprocessing.getWindPowerStationId();
+			this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
 		},
 		methods:{
 			openDrawer:function(){
-				this.$refs.drawer.openDrawer(250,this.drawerList,this.inconList);
+				this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
 			},
 			closeDrawer:function(){
 				this.drawerIsShow=false;
+			},viewUserid: function() {
+				this.plusDrawerList=uni.getStorageSync('plusList');
+			},
+			monitoringAuthority: function() {
+				this.drawerList=uni.getStorageSync('leftlist5');
 			},
 			pushWindPowerStationNameToSessionStorage(windpowerstationName) {
 				uni.setStorageSync('windpowerstationName', windpowerstationName);