fix: 表格的表单搜索无法在modal/drawer中使用 https://gitee.com/dapppp/ruoyi-plus-vben5/issues/IB0960
This commit is contained in:
@@ -229,14 +229,8 @@ async function init() {
|
||||
}
|
||||
props.api?.setState?.({ gridOptions: defaultGridOptions });
|
||||
// form 由 vben-form 代替,所以需要保证query相关事件可以拿到参数
|
||||
extendProxyOptions(
|
||||
props.api,
|
||||
defaultGridOptions,
|
||||
() =>
|
||||
// 这里默认是readonly的 需要深拷贝才能进行修改操作
|
||||
cloneDeep(formApi.form.values),
|
||||
// 这里的提交记录有很大问题 表单不能被重置
|
||||
// formApi.getLatestSubmissionValues(),
|
||||
extendProxyOptions(props.api, defaultGridOptions, () =>
|
||||
formApi.getLatestSubmissionValues(),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user