From 1066551fd12a4efad20a4b736279a2b31c983a85 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 2 Dec 2023 19:25:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20operateLog?= =?UTF-8?q?=20=E5=92=8C=20loginLog=20=E5=9C=A8=20IDEA=20=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/loginLog/index.ts | 1 + src/utils/formatTime.ts | 2 +- src/views/system/dict/index.vue | 2 +- src/views/system/errorCode/index.vue | 2 +- src/views/system/loginlog/LoginLogDetail.vue | 2 +- src/views/system/operatelog/OperateLogDetail.vue | 2 +- src/views/system/operatelog/index.vue | 6 +++--- 7 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/api/system/loginLog/index.ts b/src/api/system/loginLog/index.ts index f275c3e2..7296f257 100644 --- a/src/api/system/loginLog/index.ts +++ b/src/api/system/loginLog/index.ts @@ -7,6 +7,7 @@ export interface LoginLogVO { userId: number userType: number username: string + result: number status: number userIp: string userAgent: string diff --git a/src/utils/formatTime.ts b/src/utils/formatTime.ts index e4f82a4a..8b8dd438 100644 --- a/src/utils/formatTime.ts +++ b/src/utils/formatTime.ts @@ -62,7 +62,7 @@ export const defaultShortcuts = [ * @description format 季度 + 星期 + 几周:"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ" * @returns 返回拼接后的时间字符串 */ -export function formatDate(date: dayjs.ConfigType, format?: string): string { +export function formatDate(date: Date, format?: string): string { // 日期不存在,则返回空 if (!date) { return '' diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 03df223e..1523d6f4 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -161,7 +161,7 @@ const queryParams = reactive({ name: '', type: '', status: undefined, - createTime: [undefined, undefined] + createTime: [] }) const queryFormRef = ref() // 搜索的表单 const exportLoading = ref(false) // 导出的加载中 diff --git a/src/views/system/errorCode/index.vue b/src/views/system/errorCode/index.vue index c9538c8c..ef3aa4a6 100644 --- a/src/views/system/errorCode/index.vue +++ b/src/views/system/errorCode/index.vue @@ -14,7 +14,7 @@ { diff --git a/src/views/system/operatelog/OperateLogDetail.vue b/src/views/system/operatelog/OperateLogDetail.vue index 3fc207e3..3aa565d7 100644 --- a/src/views/system/operatelog/OperateLogDetail.vue +++ b/src/views/system/operatelog/OperateLogDetail.vue @@ -65,7 +65,7 @@ defineOptions({ name: 'SystemOperateLogDetail' }) const dialogVisible = ref(false) // 弹窗的是否展示 const detailLoading = ref(false) // 表单的加载中 -const detailData = ref() // 详情数据 +const detailData = ref({} as OperateLogApi.OperateLogVO) // 详情数据 /** 打开弹窗 */ const open = async (data: OperateLogApi.OperateLogVO) => { diff --git a/src/views/system/operatelog/index.vue b/src/views/system/operatelog/index.vue index d6d4fd57..5f8658e2 100644 --- a/src/views/system/operatelog/index.vue +++ b/src/views/system/operatelog/index.vue @@ -37,7 +37,7 @@ > @@ -50,8 +50,8 @@ clearable class="!w-240px" > - - + +