v1.2.34:后台用户管理表格四列合并为两列——「学工号」「真实姓名」合并为「学工号/姓名」列(主行学工号 font-mono、副行姓名小灰字),「学校」「设备码」合并为「学校/设备码」列(主行学校名、副行脱敏设备码 mono 小字保留复制按钮),均采用与「最后登录」列一致的两行主副格式,列宽调整为 10%/12%,腾出的横向空间还给其余列;顺带提交打卡页收藏本站贴边窄竖条按钮的圆角微调(rounded-l-full 改 rounded-l-md,接近长方形观感)
ci/woodpecker/tag/build Pipeline was successful

This commit is contained in:
becomer
2026-09-12 13:16:05 +08:00
parent 0f49e7b1da
commit c5fe95b3ec
2 changed files with 14 additions and 14 deletions
+13 -13
View File
@@ -456,10 +456,8 @@ function todayStatusLabel(s: string) {
<table class="w-full text-sm table-fixed min-w-[1360px]"> <table class="w-full text-sm table-fixed min-w-[1360px]">
<thead> <thead>
<tr class="bg-gray-50 text-left text-xs text-gray-500"> <tr class="bg-gray-50 text-left text-xs text-gray-500">
<th class="px-4 py-3 font-medium w-[8%]">学工号</th> <th class="px-4 py-3 font-medium w-[10%]">学工号/姓名</th>
<th class="px-4 py-3 font-medium w-[6%]">真实姓名</th> <th class="px-4 py-3 font-medium w-[12%]">学校/设备码</th>
<th class="px-4 py-3 font-medium w-[10%]">学校</th>
<th class="px-4 py-3 font-medium w-[10%]">设备码</th>
<th class="px-4 py-3 font-medium w-[8%]">可执行/已执行</th> <th class="px-4 py-3 font-medium w-[8%]">可执行/已执行</th>
<th class="px-4 py-3 font-medium w-[8%]">VIP</th> <th class="px-4 py-3 font-medium w-[8%]">VIP</th>
<th class="px-4 py-3 font-medium w-[8%]">积分/邀请数</th> <th class="px-4 py-3 font-medium w-[8%]">积分/邀请数</th>
@@ -480,22 +478,24 @@ function todayStatusLabel(s: string) {
: 'hover:bg-gray-50/50'" : 'hover:bg-gray-50/50'"
:title="isTodayLogin(user.lastLoginAt) ? '该用户当天已登录' : undefined" :title="isTodayLogin(user.lastLoginAt) ? '该用户当天已登录' : undefined"
> >
<td class="px-4 py-3 truncate font-mono text-xs">{{ user.studentId }}</td> <td class="px-4 py-3">
<td class="px-4 py-3 truncate">{{ user.realName || '--' }}</td> <p class="font-mono text-xs text-gray-700 truncate" :title="user.studentId">{{ user.studentId || '--' }}</p>
<td class="px-4 py-3 truncate text-xs text-gray-600" :title="user.schoolName">{{ user.schoolName || '--' }}</td> <p class="text-[10px] text-gray-400 truncate">{{ user.realName || '--' }}</p>
<td class="px-4 py-3 truncate font-mono text-xs"> </td>
<div class="flex items-center gap-1.5 min-w-0"> <td class="px-4 py-3">
<span v-if="user.mobileCode" class="text-gray-700 truncate" :title="user.mobileCode">{{ maskDeviceCode(user.mobileCode) }}</span> <p class="text-xs text-gray-700 truncate" :title="user.schoolName">{{ user.schoolName || '--' }}</p>
<span v-else class="text-gray-300">未绑定</span> <p class="text-[10px] font-mono text-gray-400 flex items-center gap-1 min-w-0">
<span v-if="user.mobileCode" class="truncate" :title="user.mobileCode">{{ maskDeviceCode(user.mobileCode) }}</span>
<span v-else>未绑定</span>
<button <button
v-if="user.mobileCode" v-if="user.mobileCode"
class="flex-shrink-0 text-gray-400 hover:text-blue-500 transition-colors" class="flex-shrink-0 text-gray-400 hover:text-blue-500 transition-colors"
:title="'复制完整设备码'" :title="'复制完整设备码'"
@click="copyDeviceCode(user.mobileCode)" @click="copyDeviceCode(user.mobileCode)"
> >
<Copy class="w-3.5 h-3.5" /> <Copy class="w-3 h-3" />
</button> </button>
</div> </p>
</td> </td>
<td class="px-4 py-3"> <td class="px-4 py-3">
<span class="font-medium text-gray-900">{{ user.signCount }}</span> <span class="font-medium text-gray-900">{{ user.signCount }}</span>
+1 -1
View File
@@ -1047,7 +1047,7 @@ function getGPSLocation(source: string) {
<!-- 收藏本站:右侧贴边窄竖条(图标在上、文字竖排在下;避开新手引导入口按钮),点击展示添加书签指引 --> <!-- 收藏本站:右侧贴边窄竖条(图标在上、文字竖排在下;避开新手引导入口按钮),点击展示添加书签指引 -->
<button <button
class="fixed right-0 bottom-32 z-40 flex flex-col items-center gap-1.5 rounded-l-full bg-amber-500/95 py-3 px-1.5 text-white text-xs font-medium shadow-lg shadow-amber-500/30 hover:bg-amber-600 active:scale-95 transition-all" class="fixed right-0 bottom-32 z-40 flex flex-col items-center gap-1.5 rounded-l-md bg-amber-500/95 py-3 px-1.5 text-white text-xs font-medium shadow-lg shadow-amber-500/30 hover:bg-amber-600 active:scale-95 transition-all"
@click="openBookmarkDialog" @click="openBookmarkDialog"
> >
<Star class="w-3.5 h-3.5 flex-shrink-0" /> <Star class="w-3.5 h-3.5 flex-shrink-0" />