Commit cd1822cbfe2534e782d861b2ae5291954ce5116f

Authored by ww
1 parent df25d197

fix: 修复属性选择显示组件无法选择只读的物模型属性

... ... @@ -171,5 +171,5 @@ export interface GetMeetTheConditionsDeviceParams {
171 171 deviceType?: string;
172 172 organizationId?: string;
173 173 deviceProfileId?: string;
174   - transportType: TransportTypeEnum;
  174 + transportType?: TransportTypeEnum;
175 175 }
... ...
... ... @@ -306,10 +306,13 @@ export const commonDataSourceSchemas = (): FormSchema[] => {
306 306 ? DataTypeEnum.BOOL
307 307 : undefined,
308 308 });
309   - // 过滤只读属性
310   - option = option.filter(
311   - (item) => item.accessMode !== ObjectModelAccessModeEnum.READ
312   - );
  309 +
  310 + if (isControlComponent(category)) {
  311 + // 过滤只读属性
  312 + option = option.filter(
  313 + (item) => item.accessMode !== ObjectModelAccessModeEnum.READ
  314 + );
  315 + }
313 316
314 317 // 选择控制组件4的时候只能选择属性且是(int double类型)
315 318 if (
... ...