operation.ts 2.72 KB
export default {
  path: 'operation',
  name: 'operation',
  component: () => import('@/views/operation/index.vue'),
  meta: {
    requiresAuth: true,
    roles: ['*'],
  },
  children: [
    {
      path: 'banners',
      name: 'operation-banner',
      component: () => import('@/views/operation/banner/index.vue'),
      meta: {
        requiresAuth: true,
        hideInMenu: false,
        isRedirect: true,
        reload: true,
        roles: ['operation-banner'],
        breadcrumb: ['operation', 'operation-banner'],
      },
    },
    {
      path: 'notification',
      name: 'operation-notification',
      component: () => import('@/views/operation/notification/index.vue'),
      meta: {
        requiresAuth: true,
        hideInMenu: false,
        isRedirect: true,
        reload: true,
        roles: ['operation-notification'],
        breadcrumb: ['operation', 'operation-notification'],
      },
    },
    {
      path: 'notification',
      name: 'operation-notification-create',
      component: () => import('@/views/operation/notification/create.vue'),
      meta: {
        title: '创建',
        requiresAuth: true,
        hideInMenu: true,
        reload: true,
        isRedirect: true,
        menuSelectKey: 'operation-notification',
        roles: ['operation-notification-create'],
        breadcrumb: ['operation', 'operation-notification'],
      },
    },
    {
      path: 'notification/:id(\\d+)',
      name: 'operation-notification-show',
      component: () => import('@/views/operation/notification/show.vue'),
      meta: {
        title: '详情',
        requiresAuth: true,
        hideInMenu: true,
        reload: true,
        isRedirect: true,
        menuSelectKey: 'operation-notification',
        roles: ['operation-notification-show'],
        breadcrumb: ['operation', 'operation-notification', 'operation-notification-show'],
      },
    },
    {
      path: 'notification/:id(\\d+)/edit',
      name: 'operation-notification-update',
      component: () => import('@/views/operation/notification/update.vue'),
      meta: {
        title: '详情',
        requiresAuth: true,
        hideInMenu: true,
        reload: true,
        isRedirect: true,
        menuSelectKey: 'operation-notification',
        roles: ['operation-notification-edit'],
        breadcrumb: ['operation', 'operation-notification', 'operation-notification-update'],
      },
    },
    {
      path: 'broker',
      name: 'operation-broker',
      component: () => import('@/views/operation/broker/index.vue'),
      meta: {
        requiresAuth: true,
        hideInMenu: false,
        isRedirect: true,
        reload: true,
        roles: ['operation-broker'],
        breadcrumb: ['operation', 'operation-broker'],
      },
    },
  ],
};