|
@@ -4,6 +4,7 @@ import { getSearchList } from '@store/async-actions/scaleSearch';
|
|
import ScaleSearch from '@components/ScaleSearch';
|
|
import ScaleSearch from '@components/ScaleSearch';
|
|
import {getScaleInfo} from '../store/async-actions/pushMessage';
|
|
import {getScaleInfo} from '../store/async-actions/pushMessage';
|
|
import {SHOW_TABLE_LIST} from '@store/types/pushMessage';
|
|
import {SHOW_TABLE_LIST} from '@store/types/pushMessage';
|
|
|
|
+import {CLEAR_SCALE_SEARCH_LIST} from '@types/scaleSearch';
|
|
|
|
|
|
function mapStateToProps(state) {
|
|
function mapStateToProps(state) {
|
|
const {pushMessage} = state;
|
|
const {pushMessage} = state;
|
|
@@ -31,6 +32,11 @@ function mapDispatchToProps(dispatch) {
|
|
item:Object.assign({},item)
|
|
item:Object.assign({},item)
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ clearResult(){
|
|
|
|
+ dispatch({
|
|
|
|
+ type:CLEAR_SCALE_SEARCH_LIST
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const ScaleSearchContainer = connect(
|
|
const ScaleSearchContainer = connect(
|