Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
8c993dfd
Commit
8c993dfd
authored
Jan 14, 2026
by
IanShaw027
Browse files
refactor(frontend): 将账号显示替换为用户显示
- 在错误日志表格中将账号列替换为用户列 - 在错误详情模态框中将账号信息替换为用户信息 - 显示用户邮箱而不是账号名称 - 上游错误的账号信息保留在上游错误上下文中
parent
2a6fb1e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/admin/ops/components/OpsErrorDetailModal.vue
View file @
8c993dfd
...
@@ -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>
...
...
frontend/src/views/admin/ops/components/OpsErrorLogTable.vue
View file @
8c993dfd
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment