diff --git a/src/hooks/event/useEventBus.js b/src/hooks/event/useEventBus.js index 0f7f146..73dd678 100644 --- a/src/hooks/event/useEventBus.js +++ b/src/hooks/event/useEventBus.js @@ -4,6 +4,7 @@ const bus = new mitt(); export default function () { return { bus, - FLOW_PROCESSED: 'flow_processed' + FLOW_PROCESSED: 'flow_processed', + FORM_LIST_MODIFIED: 'form_list_modified' }; } diff --git a/src/router/routes/basic.ts b/src/router/routes/basic.ts index 2f1f771..e40e01c 100644 --- a/src/router/routes/basic.ts +++ b/src/router/routes/basic.ts @@ -184,4 +184,37 @@ export const FLOW_ROUTE: AppRouteRecordRaw[] = [{ } } ] +}, { + path: '/form/:module/:id', + name: 'SimpleForm', + meta: { + title: '表单' + }, + component: LAYOUT, + children: [ + { + path: 'createForm', + name: 'createForm', + component: () => import('/@/views/secondDev/formCreatePage.vue'), + meta: { + title: '新建表单' + } + }, + { + path: 'updateForm', + name: 'updateForm', + component: () => import('/@/views/secondDev/formCreatePage.vue'), + meta: { + title: '更新表单' + } + }, + { + path: 'viewForm', + name: 'viewForm', + component: () => import('/@/views/secondDev/formCreatePage.vue'), + meta: { + title: '查看表单' + } + } + ] }]; diff --git a/src/views/secondDev/formCreatePage.vue b/src/views/secondDev/formCreatePage.vue new file mode 100644 index 0000000..8d6c294 --- /dev/null +++ b/src/views/secondDev/formCreatePage.vue @@ -0,0 +1,141 @@ + + + + +