mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
perf: 站点监控增加是否自动同步IP开关
This commit is contained in:
@@ -281,6 +281,7 @@ export default {
|
||||
lastCheckTime: "Last Check Time",
|
||||
disabled: "Enable/Disable",
|
||||
ipCheck: "Enable IP Check",
|
||||
ipSyncAuto: "Enable IP Sync Auto",
|
||||
selectRequired: "Please select",
|
||||
ipCheckConfirm: "Are you sure to {status} IP check?",
|
||||
ipCount: "IP Count",
|
||||
|
||||
@@ -285,6 +285,7 @@ export default {
|
||||
lastCheckTime: "上次检查时间",
|
||||
disabled: "禁用启用",
|
||||
ipCheck: "开启IP检查",
|
||||
ipSyncAuto: "自动同步IP",
|
||||
selectRequired: "请选择",
|
||||
ipCheckConfirm: "确定{status}IP检查?",
|
||||
ipCount: "IP数量",
|
||||
|
||||
@@ -651,14 +651,20 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||
},
|
||||
},
|
||||
} as ColumnCompositionProps,
|
||||
ipCount: {
|
||||
title: t("certd.monitor.ipCount"),
|
||||
search: {
|
||||
show: false,
|
||||
},
|
||||
type: "text",
|
||||
ipSyncAuto: {
|
||||
title: t("certd.monitor.ipSyncAuto"),
|
||||
type: "dict-switch",
|
||||
dict: dict({
|
||||
data: [
|
||||
{ label: t("common.enabled"), value: true, color: "green" },
|
||||
{ label: t("common.disabled"), value: false, color: "gray" },
|
||||
],
|
||||
}),
|
||||
form: {
|
||||
show: false,
|
||||
value: true,
|
||||
show: compute(({ form }) => {
|
||||
return form.ipCheck;
|
||||
}),
|
||||
},
|
||||
column: {
|
||||
width: 100,
|
||||
|
||||
Reference in New Issue
Block a user