This commit is contained in:
Fine 2025-05-30 12:44:33 +08:00
parent b011fe3f35
commit 043a49430c
2 changed files with 17 additions and 4 deletions

View File

@ -15,8 +15,13 @@ limitations under the License. -->
<template> <template>
<div class="debugging-config-dump"> <div class="debugging-config-dump">
<div class="config-dump-content"> <div class="config-dump-content">
<div class="mb-10" v-for="(item, index) of Object.keys(settingsStore.debuggingConfig)" :key="`${item}${index}`"> <div
{{ `${item}: ${settingsStore.debuggingConfig[item]}` }} class="mb-10 flex-h"
v-for="(item, index) of Object.keys(settingsStore.debuggingConfig)"
:key="`${item}${index}`"
>
<div class="config-key">{{ item }}: </div>
<div>{{ settingsStore.debuggingConfig[item] }}</div>
</div> </div>
<div v-if="!Object.keys(settingsStore.debuggingConfig).length" class="tips">No Data</div> <div v-if="!Object.keys(settingsStore.debuggingConfig).length" class="tips">No Data</div>
</div> </div>
@ -47,6 +52,10 @@ limitations under the License. -->
color: var(--el-text-color-secondary); color: var(--el-text-color-secondary);
} }
.config-key {
width: 30%;
}
.debugging-config-dump { .debugging-config-dump {
color: var(--sw-setting-color); color: var(--sw-setting-color);
font-size: 13px; font-size: 13px;

View File

@ -20,7 +20,9 @@ limitations under the License. -->
class="mb-5" class="mb-5"
:row-style="{ backgroundColor: 'var(--layout-background)' }" :row-style="{ backgroundColor: 'var(--layout-background)' }"
> >
<el-table-column v-for="item in MetricsTTLRow" :prop="item.value" :label="item.label" :key="item.value" /> <el-table-column v-for="item in MetricsTTLRow" :prop="item.value" :label="item.label" :key="item.value">
<template #default="scope">{{ scope.row[item.value] < 0 ? "N/A" : scope.row[item.value] }}</template>
</el-table-column>
</el-table> </el-table>
<div class="label">{{ t("recordsTTL") }}</div> <div class="label">{{ t("recordsTTL") }}</div>
<el-table <el-table
@ -28,7 +30,9 @@ limitations under the License. -->
class="mb-5" class="mb-5"
:row-style="{ backgroundColor: 'var(--layout-background)' }" :row-style="{ backgroundColor: 'var(--layout-background)' }"
> >
<el-table-column v-for="item in RecordsTTLRow" :prop="item.value" :label="item.label" :key="item.value" /> <el-table-column v-for="item in RecordsTTLRow" :prop="item.value" :label="item.label" :key="item.value">
<template #default="scope">{{ scope.row[item.value] < 0 ? "N/A" : scope.row[item.value] }}</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</template> </template>