From 1b2c3c455e3130b147972e9dacab3c46dc42ca93 Mon Sep 17 00:00:00 2001 From: wang_fan_w <2547096351@qq.com> Date: Tue, 4 Jun 2024 00:13:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=99=AE=E9=80=9A=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/modules/enUS.ts | 6 +- src/lang/modules/zhCN.ts | 10 +- src/router/route.ts | 36 ++-- .../form-component/form-component.vue | 9 - .../common-form/common-form.vue | 188 ++++++++++++++++++ .../dynamic-form/dynamic-form.vue | 0 .../common-table/common-table.vue | 0 .../custom-table/custom-table.vue | 10 +- 8 files changed, 218 insertions(+), 41 deletions(-) delete mode 100644 src/views/common-components/form-component/form-component.vue create mode 100644 src/views/form-management/common-form/common-form.vue rename src/views/{common-components => form-management}/dynamic-form/dynamic-form.vue (100%) rename src/views/{basic-table => table-management}/common-table/common-table.vue (100%) rename src/views/{basic-table => table-management}/custom-table/custom-table.vue (95%) diff --git a/src/lang/modules/enUS.ts b/src/lang/modules/enUS.ts index c5f5f8f..bd40c6e 100644 --- a/src/lang/modules/enUS.ts +++ b/src/lang/modules/enUS.ts @@ -2,11 +2,11 @@ export default { language: { ["login"]: "login", ["home"]: "home", - ["basic-table"]: "basic table", + ["table-management"]: "table management", ["common-table"]: "common table", ["custom-table"]: "custom table", - ["common-components"]: "common components", - ["form-component"]: "form components", + ["form-management"]: "form management", + ["common-form"]: "common form", ["dynamic-form"]: "dynamic form", ["multilevel-menu"]: "multilevel menu", ["second-menu-1"]: "second-menu-1", diff --git a/src/lang/modules/zhCN.ts b/src/lang/modules/zhCN.ts index bc53200..1bed652 100644 --- a/src/lang/modules/zhCN.ts +++ b/src/lang/modules/zhCN.ts @@ -2,11 +2,11 @@ export default { language: { ["login"]: "登录", ["home"]: "首页", - ["basic-table"]: "表格 Table", - ["common-table"]: "普通表格", - ["custom-table"]: "自定义表格", - ["common-components"]: "常用组件", - ["form-component"]: "表单组件", + ["table-management"]: "列表管理", + ["common-table"]: "普通列表", + ["custom-table"]: "自定义列表", + ["form-management"]: "表单管理", + ["common-form"]: "普通表单", ["dynamic-form"]: "动态表单", ["multilevel-menu"]: "多级菜单", ["second-menu-1"]: "二级菜单-1", diff --git a/src/router/route.ts b/src/router/route.ts index 9316918..d6fb1fa 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -66,11 +66,11 @@ export const dynamicRoutes: RouteRecordRaw[] = [ } }, { - path: "/basic-table", - name: "basic-table", - redirect: "/basic-table/common-table", + path: "/table-management", + name: "table-management", + redirect: "/table-management/common-table", meta: { - title: "basic-table", + title: "table-management", link: "", hide: false, keepAlive: true, @@ -81,9 +81,9 @@ export const dynamicRoutes: RouteRecordRaw[] = [ }, children: [ { - path: "/basic-table/common-table", + path: "/table-management/common-table", name: "common-table", - component: () => import("@/views/basic-table/common-table/common-table.vue"), + component: () => import("@/views/table-management/common-table/common-table.vue"), meta: { title: "common-table", link: "", @@ -96,9 +96,9 @@ export const dynamicRoutes: RouteRecordRaw[] = [ } }, { - path: "/basic-table/custom-table", + path: "/table-management/custom-table", name: "custom-table", - component: () => import("@/views/basic-table/custom-table/custom-table.vue"), + component: () => import("@/views/table-management/custom-table/custom-table.vue"), meta: { title: "custom-table", link: "", @@ -113,11 +113,11 @@ export const dynamicRoutes: RouteRecordRaw[] = [ ] }, { - path: "/common-components", - name: "common-components", - redirect: "/common-components/form-component", + path: "/form-management", + name: "form-management", + redirect: "/form-management/common-form", meta: { - title: "common-components", + title: "form-management", link: "", hide: false, keepAlive: true, @@ -128,11 +128,11 @@ export const dynamicRoutes: RouteRecordRaw[] = [ }, children: [ { - path: "/common-components/form-component", - name: "form-component", - component: () => import("@/views/common-components/form-component/form-component.vue"), + path: "/form-management/common-form", + name: "common-form", + component: () => import("@/views/form-management/common-form/common-form.vue"), meta: { - title: "form-component", + title: "common-form", link: "", hide: false, keepAlive: true, @@ -143,9 +143,9 @@ export const dynamicRoutes: RouteRecordRaw[] = [ } }, { - path: "/common-components/dynamic-form", + path: "/form-management/dynamic-form", name: "dynamic-form", - component: () => import("@/views/common-components/dynamic-form/dynamic-form.vue"), + component: () => import("@/views/form-management/dynamic-form/dynamic-form.vue"), meta: { title: "dynamic-form", link: "", diff --git a/src/views/common-components/form-component/form-component.vue b/src/views/common-components/form-component/form-component.vue deleted file mode 100644 index 0209cce..0000000 --- a/src/views/common-components/form-component/form-component.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/src/views/form-management/common-form/common-form.vue b/src/views/form-management/common-form/common-form.vue new file mode 100644 index 0000000..bc7bc36 --- /dev/null +++ b/src/views/form-management/common-form/common-form.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/src/views/common-components/dynamic-form/dynamic-form.vue b/src/views/form-management/dynamic-form/dynamic-form.vue similarity index 100% rename from src/views/common-components/dynamic-form/dynamic-form.vue rename to src/views/form-management/dynamic-form/dynamic-form.vue diff --git a/src/views/basic-table/common-table/common-table.vue b/src/views/table-management/common-table/common-table.vue similarity index 100% rename from src/views/basic-table/common-table/common-table.vue rename to src/views/table-management/common-table/common-table.vue diff --git a/src/views/basic-table/custom-table/custom-table.vue b/src/views/table-management/custom-table/custom-table.vue similarity index 95% rename from src/views/basic-table/custom-table/custom-table.vue rename to src/views/table-management/custom-table/custom-table.vue index 2b39e8f..f648912 100644 --- a/src/views/basic-table/custom-table/custom-table.vue +++ b/src/views/table-management/custom-table/custom-table.vue @@ -140,12 +140,11 @@ @page-change="pageChange" @page-size-change="pageSizeChange" > - -