Commit 2bf6221dcc1355c388ee5967c18e5461ac694843

Authored by ww
1 parent 9dd5bc0f

fix: 修复物模型编辑时可以变更物模型类型

... ... @@ -71,6 +71,7 @@ export enum FormFieldsNameEnum {
71 71
72 72 export const getFormSchemas = ({
73 73 transportType,
  74 + mode,
74 75 }: {
75 76 transportType?: string;
76 77 mode?: DataActionModeEnum;
... ... @@ -82,6 +83,7 @@ export const getFormSchemas = ({
82 83 component: 'Segmented',
83 84 defaultValue: FunctionTypeEnum.PROPERTIES,
84 85 required: true,
  86 + dynamicDisabled: mode !== DataActionModeEnum.CREATE,
85 87 componentProps: ({ formActionType }) => {
86 88 return {
87 89 options: Object.keys(FunctionTypeEnum).map((key) => ({
... ...