Commit a7ea0bb56f77fd358df1b98b9264c5b00497bc34

Authored by xp.Huang
2 parents f0ba297d cd1822cb

Merge branch 'fix/data-board' into 'main_dev'

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

See merge request yunteng/thingskit-front!1230
... ... @@ -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 (
... ...