...
|
...
|
@@ -18,6 +18,7 @@ import { TransportTypeEnum } from '/@/views/device/profiles/components/Transport |
18
|
18
|
import { useComponentRegister } from '/@/components/Form';
|
19
|
19
|
import { OrgTreeSelect } from '/@/views/common/OrgTreeSelect';
|
20
|
20
|
import { isArray } from '/@/utils/is';
|
|
21
|
+import { ReadAndWriteEnum } from '/@/enums/toolEnum';
|
21
|
22
|
|
22
|
23
|
useComponentRegister('OrgTreeSelect', OrgTreeSelect);
|
23
|
24
|
|
...
|
...
|
@@ -646,7 +647,9 @@ export const actionSchema: FormSchema[] = [ |
646
|
647
|
callType: selected.callType,
|
647
|
648
|
serviceIdentifier: selected?.identifier,
|
648
|
649
|
thingsModelKeys: isArray(selected?.functionJson?.inputData)
|
649
|
|
- ? selected?.functionJson?.inputData.map((item) => item.identifier)
|
|
650
|
+ ? selected?.functionJson?.inputData
|
|
651
|
+ .filter((item) => item.accessMode === ReadAndWriteEnum.READ_AND_WRITE)
|
|
652
|
+ .map((item) => item.identifier)
|
650
|
653
|
: [],
|
651
|
654
|
});
|
652
|
655
|
return record;
|
...
|
...
|
@@ -669,7 +672,9 @@ export const actionSchema: FormSchema[] = [ |
669
|
672
|
callType: options.callType,
|
670
|
673
|
serviceIdentifier: options.identifier,
|
671
|
674
|
thingsModelKeys: isArray(options?.functionJson?.inputData)
|
672
|
|
- ? options?.functionJson?.inputData.map((item) => item.identifier)
|
|
675
|
+ ? options?.functionJson?.inputData
|
|
676
|
+ .filter((item) => item.accessMode === ReadAndWriteEnum.READ_AND_WRITE)
|
|
677
|
+ .filter((item) => item.identifier)
|
673
|
678
|
: [],
|
674
|
679
|
};
|
675
|
680
|
transportType === TransportTypeEnum.TCP
|
...
|
...
|
|