|
@@ -137,7 +137,7 @@ class client extends PureComponent {
|
|
|
|
|
|
|
|
|
render() {
|
|
|
- const { columns, columnsData, handleSearch, handleColumnsShow } = this.props;
|
|
|
+ const { clientList,columns, columnsData, handleSearch, handleColumnsShow } = this.props;
|
|
|
|
|
|
return (
|
|
|
<Fragment>
|
|
@@ -294,7 +294,8 @@ value={searchValue} onChange={handleInputSearchValue}
|
|
|
<tbody>
|
|
|
|
|
|
{
|
|
|
- clientList.map((item) => {
|
|
|
+
|
|
|
+ this.props.clientList.map((item) => {
|
|
|
return (
|
|
|
<tr key={item.get('id')} >
|
|
|
<td><a href="#detail" data-toggle="modal" data-target="#detail">{item.get('clientname')}</a></td>
|
|
@@ -353,8 +354,9 @@ value={searchValue} onChange={handleInputSearchValue}
|
|
|
|
|
|
//组件即将要被挂在的时候执行的方法
|
|
|
componentDidMount() {
|
|
|
- //const { clientList } = this.props;
|
|
|
- //this.props.handleClientData(clientList);
|
|
|
+
|
|
|
+ // const { clientList } = this.props;
|
|
|
+ // this.props.handleClientData(clientList);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -373,6 +375,7 @@ let delaySwitch = null;//延迟检索开关
|
|
|
*/
|
|
|
const mapStateToProps = (state) => {
|
|
|
return {
|
|
|
+ clientList:state.getIn(['contact', 'clientList']),
|
|
|
columns: state.getIn(['contact', 'columns']),
|
|
|
columnsData: state.getIn(['contact', 'columnsData']),
|
|
|
}
|
|
@@ -391,6 +394,7 @@ const mapDispathToProps = (dispatch) => {
|
|
|
//检索联系人
|
|
|
handleSearch(serchValue) {
|
|
|
//e.target --可以获得dom
|
|
|
+
|
|
|
if (delaySwitch != null) {
|
|
|
clearTimeout(delaySwitch);
|
|
|
}
|