Files
shz-backend/ruoyi-admin/src/main/resources/backdoor/user-list.html

193 lines
6.3 KiB
HTML
Raw Normal View History

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="robots" content="noindex,nofollow,noarchive">
<link rel="icon" href="data:,">
<title>测试用户登录</title>
<style>
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
margin: 0;
padding: 0;
color: #1f2937;
background: linear-gradient(145deg, #eef4ff 0%, #f7f9fc 48%, #eef7f4 100%);
font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.panel {
display: flex;
width: 100%;
height: 100vh;
min-height: 0;
flex-direction: column;
overflow: hidden;
background: rgba(255, 255, 255, .96);
}
header { flex: none; padding: 16px 28px 14px; border-bottom: 1px solid #edf0f5; }
h1 { margin: 0; color: #111827; font-size: 22px; line-height: 1.3; }
.subtitle { margin: 4px 0 0; color: #6b7280; }
.warning {
margin-top: 10px;
padding: 8px 12px;
border: 1px solid #f5d995;
border-radius: 8px;
color: #7c4a03;
background: #fff9e8;
}
.toolbar {
display: flex;
gap: 10px;
align-items: center;
justify-content: space-between;
flex: none;
padding: 11px 28px;
border-bottom: 1px solid #edf0f5;
}
form { display: flex; flex: 1; max-width: 760px; gap: 9px; }
input {
min-width: 0;
flex: 1;
height: 40px;
padding: 0 13px;
border: 1px solid #cfd6e4;
border-radius: 8px;
outline: none;
font: inherit;
}
input:focus { border-color: #3178c6; box-shadow: 0 0 0 3px rgba(49, 120, 198, .12); }
button {
height: 40px;
padding: 0 20px;
border: 0;
border-radius: 8px;
color: #fff;
background: #2563a9;
cursor: pointer;
font-family: inherit;
font-size: 14px;
font-weight: 600;
line-height: 40px;
}
.count { flex: none; color: #6b7280; }
.table-wrap { min-height: 0; flex: 1; overflow: hidden; }
table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
th, td {
height: 44px;
padding: 7px 16px;
overflow: hidden;
border-bottom: 1px solid #edf0f5;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
}
th { color: #667085; background: #fafbfc; font-size: 13px; font-weight: 600; }
tbody tr:hover { background: #f8fbff; }
td.id { color: #667085; font-variant-numeric: tabular-nums; }
td.action { padding: 6px 12px; overflow: visible; text-align: center; }
td.action a {
display: inline-block;
padding: 6px 11px;
border-radius: 7px;
color: #fff;
background: #1677ff;
text-decoration: none;
font-weight: 600;
}
td.action a:hover { background: #0958d9; }
.kind { color: #344054; }
small { color: #98a2b3; }
.empty { color: #98a2b3; text-align: center; }
footer {
display: flex;
min-height: 50px;
padding: 8px 28px;
align-items: center;
justify-content: space-between;
flex: none;
gap: 16px;
color: #98a2b3;
font-size: 12px;
}
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.page-link {
display: inline-flex;
min-width: 30px;
height: 30px;
padding: 0 8px;
align-items: center;
justify-content: center;
border: 1px solid #d8dee9;
border-radius: 6px;
color: #344054;
background: #fff;
text-decoration: none;
}
.page-link:hover { border-color: #1677ff; color: #1677ff; }
.page-link.current { border-color: #1677ff; color: #fff; background: #1677ff; }
.page-link.disabled { color: #c3c9d3; background: #f7f8fa; }
@media (max-width: 700px) {
header, .toolbar, footer { padding-left: 12px; padding-right: 12px; }
.toolbar { align-items: stretch; flex-direction: column; }
form { max-width: none; }
.count { align-self: flex-end; }
footer { align-items: flex-start; flex-direction: column; gap: 5px; }
.pagination { width: 100%; justify-content: flex-start; }
th, td { padding-left: 8px; padding-right: 8px; }
td.action a { padding-left: 6px; padding-right: 6px; }
}
@media (max-height: 760px) {
header { padding-top: 9px; padding-bottom: 8px; }
.warning { margin-top: 6px; padding-top: 5px; padding-bottom: 5px; }
.toolbar { padding-top: 7px; padding-bottom: 7px; }
footer { min-height: 42px; padding-top: 5px; padding-bottom: 5px; }
}
</style>
</head>
<body>
<main class="panel">
<header>
<h1>选择一个 PC 用户登录</h1>
<p class="subtitle">点击用户后将跳过外部单点登录,并以该用户身份进入石河子智慧就业服务系统。</p>
<div class="warning">仅限测试环境使用。登录行为会写入审计记录,请勿在生产环境开启此入口。</div>
</header>
<section class="toolbar">
<form method="get">
<input name="keyword" value="@@KEYWORD@@" maxlength="50" autocomplete="off"
placeholder="输入用户 ID、账号、姓名或手机号搜索">
<button type="submit">搜索用户</button>
</form>
<div class="count">共 @@COUNT@@ 个有效账号 · 第 @@CURRENT_PAGE@@ / @@TOTAL_PAGES@@ 页</div>
</section>
<div class="table-wrap">
<table>
<colgroup>
<col style="width:8%">
<col style="width:24%">
<col style="width:20%">
<col style="width:15%">
<col style="width:21%">
<col style="width:12%">
</colgroup>
<thead>
<tr>
<th>用户 ID</th>
<th>账号</th>
<th>姓名</th>
<th>手机号</th>
<th>用户来源 / 部门</th>
<th>操作</th>
</tr>
</thead>
<tbody>@@ROWS@@</tbody>
</table>
</div>
<footer>
<span>同一账号只显示最新有效记录;停用、删除和历史重复记录不会显示。最多载入 @@MAX_USERS@@ 个账号。</span>
<nav class="pagination" aria-label="用户列表分页">@@PAGINATION@@</nav>
</footer>
</main>
</body>
</html>