"frontend/vscode:/vscode.git/clone" did not exist on "ef22d6f628ac3d00a2e31df5bc164bd5271d0593"
Commit 8c993dfd authored by IanShaw027's avatar IanShaw027
Browse files

refactor(frontend): 将账号显示替换为用户显示

- 在错误日志表格中将账号列替换为用户列
- 在错误详情模态框中将账号信息替换为用户信息
- 显示用户邮箱而不是账号名称
- 上游错误的账号信息保留在上游错误上下文中
parent 2a6fb1e4
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
</div> </div>
<div class="rounded-xl bg-gray-50 p-4 dark:bg-dark-900"> <div class="rounded-xl bg-gray-50 p-4 dark:bg-dark-900">
<div class="text-xs font-bold uppercase tracking-wider text-gray-400">{{ t('admin.ops.errorDetail.account') }}</div> <div class="text-xs font-bold uppercase tracking-wider text-gray-400">{{ t('admin.ops.errorDetail.user') }}</div>
<div class="mt-1 text-sm font-medium text-gray-900 dark:text-white"> <div class="mt-1 text-sm font-medium text-gray-900 dark:text-white">
{{ detail.account_name || (detail.account_id != null ? String(detail.account_id) : '') }} {{ detail.user_email || (detail.user_id != null ? String(detail.user_id) : '') }}
</div> </div>
</div> </div>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
{{ t('admin.ops.errorLog.group') }} {{ t('admin.ops.errorLog.group') }}
</th> </th>
<th class="border-b border-gray-200 px-4 py-2.5 text-left text-[11px] font-bold uppercase tracking-wider text-gray-500 dark:border-dark-700 dark:text-dark-400"> <th class="border-b border-gray-200 px-4 py-2.5 text-left text-[11px] font-bold uppercase tracking-wider text-gray-500 dark:border-dark-700 dark:text-dark-400">
{{ t('admin.ops.errorLog.account') }} {{ t('admin.ops.errorLog.user') }}
</th> </th>
<th class="border-b border-gray-200 px-4 py-2.5 text-left text-[11px] font-bold uppercase tracking-wider text-gray-500 dark:border-dark-700 dark:text-dark-400"> <th class="border-b border-gray-200 px-4 py-2.5 text-left text-[11px] font-bold uppercase tracking-wider text-gray-500 dark:border-dark-700 dark:text-dark-400">
{{ t('admin.ops.errorLog.status') }} {{ t('admin.ops.errorLog.status') }}
...@@ -101,11 +101,10 @@ ...@@ -101,11 +101,10 @@
<span v-else class="text-xs text-gray-400">-</span> <span v-else class="text-xs text-gray-400">-</span>
</td> </td>
<!-- Account --> <!-- User -->\n <td class="px-4 py-2">
<td class="px-4 py-2"> <el-tooltip v-if="log.user_id" :content="t('admin.ops.errorLog.userId') + ' ' + log.user_id" placement="top" :show-after="500">
<el-tooltip v-if="log.account_id" :content="t('admin.ops.errorLog.id') + ' ' + log.account_id" placement="top" :show-after="500">
<span class="max-w-[100px] truncate text-xs font-medium text-gray-900 dark:text-gray-200"> <span class="max-w-[100px] truncate text-xs font-medium text-gray-900 dark:text-gray-200">
{{ log.account_name || '-' }} {{ log.user_email || '-' }}
</span> </span>
</el-tooltip> </el-tooltip>
<span v-else class="text-xs text-gray-400">-</span> <span v-else class="text-xs text-gray-400">-</span>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment