Sfoglia il codice sorgente

提交权限修改

dev
wangshuai 2 anni fa
parent
commit
15af9d846f
2 ha cambiato i file con 12 aggiunte e 2 eliminazioni
  1. +11
    -1
      pages/index/customer.vue
  2. +1
    -1
      pages/index/index.vue

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

@@ -46,7 +46,9 @@
<view class="footer-button" v-if="item.status!=0">
<view class="footer1" @click.stop="addTime(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 class="centerbox" v-if="item.status==0">
@@ -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()
},


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

@@ -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')
})
},
//自定义时间


Caricamento…
Annulla
Salva