新增根据角色类型判断是否显示AI大屏控制小程序
This commit is contained in:
parent
db89bc4bc5
commit
7042cec438
@ -226,10 +226,10 @@
|
|||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.Area()
|
this.showControllerAllLet();
|
||||||
|
this.Area();
|
||||||
this.initMenu();
|
this.initMenu();
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.emptyText = '暂无可用应用'
|
this.emptyText = '暂无可用应用'
|
||||||
@ -323,6 +323,24 @@
|
|||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
// 根据类型来判断是否显示
|
||||||
|
showControllerAllLet(){
|
||||||
|
let user;
|
||||||
|
if(typeof this.$store.state.app.userInfo == 'string'){
|
||||||
|
user = JSON.parse(this.$store.state.app.userInfo)
|
||||||
|
}else user = JSON.parse(JSON.stringify(this.$store.state.app.userInfo))
|
||||||
|
if(user.show_controller_applet){
|
||||||
|
this.AllMenuList.push({
|
||||||
|
name: '大屏控制',
|
||||||
|
icon: '/static/applet/dp.png',
|
||||||
|
data: {
|
||||||
|
id: '__UNI__83ABA97',
|
||||||
|
url: 'https://ceshi-worker-task.lihaink.cn/uploads/files/20231016/20231016112144fac6d9128.wgt',
|
||||||
|
},
|
||||||
|
type: 4,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
// 初始化菜单
|
// 初始化菜单
|
||||||
initMenu() {
|
initMenu() {
|
||||||
let now = uni.getStorageSync('gatherNowMenuList');
|
let now = uni.getStorageSync('gatherNowMenuList');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user