From fb5b00d73f925036a65ce5003c57c1199578c34d Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 20 May 2026 14:52:46 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E5=A4=8D=E5=95=86=E4=B8=9A?= =?UTF-8?q?=E7=89=88=E5=A5=97=E9=A4=90=E6=B7=BB=E5=8A=A0=E5=92=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=97=B6=E7=9A=84=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/sys/suite/user-suite/crud.tsx | 37 ++++++++++++++++--- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/packages/ui/certd-client/src/views/sys/suite/user-suite/crud.tsx b/packages/ui/certd-client/src/views/sys/suite/user-suite/crud.tsx index 6a9f72f50..b015c7de3 100644 --- a/packages/ui/certd-client/src/views/sys/suite/user-suite/crud.tsx +++ b/packages/ui/certd-client/src/views/sys/suite/user-suite/crud.tsx @@ -175,11 +175,6 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat productType: { title: t("certd.type"), type: "dict-select", - editForm: { - component: { - disabled: true, - }, - }, dict: dict({ data: [ { label: t("certd.package"), value: "suite", color: "green" }, @@ -187,7 +182,10 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat ], }), form: { - show: true, + show: false, + component: { + disabled: true, + }, }, column: { width: 80, @@ -207,6 +205,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat "content.maxDomainCount": { title: t("certd.domain_count"), type: "text", + addForm: { + show: false, + }, form: { key: ["content", "maxDomainCount"], component: { @@ -229,6 +230,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat "content.maxWildcardDomainCount": { title: t("certd.wildcardDomainCountPart"), type: "text", + addForm: { + show: false, + }, form: { key: ["content", "maxWildcardDomainCount"], component: { @@ -251,6 +255,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat "content.maxPipelineCount": { title: t("certd.pipeline_count"), type: "text", + addForm: { + show: false, + }, form: { key: ["content", "maxPipelineCount"], component: { @@ -273,6 +280,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat "content.maxDeployCount": { title: t("certd.deploy_count"), type: "text", + addForm: { + show: false, + }, form: { key: ["content", "maxDeployCount"], component: { @@ -298,6 +308,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat "content.maxMonitorCount": { title: t("certd.monitor_count"), type: "text", + addForm: { + show: false, + }, form: { key: ["content", "maxMonitorCount"], component: { @@ -320,6 +333,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat duration: { title: t("certd.duration"), type: "text", + addForm: { + show: false, + }, form: { rules: [{ required: true, message: t("certd.field_required") }], }, @@ -365,6 +381,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat expiresTime: { title: t("certd.expires_time"), type: "date", + addForm: { + show: false, + }, form: { valueBuilder: ({ value }) => { return dayjs(value); @@ -395,6 +414,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat { label: t("certd.is_present_no"), value: false, color: "blue" }, ], }), + addForm: { + show: false, + }, form: { value: true, }, @@ -406,6 +428,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat deployCountUsed: { title: t("certd.deploy_count_used"), type: "number", + addForm: { + show: false, + }, form: { value: 0, rules: [{ required: true, message: t("certd.field_required") }],