diff --git a/src/pages/distributor/list/list.js b/src/pages/distributor/list/list.js index 915fc71c..e7e85845 100644 --- a/src/pages/distributor/list/list.js +++ b/src/pages/distributor/list/list.js @@ -262,8 +262,7 @@ export default class acclist extends React.Component{ const reseller_data=response.data; const {total}=response; _self.setState({resellerList:reseller_data,total}); - Notify.clear(); - Notify.success(msg); + },err=>{ }); }).catch(err=>{ diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index 014609e1..466500ed 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -303,8 +303,7 @@ export default class acclist extends React.Component{ const codeList_data=response.data; const {total}=response; _self.setState({codeList:codeList_data,total}); - Notify.clear(); - Notify.success(msg); + },(err)=>{ }) diff --git a/src/pages/exchangepage/mytemplate/main.js b/src/pages/exchangepage/mytemplate/main.js index c2df50ed..b89365dd 100644 --- a/src/pages/exchangepage/mytemplate/main.js +++ b/src/pages/exchangepage/mytemplate/main.js @@ -127,13 +127,27 @@ componentWillMount(){ } this.getTableList(data); } + + //limit + countChange(e){ + this.setState({page:1,limit:e}); + let data = { + page:e, + limit:this.state.limit + } + + this.getTableList(data); + } + pageChange(e){ this.setState({page:e}) let data = { page:e, limit:this.state.limit - - } + } + if(this.state.key_word){ + data.title=this.state.key_word; + } this.getTableList(data); } diff --git a/src/pages/system/account/list/list.js b/src/pages/system/account/list/list.js index 4e3528fb..ecb251cc 100644 --- a/src/pages/system/account/list/list.js +++ b/src/pages/system/account/list/list.js @@ -219,8 +219,7 @@ export default class acclistDom extends React.Component{ const accList_data=response.data; const {total}=response; _self.setState({accList:accList_data,total}); - Notify.clear(); - Notify.success(msg); + },(err)=>{ }) diff --git a/src/pages/system/role/list/list.js b/src/pages/system/role/list/list.js index 22be5b9e..59b7c024 100644 --- a/src/pages/system/role/list/list.js +++ b/src/pages/system/role/list/list.js @@ -53,8 +53,7 @@ export default class acclist extends React.Component{ const roleList_data=response.data; const {total}=response; _self.setState({roleList:roleList_data,total}); - Notify.clear(); - Notify.success(msg); + }) }) }