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