From 7a59999dc79f6ab6fca6ec36239a402040df7fc5 Mon Sep 17 00:00:00 2001
From: xiaoxian521 <1923740402@qq.com>
Date: Wed, 6 Mar 2024 08:49:08 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D`pure-table`=E5=B8=A6?=
=?UTF-8?q?=E7=8A=B6=E6=80=81=E8=A1=A8=E6=A0=BC=E5=9C=A8=E6=B7=B1=E8=89=B2?=
=?UTF-8?q?=E6=95=B4=E4=BD=93=E9=A3=8E=E6=A0=BC=E4=B8=8B=E7=8A=B6=E6=80=81?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=B6=88=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mock/system.ts | 3 +++
src/style/dark.scss | 7 -------
src/views/monitor/logs/login/hook.tsx | 1 +
src/views/monitor/logs/login/index.vue | 13 ++++++++++++-
.../pure-table/high/table-select/multiple/index.vue | 4 ++--
.../pure-table/high/table-select/radio/columns.tsx | 2 +-
.../pure-table/high/table-select/radio/index.vue | 4 ++--
7 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/mock/system.ts b/mock/system.ts
index 4893c8cc9..393235a45 100644
--- a/mock/system.ts
+++ b/mock/system.ts
@@ -1079,6 +1079,9 @@ export default defineFakeRoute([
}
];
list = list.filter(item => item.username.includes(body?.username));
+ list = list.filter(item =>
+ String(item.status).includes(String(body?.status))
+ );
return {
success: true,
data: {
diff --git a/src/style/dark.scss b/src/style/dark.scss
index 5fd29ac05..6d6e12284 100644
--- a/src/style/dark.scss
+++ b/src/style/dark.scss
@@ -96,15 +96,8 @@ html.dark {
color: var(--el-color-primary);
}
- /* element-plus */
- .el-table__cell {
- background: var(--el-bg-color);
- }
-
.el-card {
--el-card-bg-color: var(--el-bg-color);
-
- // border: none !important;
}
.el-backtop {
diff --git a/src/views/monitor/logs/login/hook.tsx b/src/views/monitor/logs/login/hook.tsx
index 093f262a5..88f31bbd6 100644
--- a/src/views/monitor/logs/login/hook.tsx
+++ b/src/views/monitor/logs/login/hook.tsx
@@ -9,6 +9,7 @@ import { type Ref, reactive, ref, onMounted, toRaw } from "vue";
export function useRole(tableRef: Ref) {
const form = reactive({
username: "",
+ status: "",
loginTime: ""
});
const dataList = ref([]);
diff --git a/src/views/monitor/logs/login/index.vue b/src/views/monitor/logs/login/index.vue
index 777600e04..729957026 100644
--- a/src/views/monitor/logs/login/index.vue
+++ b/src/views/monitor/logs/login/index.vue
@@ -46,9 +46,20 @@ const {
v-model="form.username"
placeholder="请输入用户名"
clearable
- class="!w-[180px]"
+ class="!w-[150px]"
/>
+
+
+
+
+
+