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") }],