|
|
@@ -118,9 +118,9 @@ class Filter extends React.Component {
|
|
|
onDropdownVisibleChange={this.onDropdownVisibleChange}
|
|
|
dropdownMatchSelectWidth={false}
|
|
|
notFoundContent={fetching ? <Spin size="small" /> : '无'}
|
|
|
- onSearch={(value) => {console.log(value);this.fetchColumnData(filter, { keyword: value, mandatory: true })}}
|
|
|
+ onSearch={(value) => {this.fetchColumnData(filter, { keyword: value, mandatory: true })}}
|
|
|
onFocus={() => {this.fetchColumnData(filter)}}
|
|
|
- onChange={(value) => {console.log(value);this.changeFilterValue(filter, value, index)}}
|
|
|
+ onChange={(value) => {this.changeFilterValue(filter, value, index)}}
|
|
|
dropdownRender={menu => (
|
|
|
<div>
|
|
|
{menu}
|
|
|
@@ -190,7 +190,6 @@ class Filter extends React.Component {
|
|
|
const { changeFilterValue: propsChangeFilterValue } = this.props;
|
|
|
filter['value' + index] = value;
|
|
|
if(propsChangeFilterValue && typeof propsChangeFilterValue === 'function') {
|
|
|
- console.log('ok');
|
|
|
propsChangeFilterValue({ ...filter });
|
|
|
}
|
|
|
}
|
|
|
@@ -210,7 +209,7 @@ class Filter extends React.Component {
|
|
|
if(!columnData || columnData.length === 0 || mandatory) {
|
|
|
this.setState({ columnData: [], fetching: true }, () => {
|
|
|
const body = isCusMode ? columns : {
|
|
|
- id: dataSource.name,
|
|
|
+ id: dataSource.code,
|
|
|
columnName: filter.name,
|
|
|
keyword,
|
|
|
};
|