From cf66f750505534fa76f94375067613fd2bd63d53 Mon Sep 17 00:00:00 2001 From: gaoyunqi Date: Mon, 11 Mar 2024 14:19:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=99=AE=E9=80=9A=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E7=9A=84=E5=B1=95=E7=A4=BA=E6=94=B9=E5=88=B0tab=E9=A1=B5?= =?UTF-8?q?=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/event/useEventBus.js | 3 +- src/router/routes/basic.ts | 33 ++++++ src/views/secondDev/formCreatePage.vue | 141 +++++++++++++++++++++++++ 3 files changed, 176 insertions(+), 1 deletion(-) create mode 100644 src/views/secondDev/formCreatePage.vue 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 @@ + + + + +