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
0f033930
Unverified
Commit
0f033930
authored
Mar 24, 2026
by
Wesley Liddick
Committed by
GitHub
Mar 24, 2026
Browse files
Merge pull request #1234 from Zqysl/qingyu/fix-ops-runtime-log-controls-layout
fix(ops): prevent runtime log controls UI overflow
parents
4b1ffc23
0b3928c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/admin/ops/components/OpsSystemLogTable.vue
View file @
0f033930
...
...
@@ -344,7 +344,7 @@ onMounted(async () => {
<div
class=
"text-xs font-semibold text-gray-700 dark:text-gray-200"
>
运行时日志配置(实时生效)
</div>
<span
v-if=
"runtimeLoading"
class=
"text-xs text-gray-500"
>
加载中...
</span>
</div>
<div
class=
"grid grid-cols-1 gap-3 md:grid-cols-6"
>
<div
class=
"grid grid-cols-1 gap-3 md:grid-cols-
2 xl:grid-cols-
6"
>
<label
class=
"text-xs text-gray-600 dark:text-gray-300"
>
级别
<select
v-model=
"runtimeConfig.level"
class=
"input mt-1"
>
...
...
@@ -374,21 +374,27 @@ onMounted(async () => {
保留天数
<input
v-model.number=
"runtimeConfig.retention_days"
type=
"number"
min=
"1"
max=
"3650"
class=
"input mt-1"
/>
</label>
<div
class=
"flex items-end gap-2"
>
<label
class=
"inline-flex items-center gap-2 text-xs text-gray-600 dark:text-gray-300"
>
<input
v-model=
"runtimeConfig.caller"
type=
"checkbox"
/>
caller
</label>
<label
class=
"inline-flex items-center gap-2 text-xs text-gray-600 dark:text-gray-300"
>
<input
v-model=
"runtimeConfig.enable_sampling"
type=
"checkbox"
/>
sampling
</label>
<button
type=
"button"
class=
"btn btn-primary btn-sm"
:disabled=
"runtimeSaving"
@
click=
"saveRuntimeConfig"
>
{{
runtimeSaving
?
'
保存中...
'
:
'
保存并生效
'
}}
</button>
<button
type=
"button"
class=
"btn btn-secondary btn-sm"
:disabled=
"runtimeSaving"
@
click=
"resetRuntimeConfig"
>
回滚默认值
</button>
<div
class=
"md:col-span-2 xl:col-span-6"
>
<div
class=
"grid gap-3 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-end"
>
<div
class=
"flex flex-wrap items-center gap-x-4 gap-y-2"
>
<label
class=
"inline-flex items-center gap-2 text-xs text-gray-600 dark:text-gray-300"
>
<input
v-model=
"runtimeConfig.caller"
type=
"checkbox"
/>
caller
</label>
<label
class=
"inline-flex items-center gap-2 text-xs text-gray-600 dark:text-gray-300"
>
<input
v-model=
"runtimeConfig.enable_sampling"
type=
"checkbox"
/>
sampling
</label>
</div>
<div
class=
"flex flex-wrap items-center gap-2 lg:justify-end"
>
<button
type=
"button"
class=
"btn btn-primary btn-sm"
:disabled=
"runtimeSaving"
@
click=
"saveRuntimeConfig"
>
{{
runtimeSaving
?
'
保存中...
'
:
'
保存并生效
'
}}
</button>
<button
type=
"button"
class=
"btn btn-secondary btn-sm"
:disabled=
"runtimeSaving"
@
click=
"resetRuntimeConfig"
>
回滚默认值
</button>
</div>
</div>
</div>
</div>
<p
v-if=
"health.last_error"
class=
"mt-2 text-xs text-red-600 dark:text-red-400"
>
最近写入错误:
{{
health
.
last_error
}}
</p>
...
...
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