2024-11-12 15:44:05 +08:00
|
|
|
import { DEFAULT_LAYOUT } from '../base';
|
|
|
|
import { AppRouteRecordRaw } from '../types';
|
|
|
|
|
|
|
|
const NOTIFICATION: AppRouteRecordRaw = {
|
|
|
|
path: '/notification',
|
|
|
|
name: 'notification',
|
|
|
|
component: DEFAULT_LAYOUT,
|
|
|
|
meta: {
|
|
|
|
locale: '通知管理',
|
2025-01-09 15:28:27 +08:00
|
|
|
title: '通知管理',
|
2024-11-12 15:44:05 +08:00
|
|
|
requiresAuth: true,
|
|
|
|
icon: 'icon-message', // 设置图标
|
|
|
|
order: 0, // 排序路由菜单项。如果设置该值,值越高,越靠前
|
2025-01-10 10:40:37 +08:00
|
|
|
permissions: ['message'],
|
2024-11-12 15:44:05 +08:00
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'notice',
|
2025-01-10 10:40:37 +08:00
|
|
|
name: 'Notice',
|
2024-11-12 15:44:05 +08:00
|
|
|
component: () => import('@/views/notification/notice/index.vue'),
|
|
|
|
meta: {
|
2025-01-10 10:40:37 +08:00
|
|
|
locale: '消息管理',
|
|
|
|
title: '消息管理',
|
2024-11-12 15:44:05 +08:00
|
|
|
requiresAuth: true,
|
2025-01-10 10:40:37 +08:00
|
|
|
permissions: ['message:notice'],
|
2024-11-12 15:44:05 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2025-01-10 10:40:37 +08:00
|
|
|
path:'bulletin',
|
|
|
|
name:'Bulletin',
|
|
|
|
component: () => import('@/views/notification/bulletin/index.vue'),
|
|
|
|
meta:{
|
2025-01-09 15:28:27 +08:00
|
|
|
title: '公告管理',
|
2024-11-12 15:44:05 +08:00
|
|
|
requiresAuth: true,
|
2025-01-10 10:40:37 +08:00
|
|
|
permissions: ['message:bulletin'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'bulletinDetail/:id',
|
|
|
|
name: 'BulletinDetail',
|
|
|
|
component: () => import('@/views/notification/bulletin/components/detail.vue'),
|
|
|
|
meta: {
|
|
|
|
title: '公告详情',
|
|
|
|
requiresAuth: true,
|
|
|
|
showInMenu: false,
|
2025-01-29 13:33:40 +08:00
|
|
|
permissions: ['message:bulletin'],
|
2024-12-24 17:13:37 +08:00
|
|
|
},
|
|
|
|
},
|
2024-11-12 15:44:05 +08:00
|
|
|
],
|
|
|
|
};
|
|
|
|
export default NOTIFICATION;
|