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:
parent
ef2e2c9beb
commit
6c9f9cd8a8
@ -267,12 +267,11 @@ const setTheDataScope: any = {
|
|||||||
},
|
},
|
||||||
onSubmit: ({ filter }) => {
|
onSubmit: ({ filter }) => {
|
||||||
filter = removeNullCondition(filter);
|
filter = removeNullCondition(filter);
|
||||||
_.set(field.componentProps, 'service.params.filter', filter);
|
_.set(fieldSchema['x-component-props'], 'service.params.filter', filter);
|
||||||
fieldSchema['x-component-props'] = field.componentProps;
|
|
||||||
dn.emit('patch', {
|
dn.emit('patch', {
|
||||||
schema: {
|
schema: {
|
||||||
['x-uid']: fieldSchema['x-uid'],
|
['x-uid']: fieldSchema['x-uid'],
|
||||||
'x-component-props': field.componentProps,
|
'x-component-props': fieldSchema['x-component-props'],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user