|
|
@@ -267,8 +267,10 @@ |
|
|
|
}, |
|
|
|
components: {}, |
|
|
|
onShow() { |
|
|
|
this.getMenu() |
|
|
|
|
|
|
|
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); |
|
|
|
this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); |
|
|
|
|
|
|
|
if(this.userInfo.dataCode==6 || this.userInfo.dataCode==3){ |
|
|
|
this.methodsisshow=false; |
|
|
|
}else{ |
|
|
@@ -301,6 +303,14 @@ |
|
|
|
this.initrealTimeStatistics() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//获取权限 |
|
|
|
getMenu(){ |
|
|
|
console.log("11111") |
|
|
|
this.$u.get("/user/getMenu").then(data => { |
|
|
|
uni.setStorageSync("weapp_session_Menu_data", data) |
|
|
|
this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); |
|
|
|
}) |
|
|
|
}, |
|
|
|
//自定义时间 |
|
|
|
totalTimeChange(e) { |
|
|
|
this.statDateStart=e.startDate; |
|
|
|