Commit 8eb7140680c0cc26976eef2398d0cd4061580842
Merge branch 'fix/DEFECT-1494' into 'main_dev'
fix: 修改控制组问题和看板编辑创建没有恢复默认 See merge request yunteng/thingskit-front!809
Showing
4 changed files
with
7 additions
and
13 deletions
| ... | ... | @@ -352,18 +352,6 @@ export const commonDataSourceSchemas = (): FormSchema[] => { |
| 352 | 352 | : undefined, |
| 353 | 353 | }); |
| 354 | 354 | |
| 355 | - // 当我们通过复制组件在进行编辑的时候选择控制组件会使不是bool属性的值进行赋值 | |
| 356 | - if ( | |
| 357 | - (!option?.length && | |
| 358 | - isControlComponent(category!) && | |
| 359 | - unref(selectWidgetKeys).componentKey !== 'LateralNumericalControl') || | |
| 360 | - isBooleanComponent(unref(selectWidgetKeys)) | |
| 361 | - ) { | |
| 362 | - setFieldsValue({ | |
| 363 | - [DataSourceField.ATTRIBUTE]: null, | |
| 364 | - }); | |
| 365 | - } | |
| 366 | - | |
| 367 | 355 | // 选择控制组件4的时候只能选择属性且是(int double类型) |
| 368 | 356 | if (unref(selectWidgetKeys).componentKey == 'LateralNumericalControl') { |
| 369 | 357 | setFieldsValue({ | ... | ... |
| ... | ... | @@ -102,7 +102,7 @@ class Subscriber { |
| 102 | 102 | return { |
| 103 | 103 | cmdId: subscriptionId, |
| 104 | 104 | entityId: deviceId, |
| 105 | - keys: Array.from(attributes.values()).join(','), | |
| 105 | + keys: Array.from(attributes.values()).filter(Boolean).join(','), | |
| 106 | 106 | entityType: EntityTypeEnum.DEVICE, |
| 107 | 107 | scope: ScopeTypeEnum.LATEST_TELEMERY, |
| 108 | 108 | ...(unsubscribe ? { unsubscribe } : {}), |
| ... | ... | @@ -354,6 +354,7 @@ export const useDataFetch = ( |
| 354 | 354 | props: { config: ComponentPropsConfigType }, |
| 355 | 355 | updateFn: DataFetchUpdateFn |
| 356 | 356 | ) => { |
| 357 | + console.log(props, 'props'); | |
| 357 | 358 | const getBindAttribute = computed(() => { |
| 358 | 359 | const { config } = props; |
| 359 | 360 | const { option } = config as ComponentPropsConfigType<Recordable, DataSource>; | ... | ... |