You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
168 lines
4.4 KiB
Plaintext
168 lines
4.4 KiB
Plaintext
import { createRouter, createWebHistory } from 'vue-router'
|
|
import LoginView from '../views/Login.vue'
|
|
import IndexView from '../views/Index.vue'
|
|
|
|
import {
|
|
UserOutlined,
|
|
AppstoreOutlined,
|
|
SendOutlined,
|
|
BellOutlined,
|
|
FieldTimeOutlined,
|
|
CheckCircleOutlined,
|
|
EditOutlined,
|
|
SwitcherOutlined,
|
|
SearchOutlined,
|
|
FormOutlined,
|
|
ApiOutlined,
|
|
UnorderedListOutlined
|
|
} from '@ant-design/icons-vue';
|
|
export const menuRoutes = [
|
|
{
|
|
path: '/wf',
|
|
name: 'workflow',
|
|
meta: {
|
|
icon: <AppstoreOutlined />,
|
|
label: '基础功能',
|
|
},
|
|
component: IndexView,
|
|
redirect: '/wf/todo',
|
|
children: [{
|
|
path: 'start',
|
|
name: 'wfStart',
|
|
meta: {
|
|
icon: <SendOutlined />,
|
|
label: '发起',
|
|
},
|
|
component: () => import('@/views/workflow/Start.vue')
|
|
}, {
|
|
path: 'todo',
|
|
name: 'wfTodo',
|
|
meta: {
|
|
icon: <BellOutlined />,
|
|
label: '待办',
|
|
},
|
|
component: () => import('@/views/workflow/TodoList.vue')
|
|
}, {
|
|
path: 'running',
|
|
name: 'wfRunning',
|
|
meta: {
|
|
icon: <FieldTimeOutlined />,
|
|
label: '在途',
|
|
},
|
|
component: () => import('@/views/workflow/Running.vue')
|
|
}, {
|
|
path: 'completed',
|
|
name: 'wfCompleted',
|
|
meta: {
|
|
icon: <CheckCircleOutlined />,
|
|
label: '已完成',
|
|
},
|
|
component: () => import('@/views/workflow/Completed.vue')
|
|
}, {
|
|
path: 'query',
|
|
name: 'wfQuery',
|
|
meta: {
|
|
icon: <SearchOutlined />,
|
|
label: '查询',
|
|
},
|
|
component: () => import('@/views/workflow/IntegratedQuery.vue')
|
|
}, {
|
|
path: 'draft',
|
|
name: 'wfDraft',
|
|
meta: {
|
|
icon: <FormOutlined />,
|
|
label: '草稿',
|
|
},
|
|
component: () => import('@/views/workflow/Draft.vue')
|
|
}, {
|
|
path: 'cc',
|
|
name: 'wfCC',
|
|
meta: {
|
|
icon: <EditOutlined />,
|
|
label: '抄送',
|
|
},
|
|
component: () => import('@/views/workflow/Send.vue')
|
|
}, {
|
|
path: 'batch',
|
|
name: 'wfBatch',
|
|
meta: {
|
|
icon: <SwitcherOutlined />,
|
|
label: '批处理',
|
|
},
|
|
component: () => import('@/views/workflow/Batch.vue')
|
|
}]
|
|
},
|
|
{
|
|
path: '/query',
|
|
name: 'query',
|
|
meta: {
|
|
icon: <SearchOutlined />,
|
|
label: '流程查询',
|
|
},
|
|
component: IndexView,
|
|
redirect: '/query/start',
|
|
children: [
|
|
{
|
|
path: 'start',
|
|
name: 'startQuery',
|
|
meta: {
|
|
icon: <SendOutlined />,
|
|
label: '我发起的',
|
|
},
|
|
component: () => import('@/views/workflow/IntegratedQuery.vue')
|
|
|
|
}, {
|
|
path: 'participation',
|
|
name: 'participationQuery',
|
|
meta: {
|
|
icon: <UserOutlined />,
|
|
label: '我参与的',
|
|
},
|
|
component: () => import('@/views/workflow/IntegratedQuery.vue')
|
|
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/apis',
|
|
name: "Apis",
|
|
meta: {
|
|
icon: <ApiOutlined />,
|
|
label: 'API列表',
|
|
},
|
|
redirect: '/apis/list',
|
|
component: IndexView,
|
|
children: [
|
|
{
|
|
path: 'list',
|
|
name: 'apiList',
|
|
meta: {
|
|
icon: <UnorderedListOutlined />,
|
|
label: '工具包接口',
|
|
},
|
|
component: () => import('@/views/api/List.vue')
|
|
}
|
|
]
|
|
},
|
|
]
|
|
const staticRoutes = [
|
|
{
|
|
path: '/',
|
|
name: 'Index',
|
|
redirect: '/wf/todo'
|
|
},
|
|
{
|
|
path: '/login',
|
|
name: 'login',
|
|
component: LoginView
|
|
},
|
|
|
|
]
|
|
|
|
const routes = [...staticRoutes, ...menuRoutes]
|
|
export const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes
|
|
})
|
|
|