Browse Source

提交权限修改

dev
wangshuai 2 years ago
parent
commit
15af9d846f
2 changed files with 12 additions and 2 deletions
  1. +11
    -1
      pages/index/customer.vue
  2. +1
    -1
      pages/index/index.vue

+ 11
- 1
pages/index/customer.vue View File

@@ -46,7 +46,9 @@
<view class="footer-button" v-if="item.status!=0"> <view class="footer-button" v-if="item.status!=0">
<view class="footer1" @click.stop="addTime(item)">接待延时</view> <view class="footer1" @click.stop="addTime(item)">接待延时</view>
<view class="footer1" @click.stop="assign(item)">重新指派</view> <view class="footer1" @click.stop="assign(item)">重新指派</view>
<view class="footer3" @click.stop="changeEnd(item.id)">结束接待</view>
<template v-if="endReception">
<view class="footer3" @click.stop="changeEnd(item.id)">结束接待</view>
</template>
</view> </view>


<view class="centerbox" v-if="item.status==0"> <view class="centerbox" v-if="item.status==0">
@@ -75,6 +77,13 @@
addAccount: '', addAccount: '',
}; };
}, },
computed: {
// 是否有结束接待的权限
endReception() {
let menulist = uni.getStorageSync('weapp_session_Menu_data')
return menulist.findIndex(item => { return item.name == '结束接待' }) != -1
}
},
components: {}, components: {},
onLoad() {}, onLoad() {},
onShow() { onShow() {
@@ -85,6 +94,7 @@
} = uni.getStorageSync("weapp_session_userInfo_data"); } = uni.getStorageSync("weapp_session_userInfo_data");
this.addAccount = addAccount; this.addAccount = addAccount;
this.dataCode = dataCode; this.dataCode = dataCode;
console.log(this.menulist)
this.init() this.init()
this.queryHaveDept() this.queryHaveDept()
}, },


+ 1
- 1
pages/index/index.vue View File

@@ -348,10 +348,10 @@
methods: { methods: {
//获取权限 //获取权限
getMenu(){ getMenu(){
console.log("11111")
this.$u.get("/user/getMenu").then(data => { this.$u.get("/user/getMenu").then(data => {
uni.setStorageSync("weapp_session_Menu_data", data) uni.setStorageSync("weapp_session_Menu_data", data)
this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); this.Menulist = uni.getStorageSync('weapp_session_Menu_data');
console.log(this.Menulist, 'adasdasds123')
}) })
}, },
//自定义时间 //自定义时间


Loading…
Cancel
Save