Commit 1a659bef164aca263aa929f9fea95ed61b5a81c9

Authored by ww
1 parent 2bf6221d

fix: 修复物模型新增时无法变更物模型类型

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