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" > - - + +