From 15af9d846f469fa0b9c2b3a0f3ad056c2b352184 Mon Sep 17 00:00:00 2001
From: wangshuai <464942911@qq.com>
Date: Fri, 15 Apr 2022 15:35:13 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=9D=83=E9=99=90=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index/customer.vue | 12 +++++++++++-
pages/index/index.vue | 2 +-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/pages/index/customer.vue b/pages/index/customer.vue
index 557735c..82e9f53 100644
--- a/pages/index/customer.vue
+++ b/pages/index/customer.vue
@@ -46,7 +46,9 @@
@@ -75,6 +77,13 @@
addAccount: '',
};
},
+ computed: {
+ // 是否有结束接待的权限
+ endReception() {
+ let menulist = uni.getStorageSync('weapp_session_Menu_data')
+ return menulist.findIndex(item => { return item.name == '结束接待' }) != -1
+ }
+ },
components: {},
onLoad() {},
onShow() {
@@ -85,6 +94,7 @@
} = uni.getStorageSync("weapp_session_userInfo_data");
this.addAccount = addAccount;
this.dataCode = dataCode;
+ console.log(this.menulist)
this.init()
this.queryHaveDept()
},
diff --git a/pages/index/index.vue b/pages/index/index.vue
index daa39d5..f38100a 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -348,10 +348,10 @@
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');
+ console.log(this.Menulist, 'adasdasds123')
})
},
//自定义时间