mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 13:04:57 +08:00
140 lines
4.0 KiB
TypeScript
140 lines
4.0 KiB
TypeScript
![]() |
import type { MenuListItem } from '@/utils/public-interface'
|
||
|
|
||
|
export const getMenuData = () => {
|
||
|
const menu: Array<MenuListItem> = []
|
||
|
let sum = 10
|
||
|
const btn = (name: string) => {
|
||
|
sum += 1
|
||
|
return {
|
||
|
id: sum,
|
||
|
menuName: name,
|
||
|
order: 1,
|
||
|
icon: '',
|
||
|
route: '',
|
||
|
type: '按钮',
|
||
|
} as MenuListItem
|
||
|
}
|
||
|
menu.push({
|
||
|
id: '1',
|
||
|
menuName: '首页',
|
||
|
order: 1,
|
||
|
icon: 'icon-shouye',
|
||
|
route: '/medical/home',
|
||
|
type: '菜单',
|
||
|
})
|
||
|
menu.push({
|
||
|
id: '2',
|
||
|
menuName: '权限管理',
|
||
|
order: 1,
|
||
|
icon: 'icon-users',
|
||
|
route: '/permissions-manage',
|
||
|
type: '菜单',
|
||
|
children: [
|
||
|
{
|
||
|
id: '2-1',
|
||
|
menuName: '医生管理',
|
||
|
order: 1,
|
||
|
icon: '',
|
||
|
route: '/permissions-manage/doctor-manage',
|
||
|
type: '菜单',
|
||
|
children: [btn('新增'), btn('导入'), btn('删除'), btn('导出'), btn('密码'), btn('修改')]
|
||
|
}, {
|
||
|
id: '2-2',
|
||
|
menuName: '角色管理',
|
||
|
order: 1,
|
||
|
icon: '',
|
||
|
route: '/permissions-manage/role-manage',
|
||
|
type: '菜单',
|
||
|
children: [btn('新增'), btn('导入'), btn('删除'), btn('导出'), btn('授权'), btn('修改')]
|
||
|
}, {
|
||
|
id: '2-3',
|
||
|
menuName: '菜单管理',
|
||
|
order: 1,
|
||
|
icon: '',
|
||
|
route: '/permissions-manage/menu-manage',
|
||
|
type: '菜单',
|
||
|
children: [btn('新增'), btn('展开/折叠'), btn('删除'), btn('修改')]
|
||
|
}
|
||
|
]
|
||
|
})
|
||
|
menu.push({
|
||
|
id: '3',
|
||
|
menuName: '患者管理',
|
||
|
order: 1,
|
||
|
icon: 'icon-renyuanguanli',
|
||
|
route: '/patients-manage',
|
||
|
type: '菜单',
|
||
|
children: [
|
||
|
{
|
||
|
id: '3-1',
|
||
|
menuName: '患者管理',
|
||
|
order: 1,
|
||
|
icon: '',
|
||
|
route: '/patients-manage/patients-manage',
|
||
|
type: '菜单',
|
||
|
children: [btn('新增'), btn('导入'), btn('删除'), btn('导出')]
|
||
|
},{
|
||
|
id: '3-2',
|
||
|
menuName: '手术信息',
|
||
|
order: 1,
|
||
|
icon: '',
|
||
|
route: '/patients-manage/surgery-info',
|
||
|
type: '菜单',
|
||
|
children: [btn('导出')]
|
||
|
}
|
||
|
]
|
||
|
})
|
||
|
menu.push({
|
||
|
id: '4',
|
||
|
menuName: '远程管理',
|
||
|
order: 1,
|
||
|
icon: 'icon-anquanbaozhang',
|
||
|
route: '/remote-manage',
|
||
|
type: '菜单',
|
||
|
children: [
|
||
|
{
|
||
|
id: '4-1',
|
||
|
menuName: '远程管理',
|
||
|
order: 1,
|
||
|
icon: '',
|
||
|
route: '/remote-manage/remote-manage',
|
||
|
type: '菜单',
|
||
|
},{
|
||
|
id: '4-2',
|
||
|
menuName: '远程控制',
|
||
|
order: 1,
|
||
|
icon: '',
|
||
|
route: '/patients-manage/surgery-info',
|
||
|
type: '菜单',
|
||
|
}
|
||
|
]
|
||
|
})
|
||
|
menu.push({
|
||
|
id: '5',
|
||
|
menuName: '日志管理',
|
||
|
order: 1,
|
||
|
icon: 'icon-setting',
|
||
|
route: '/logs-manage',
|
||
|
type: '菜单',
|
||
|
children: [
|
||
|
{
|
||
|
id: '5-1',
|
||
|
menuName: '消息管理',
|
||
|
order: 1,
|
||
|
icon: '',
|
||
|
route: '/logs-manage/message-manage',
|
||
|
type: '菜单',
|
||
|
children: [btn('新增'), btn('修改'), btn('删除')]
|
||
|
},{
|
||
|
id: '5-2',
|
||
|
menuName: '日志管理',
|
||
|
order: 1,
|
||
|
icon: '',
|
||
|
route: '/logs-manage/logs-manage',
|
||
|
type: '菜单',
|
||
|
children: [btn('删除'), btn('导出'), btn('详情')]
|
||
|
}
|
||
|
]
|
||
|
})
|
||
|
return menu
|
||
|
}
|