修改并优化了一些功能及bug
This commit is contained in:
@@ -246,7 +246,8 @@
|
||||
}
|
||||
}
|
||||
};
|
||||
const infoList = ref([
|
||||
// 全部菜单项
|
||||
const allMenuList = [
|
||||
{
|
||||
name: '成员管理',
|
||||
src: '/static/home_icon/chengyuangaunli.png'
|
||||
@@ -263,10 +264,10 @@
|
||||
name: '检查清单',
|
||||
src: '/static/home_icon/jiachaqingdan.png'
|
||||
},
|
||||
{
|
||||
name: '检查记录',
|
||||
src: '/static/home_icon/jianchajilu.png'
|
||||
},
|
||||
// {
|
||||
// name: '检查记录',
|
||||
// src: '/static/home_icon/jianchajilu.png'
|
||||
// },
|
||||
{
|
||||
name: '证件管理',
|
||||
src: '/static/home_icon/zhengjianguanli.png'
|
||||
@@ -279,12 +280,19 @@
|
||||
name: '隐患销号',
|
||||
src: '/static/home_icon/yinhuanxiaohao.png'
|
||||
}
|
||||
// ,
|
||||
// {
|
||||
// name: '设备登记',
|
||||
// src: '/static/home_icon/shebeidengji.png'
|
||||
// }
|
||||
]);
|
||||
];
|
||||
|
||||
// common角色只能看到的菜单名称
|
||||
const commonMenuNames = ['隐患排查', '隐患销号'];
|
||||
|
||||
// 根据角色动态展示菜单
|
||||
const infoList = computed(() => {
|
||||
if (userInfo.role === 'common') {
|
||||
return allMenuList.filter(item => commonMenuNames.includes(item.name));
|
||||
}
|
||||
// admin、manage 及其他角色展示全部菜单
|
||||
return allMenuList;
|
||||
});
|
||||
const ViewDetails = (item) => {
|
||||
uni.navigateTo({
|
||||
url: `/pages/plandetail/plandetail?id=${item.id}`
|
||||
@@ -690,6 +698,8 @@
|
||||
.level-tag {
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 8rpx;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
// 轻微隐患
|
||||
|
||||
Reference in New Issue
Block a user