From 4481964182f8f47a1bf5387212d595e9472992a2 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 23 Mar 2023 23:50:14 +0800 Subject: [PATCH] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9AREVIEW=20?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/loginLog/index.ts | 12 +++--------- src/styles/index.scss | 6 ------ .../loginlog/{detail.vue => LoginLogDetail.vue} | 6 +++--- src/views/system/loginlog/index.vue | 15 +++++++-------- 4 files changed, 13 insertions(+), 26 deletions(-) rename src/views/system/loginlog/{detail.vue => LoginLogDetail.vue} (87%) diff --git a/src/api/system/loginLog/index.ts b/src/api/system/loginLog/index.ts index 5b06e753..f275c3e2 100644 --- a/src/api/system/loginLog/index.ts +++ b/src/api/system/loginLog/index.ts @@ -13,18 +13,12 @@ export interface LoginLogVO { createTime: Date } -export interface LoginLogReqVO extends PageParam { - userIp?: string - username?: string - status?: boolean - createTime?: Date[] -} - // 查询登录日志列表 -export const getLoginLogPage = (params: LoginLogReqVO) => { +export const getLoginLogPage = (params: PageParam) => { return request.get({ url: '/system/login-log/page', params }) } + // 导出登录日志 -export const exportLoginLog = (params: LoginLogReqVO) => { +export const exportLoginLog = (params) => { return request.download({ url: '/system/login-log/export', params }) } diff --git a/src/styles/index.scss b/src/styles/index.scss index 02c187a5..39c4c4da 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -26,9 +26,3 @@ border-left-color: var(--el-color-primary); } } - -// 添加表头样式 -.el-table.yudao-table { - --el-table-header-bg-color: #f8f8f9; - --el-table-header-text-color: #606266; -} diff --git a/src/views/system/loginlog/detail.vue b/src/views/system/loginlog/LoginLogDetail.vue similarity index 87% rename from src/views/system/loginlog/detail.vue rename to src/views/system/loginlog/LoginLogDetail.vue index 8372d2e6..c224f147 100644 --- a/src/views/system/loginlog/detail.vue +++ b/src/views/system/loginlog/LoginLogDetail.vue @@ -1,5 +1,5 @@