Showing
2 changed files
with
4 additions
and
2 deletions
| ... | ... | @@ -61,7 +61,7 @@ export const modeForm = (disabled: boolean): FormSchema[] => { |
| 61 | 61 | }, |
| 62 | 62 | { |
| 63 | 63 | required: true, |
| 64 | - field: 'organizationId', | |
| 64 | + field: BasicInfoFormField.ORGANIZATION_ID, | |
| 65 | 65 | label: '所属组织', |
| 66 | 66 | colProps: { span: 24 }, |
| 67 | 67 | component: 'OrgTreeSelect', |
| ... | ... | @@ -118,9 +118,10 @@ export const modeForm = (disabled: boolean): FormSchema[] => { |
| 118 | 118 | componentProps: ({ formModel }) => { |
| 119 | 119 | const convertConfigId = formModel[BasicInfoFormField.CONVERT_CONFIG_ID]; |
| 120 | 120 | const deviceProfileIds = formModel[BasicInfoFormField.DATA_SOURCE_PRODUCT]; |
| 121 | + const organizationId = formModel[BasicInfoFormField.ORGANIZATION_ID]; | |
| 121 | 122 | return { |
| 122 | 123 | disabled, |
| 123 | - params: { convertConfigId, deviceProfileIds }, | |
| 124 | + params: { convertConfigId, deviceProfileIds, organizationId }, | |
| 124 | 125 | transformValue: handleGroupDevice, |
| 125 | 126 | openModalValidate: () => { |
| 126 | 127 | if (!deviceProfileIds || !deviceProfileIds?.length) { | ... | ... |