| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- import type { RouteRecordRaw } from 'vue-router'
- const Layout = () => import('@/layouts/index.vue')
- const routes: RouteRecordRaw[] = [
- {
- path: '/customer',
- component: Layout,
- redirect: '/customer/ent',
- name: 'customer',
- meta: {
- title: '客户管理',
- icon: 'ep:avatar',
- permit: 'system_customer',
- },
- children: [
- {
- path: 'ent',
- component: () => import('@/views/customer/ent/index.vue'),
- name: 'customer_ent',
- meta: { title: '企业单位' },
- },
- {
- path: 'org',
- component: () => import('@/views/customer/org/index.vue'),
- name: 'customer_org',
- meta: { title: '政府机构' },
- },
- {
- path: 'partner',
- component: () => import('@/views/customer/partner/index.vue'),
- name: 'customer_partner',
- meta: { title: '合作伙伴' },
- },
- ],
- },
- {
- path: '/workflow',
- component: Layout,
- redirect: '/workflow/ins',
- name: 'workflow',
- meta: {
- title: '工作流程',
- icon: 'ep:postcard',
- permit: 'system_workflow',
- },
- children: [
- {
- path: 'def',
- component: () => import('@/views/workflow/def/index.vue'),
- name: 'workflow_def',
- meta: { title: '流程定义' },
- },
- {
- path: 'ins',
- component: () => import('@/views/workflow/ins/index.vue'),
- name: 'workflow_ins',
- meta: { title: '流程实例' },
- },
- {
- path: 'example',
- component: () => import('@/views/workflow/example/index.vue'),
- name: 'workflow_example',
- meta: { title: '流程示例' },
- },
- ],
- },
- {
- path: '/job',
- component: Layout,
- redirect: '/job/index',
- name: 'job',
- meta: {
- title: '系统作业',
- icon: 'ep:alarm-clock',
- permit: 'system_job',
- },
- children: [
- {
- path: 'index',
- component: () => import('@/views/job/job/index.vue'),
- name: 'system_job_def',
- meta: { title: '作业调度' },
- },
- {
- path: 'class',
- component: () => import('@/views/job/job_class/index.vue'),
- name: 'system_job_class',
- meta: { title: '作业类' },
- },
- ],
- },
- ]
- export default routes
|