fix: 修复改变数据范围后显示字段会重置 (#1258)

Reviewed-on: daoyoucloud/tachybase#1258
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
Co-authored-by: wjh <wwwjh0710@163.com>
Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
wjh 2024-07-02 17:55:07 +08:00 committed by sealday
parent ef2e2c9beb
commit 6c9f9cd8a8

View File

@ -267,12 +267,11 @@ const setTheDataScope: any = {
},
onSubmit: ({ filter }) => {
filter = removeNullCondition(filter);
_.set(field.componentProps, 'service.params.filter', filter);
fieldSchema['x-component-props'] = field.componentProps;
_.set(fieldSchema['x-component-props'], 'service.params.filter', filter);
dn.emit('patch', {
schema: {
['x-uid']: fieldSchema['x-uid'],
'x-component-props': field.componentProps,
'x-component-props': fieldSchema['x-component-props'],
},
});
},