|
@@ -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);
|