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