fix: 管理后台空值修复(users无status字段兜底正常/adminlog时间字段timestamp/知识分类中文/额度列表字段全面修正)+ 弹窗移动端宽度自适应

This commit is contained in:
2026-09-13 18:17:43 +08:00
parent 6a3c048072
commit d221a45a5e
5 changed files with 78 additions and 31 deletions
+3 -3
View File
@@ -15,8 +15,8 @@
<el-table-column label="最近登录" width="160">
<template #default="{ row }">{{ fmt(row.lastLoginAt) }}</template>
</el-table-column>
<el-table-column prop="status" label="状态" width="80">
<template #default="{ row }"><el-tag :type="row.status === 'active' ? 'success' : 'info'" size="small">{{ row.status }}</el-tag></template>
<el-table-column label="状态" width="80">
<template #default="{ row }"><el-tag :type="(row.status || 'active') === 'active' ? 'success' : 'info'" size="small">{{ (row.status || 'active') === 'active' ? '正常' : row.status }}</el-tag></template>
</el-table-column>
<el-table-column label="操作" width="110">
<template #default="{ row }">
@@ -25,7 +25,7 @@
</el-table-column>
</el-table>
<el-pagination background layout="total, prev, pager, next" :total="total" :page-size="pageSize" v-model:current-page="page" @current-change="load" style="margin-top: 12px" />
<el-dialog v-model="quotaDlg" title="增加问答额度" width="360px">
<el-dialog v-model="quotaDlg" title="增加问答额度" width="min(360px, 92%)" style="max-width: 360px">
<el-form label-width="90px">
<el-form-item label="用户">{{ quotaUser?.nickName }}</el-form-item>
<el-form-item label="OpenID">{{ (quotaUser?.openid || '').slice(0, 16) }}…</el-form-item>