diff --git a/src/components/common/Pagination.vue b/src/components/common/Pagination.vue new file mode 100644 index 0000000..3586f9d --- /dev/null +++ b/src/components/common/Pagination.vue @@ -0,0 +1,116 @@ + + + + + diff --git a/src/components/common/Search.vue b/src/components/common/Search.vue new file mode 100644 index 0000000..7f24755 --- /dev/null +++ b/src/components/common/Search.vue @@ -0,0 +1,143 @@ + + + + + \ No newline at end of file diff --git a/src/components/layout/Sidebar.vue b/src/components/layout/Sidebar.vue index 8ef77d9..ca427d4 100644 --- a/src/components/layout/Sidebar.vue +++ b/src/components/layout/Sidebar.vue @@ -97,13 +97,13 @@ const staticMenuList = ref( { id: 3, label: '账户管理', - path: '3', // 对应 el-sub-menu 的 index="3" + path: 'account', // 对应 el-sub-menu 的 index="account" icon: 'UserFilled', // 对应 图标 children: [ { id: 31, label: '客户管理', - path: '3-1', // index="3-1" + path: '/account/client', // index="client" icon: '' }, { diff --git a/src/router/index.ts b/src/router/index.ts index 80ef6de..53d6682 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -78,6 +78,33 @@ const routes = [ } ] }, + //模板配置 + { + path: 'template', + name: 'Template', + meta: { + title: '模板配置', // 左侧菜单显示的标题 + }, + children: [] + }, + //账户管理 + { + path: 'account', + name: 'Account', + meta: { + title: '账户管理', // 左侧菜单显示的标题 + }, + children: [ + { + path: 'client', + name: 'Client', + component: () => import('@/views/account/client/index.vue'), + meta: { + title: '客户账户', // 左侧菜单显示的标题 + } + }, + ] + }, ] }, { diff --git a/src/views/account/client/index.vue b/src/views/account/client/index.vue index 1e3d99d..c419cfe 100644 --- a/src/views/account/client/index.vue +++ b/src/views/account/client/index.vue @@ -1,5 +1,135 @@ + + diff --git a/src/views/account/client/options.ts b/src/views/account/client/options.ts new file mode 100644 index 0000000..c41d99a --- /dev/null +++ b/src/views/account/client/options.ts @@ -0,0 +1,31 @@ +export const clientSearchOptions = [ + { + prop: 'username', + label: '用户名', + type: 'input' as const, + placeholder: '请输入用户名', + minWidth: '120px' + }, + { + prop: 'registerTime', + label: '注册开始时间', // 标签与图片一致 + type: 'date' as const, + dateType: 'daterange' as const, // 时间范围选择器 + startPlaceholder: '开始日期', + endPlaceholder: '结束日期', + valueFormat: 'YYYY-MM-DD', + minWidth: '200px' + }, + { + prop: 'status', + label: '状态', + type: 'select' as const, + placeholder: '选择状态', + width: '120px', + options: [ + { label: '全部', value: '' }, + { label: '开启', value: 1 }, + { label: '关闭', value: 0 } + ], + } +] \ No newline at end of file