Newer
Older
smart-metering-front / src / router / modules / financial.ts
dutingting on 3 Apr 2023 1 KB 菜单配置
// 财务管理
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')

const routes: Route.recordRaw[] = [
  {
    path: '/contractManagement',
    component: Layout,
    redirect: 'contractManagement/list',
    name: 'ContractManagement',
    meta: {
      title: '合同管理',
      icon: 'ep:key',
      auth: '/finance/contractManagement',
    },
    children: [
      {
        path: 'list',
        name: 'contractManagementList',
        component: () => import('@/views/finance/businessSettlement/list.vue'),
        meta: {
          title: '收入合同管理',
          icon: 'ep:key',
          auth: '/finance/contractManagement/income',
        },
      },
    ],
  },
  {
    path: '/businessSettlement',
    component: Layout,
    redirect: 'businessSettlement/list',
    name: 'BusinessSettlement',
    meta: {
      title: '业务结算',
      icon: 'ep:key',
      auth: '/finance/businessSettlement',
    },
    children: [
      {
        path: 'list',
        name: 'businessSettlementList',
        component: () => import('@/views/finance/businessSettlement/list.vue'),
        meta: {
          title: '业务结算',
          icon: 'ep:key',
          auth: '/finance/businessSettlement/list',
        },
      },
    ],
  },
]

export default routes