218 lines
6.5 KiB
TypeScript
218 lines
6.5 KiB
TypeScript
import {createRouter, createWebHistory} from 'vue-router'
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
redirect: '/home/index',
|
|
},
|
|
{
|
|
path: '/manager/login',
|
|
component: ()=>import('../views/Login.vue'),
|
|
},
|
|
{
|
|
path: '/home',
|
|
component: () => import('../views/Layout.vue'),
|
|
children: [
|
|
{
|
|
path: "",
|
|
redirect: "/home/index",
|
|
},
|
|
{
|
|
path: "index",
|
|
component: () => import('../views/home/index.vue'),
|
|
},
|
|
{
|
|
path: "sectionList",
|
|
component: () => import('../views/home/SectionList.vue'),
|
|
},
|
|
|
|
]
|
|
},
|
|
{
|
|
path: '/dev',
|
|
component: () => import('../views/Layout.vue'),
|
|
children: [
|
|
{
|
|
path: "",
|
|
redirect: "/dev/dev",
|
|
},
|
|
{
|
|
path: "dev",
|
|
component: () => import('../views/dev/dev.vue'),
|
|
}
|
|
|
|
]
|
|
},
|
|
{
|
|
path: '/inventory',
|
|
component: () => import('../views/LayoutInventory.vue'),
|
|
children: [
|
|
{
|
|
path: "",
|
|
redirect: "/inventory/goods",
|
|
},
|
|
{
|
|
path: "goods",
|
|
component: () => import('../views/inventory/goods.vue'),
|
|
},
|
|
{
|
|
path: "inventory",
|
|
component: () => import('../views/inventory/inventory.vue'),
|
|
},
|
|
{
|
|
path: "apply",
|
|
component: () => import('../views/inventory/apply.vue'),
|
|
},
|
|
{
|
|
path: "check",
|
|
component: () => import('../views/inventory/check.vue'),
|
|
},
|
|
{
|
|
path: "supplier",
|
|
component: () => import('../views/inventory/supplier.vue'),
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: '/member',
|
|
component: () => import('../views/Layout.vue'),
|
|
children: [
|
|
{
|
|
path: "",
|
|
redirect: "/member/index",
|
|
},
|
|
{
|
|
path: "index",
|
|
component: () => import('../views/member/index.vue'),
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/registration',
|
|
component: () => import('../views/Layout.vue'),
|
|
children: [
|
|
{
|
|
path: "",
|
|
redirect: "/registration/index",
|
|
},
|
|
{
|
|
path: "index",
|
|
component: () => import('../views/registration/index.vue'),
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/outpatient',
|
|
component: () => import('../views/Layout.vue'),
|
|
children: [
|
|
{
|
|
path: "",
|
|
redirect: "/outpatient/index",
|
|
},
|
|
{
|
|
path: "index",
|
|
component: () => import('../views/outpatient/index.vue'),
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/charge',
|
|
component: () => import('../views/Layout.vue'),
|
|
children: [
|
|
{
|
|
path: "",
|
|
redirect: "/charge/index",
|
|
},
|
|
{
|
|
path: "index",
|
|
component: () => import('../views/charge/index.vue'),
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/social',
|
|
component: () => import('../views/LayoutSocial.vue'),
|
|
children: [
|
|
{
|
|
path: "",
|
|
redirect: "/social/directory",
|
|
},
|
|
{
|
|
path: "directory",
|
|
component: () => import('@/views/social/directory.vue'),
|
|
},
|
|
{
|
|
path: "update",
|
|
component: () => import('@/views/social/update.vue'),
|
|
},
|
|
{
|
|
path: "inventoryUp",
|
|
component: () => import('@/views/social/inventoryUp.vue'),
|
|
},
|
|
{
|
|
path: "costRecord",
|
|
component: () => import('@/views/social/costRecord.vue'),
|
|
},
|
|
{
|
|
path: "accountRecord",
|
|
component: () => import('@/views/social/accountRecords.vue'),
|
|
},
|
|
|
|
]
|
|
},
|
|
{
|
|
path: '/statistics',
|
|
component: () => import('../views/Layout.vue'),
|
|
children: [
|
|
{
|
|
path: "",
|
|
redirect: "/statistics/index",
|
|
},
|
|
{
|
|
path: "index",
|
|
component: () => import('../views/statistics/overView.vue'),
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/settings',
|
|
component: () => import('../views/LayoutSetting.vue'),
|
|
children: [
|
|
{
|
|
path: "",
|
|
redirect: "/settings/index",
|
|
},
|
|
{
|
|
path: "index",
|
|
component: () => import('../views/settings/index.vue'),
|
|
},
|
|
{
|
|
path: "section",
|
|
component: () => import('../views/settings/section.vue'),
|
|
},
|
|
{
|
|
path: "member",
|
|
component: () => import('../views/settings/member.vue'),
|
|
},
|
|
{
|
|
path: "item",
|
|
component: () => import('../views/settings/item.vue'),
|
|
},
|
|
{
|
|
path: "print",
|
|
component: () => import('../views/settings/print.vue'),
|
|
},
|
|
{
|
|
path: "log",
|
|
component: () => import('../views/settings/log.vue'),
|
|
},
|
|
]
|
|
},
|
|
|
|
],
|
|
})
|
|
|
|
export default router
|