Commit 2bf6221dcc1355c388ee5967c18e5461ac694843

Authored by ww
1 parent 9dd5bc0f

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

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