菜单调整

This commit is contained in:
joylink_fanyuhong 2024-11-14 15:59:51 +08:00
parent 99b7cba025
commit debaf97510
1 changed files with 26 additions and 6 deletions

View File

@ -45,12 +45,6 @@ import { reactive } from 'vue';
const userStore = useUserStore(); const userStore = useUserStore();
const list = reactive([ const list = reactive([
{
show: true,
path: getMonitorPath(userStore.roles).monitorPath,
label: '监控',
icon: 'computer',
},
{ {
show: userStore.defaultRole == 'ADMIN', show: userStore.defaultRole == 'ADMIN',
path: '', path: '',
@ -106,6 +100,7 @@ const list = reactive([
icon: 'manage_accounts', icon: 'manage_accounts',
}, },
{ {
show: userStore.defaultRole == 'ADMIN',
path: '/sysManage/role', path: '/sysManage/role',
label: '权限管理', label: '权限管理',
icon: 'nature_people', icon: 'nature_people',
@ -127,5 +122,30 @@ const list = reactive([
}, },
], ],
}, },
{
show: true,
path: getMonitorPath(userStore.roles).monitorPath,
label: '监控管理',
icon: 'computer',
},
{
show: true,
path: '/sysManage/alarmRecord',
label: '报警管理',
icon: 'alarm_on',
},
{
show: true,
path: '',
label: '辅助决策',
icon: 'developer_board',
children: [
{
path: '/dataManage/decisionInfo',
label: '辅助决策方案管理查询',
icon: 'format_align_center',
},
],
},
]); ]);
</script> </script>