修复CRUD searchable时,query格式异常的问题 (#1065)

* Iframe 联动时导致 iframe 刷新问题

* src过期判断有问题

* iframe message事件监听器判断优化

* 修复 DiffEditor 显示 [Object object] 的问题

* 修复 Picker 中排序操作触发 Form initApi的问题

* 修复 submitApi 获取数据链数据失效问题

* fix doc

* 修复CRUD searchable时,query格式异常的问题
This commit is contained in:
RickCole 2020-11-13 11:56:20 +08:00 committed by GitHub
parent 25f95dcc7a
commit c16b02fd23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ import Overlay from '../../components/Overlay';
import {findDOMNode} from 'react-dom';
import PopOver from '../../components/PopOver';
import {ITableStore} from '../../store/table';
import {setVariable} from '../../utils/helper';
export interface QuickSearchConfig {
type?: string;
@ -180,7 +181,7 @@ export class HeadCellSearchDropDown extends React.Component<
handleReset() {
const {onQuery, data, name} = this.props;
const values = {...data};
this.formItems.forEach(key => (values[key] = undefined));
this.formItems.forEach(key => setVariable(values, key, undefined));
if (values.orderBy === name) {
values.orderBy = '';