mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-13 17:24:44 +08:00
fix: 容器日志切割样式修改 (#1303)
This commit is contained in:
parent
de7ef19034
commit
1184ae2b52
@ -103,7 +103,7 @@
|
||||
<el-form-item :label="$t('container.cutLog')" prop="hasLogOption">
|
||||
<el-switch v-model="form.logOptionShow" @change="handleLogOption"></el-switch>
|
||||
<span class="input-help"></span>
|
||||
<div v-if="form.logOptionShow">
|
||||
<div v-if="logOptionShow">
|
||||
<el-tag>{{ $t('container.maxSize') }}: {{ form.logMaxSize }}</el-tag>
|
||||
<el-tag style="margin-left: 5px">
|
||||
{{ $t('container.maxFile') }}: {{ form.logMaxFile }}
|
||||
@ -251,6 +251,7 @@ const registriesRef = ref();
|
||||
const confirmDialogRefLive = ref();
|
||||
const confirmDialogRefCgroup = ref();
|
||||
const confirmDialogRefIptable = ref();
|
||||
const logOptionShow = ref();
|
||||
|
||||
const form = reactive({
|
||||
isSwarm: false,
|
||||
@ -437,10 +438,12 @@ const search = async () => {
|
||||
form.registries = res.data.insecureRegistries ? res.data.insecureRegistries.join('\n') : '';
|
||||
if (res.data.logMaxFile || res.data.logMaxSize) {
|
||||
form.logOptionShow = true;
|
||||
logOptionShow.value = true;
|
||||
form.logMaxFile = Number(res.data.logMaxFile);
|
||||
form.logMaxSize = res.data.logMaxSize;
|
||||
} else {
|
||||
form.logOptionShow = false;
|
||||
logOptionShow.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -26,10 +26,10 @@
|
||||
<el-input v-model.number="form.logMaxSize">
|
||||
<template #append>
|
||||
<el-select v-model="form.sizeUnit" style="width: 70px">
|
||||
<el-option label="byte" value="b"></el-option>
|
||||
<el-option label="kb" value="k"></el-option>
|
||||
<el-option label="mb" value="m"></el-option>
|
||||
<el-option label="gb" value="g"></el-option>
|
||||
<el-option label="Byte" value="b"></el-option>
|
||||
<el-option label="KB" value="k"></el-option>
|
||||
<el-option label="MB" value="m"></el-option>
|
||||
<el-option label="GB" value="g"></el-option>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-input>
|
||||
|
Loading…
x
Reference in New Issue
Block a user