From db0bfc7fd4b9f52ef3107be08592722988fbd046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Mon, 11 May 2026 16:26:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/user.ts | 2 +- src/components/common/Search.vue | 90 ++++---- src/views/agent/user/options.ts | 4 +- src/views/capital/rechange/index.vue | 4 +- src/views/profile/agent/index.vue | 334 +++++++++++++++++++++------ src/views/profile/agent/options.ts | 2 +- 6 files changed, 308 insertions(+), 128 deletions(-) diff --git a/src/api/modules/user.ts b/src/api/modules/user.ts index 48ad565..af5edde 100644 --- a/src/api/modules/user.ts +++ b/src/api/modules/user.ts @@ -81,7 +81,7 @@ export async function editUserApi(params: { risk_control_id?: string | number; fee_setting_id?: string | number; username?: string; - is_levelup?: number; + is_levelup?: number | null; status?: number; }) { return request.post('/user/editUser', params); diff --git a/src/components/common/Search.vue b/src/components/common/Search.vue index f39d670..f6863ac 100644 --- a/src/components/common/Search.vue +++ b/src/components/common/Search.vue @@ -3,60 +3,38 @@ @@ -137,20 +115,34 @@ const handleBlur = () => { .el-form { display: flex; + flex-wrap: wrap; width: 100%; - - .el-form-item { - flex: 1 1 auto; - } + row-gap: 8px; } :deep(.el-form-item) { margin-bottom: 0; margin-right: 16px; + flex: 1 1 auto; + min-width: 200px; } :deep(.el-button) { margin-left: 8px; + white-space: nowrap; + } + + :deep(.el-form-item:last-child) { + display: flex; + width: fit-content; + flex: 0 0 auto; + flex-wrap: wrap; + gap: 8px; + + .el-form-item__content { + justify-content: flex-start; + row-gap: 4px; + } } } \ No newline at end of file diff --git a/src/views/agent/user/options.ts b/src/views/agent/user/options.ts index a364b8c..f871b6a 100644 --- a/src/views/agent/user/options.ts +++ b/src/views/agent/user/options.ts @@ -3,12 +3,12 @@ export const search = [ { prop: 'accountName', label: '账号名称', type: 'input' as const, placeholder: '请输入账号名称', width: '150px' }, // 开始时间 { - prop: "startTime", label: '注册开始时间', type: 'date' as const, dateType: 'date' as const, // 时间范围选择器 + prop: "startTime", label: '注册开始时间', type: 'date' as const, dateType: 'date' as const,placeholder: '请选择注册开始时间', width: '270px', // 时间范围选择器 valueFormat: 'YYYY-MM-DD', }, // 结束时间 { - prop: "endTime", label: '注册结束时间', type: 'date' as const, dateType: 'date' as const, // 时间范围选择器 + prop: "endTime", label: '注册结束时间', type: 'date' as const, dateType: 'date' as const,placeholder: '请选择注册结束时间', width: '270px', // 时间范围选择器 valueFormat: 'YYYY-MM-DD', }, // 状态 diff --git a/src/views/capital/rechange/index.vue b/src/views/capital/rechange/index.vue index aed5119..c7373e7 100644 --- a/src/views/capital/rechange/index.vue +++ b/src/views/capital/rechange/index.vue @@ -323,8 +323,8 @@ onMounted(() => {