From e9bf75836bf7d8311ab42a8492d6d14e84763d68 Mon Sep 17 00:00:00 2001 From: zuojianhua Date: Mon, 26 May 2025 13:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E7=BB=B4=E6=95=B0=E6=8D=AE=EF=BC=8Cng?= =?UTF-8?q?inx-log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/operation/logs/types.ts | 10 ++++++++-- src/views/operation/logs/index.vue | 24 +++++++++++++++++------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/src/api/operation/logs/types.ts b/src/api/operation/logs/types.ts index b9021a70..becc2cc8 100644 --- a/src/api/operation/logs/types.ts +++ b/src/api/operation/logs/types.ts @@ -192,9 +192,14 @@ export interface LogsQuery extends PageQuery { userToken?: string; /** - * + * 起始时间 */ - createdAt?: string; + beginTime?: string; + + /** + * 终止时间 + */ + endTime?: string; /** * 手机号 @@ -228,6 +233,7 @@ export interface LogsQuery extends PageQuery { /** * 日期范围参数 + * @deprecated 请使用 beginTime 和 endTime */ params?: any; } diff --git a/src/views/operation/logs/index.vue b/src/views/operation/logs/index.vue index 118f86b2..ad940212 100644 --- a/src/views/operation/logs/index.vue +++ b/src/views/operation/logs/index.vue @@ -13,12 +13,23 @@ - + + + + + + + @@ -37,9 +48,6 @@ - - - 搜索 重置 @@ -216,7 +224,9 @@ const data = reactive>({ userAgent: undefined, requestParams: undefined, userToken: undefined, - createdAt: undefined, + // createdAt: undefined, // 移除此行 + beginTime: undefined, // 添加起始时间 + endTime: undefined, // 添加终止时间 mobile: undefined, userId: undefined, deviceId: undefined,