diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js index 5fd7219d..3fba177d 100644 --- a/src/pages/plan/list/list.js +++ b/src/pages/plan/list/list.js @@ -28,7 +28,9 @@ export default class acclist extends React.Component{ ], menuList:[{id:0,name:"状态",check:false}], email:"", - phone:"" + phone:"", + search:"" + } } clickFn(){ @@ -42,6 +44,8 @@ export default class acclist extends React.Component{ let data = { page:e, limit:this.state.limit, + status:this.state.status, + key_word:this.state.key_word } this.getPlanList(data); @@ -66,7 +70,13 @@ export default class acclist extends React.Component{ } getPlanList(data){ - getPlanList(data).then((res)=>{ + + let queryParams = _.omitBy(data, (value) => { + return _.isNaN(value) || _.isNil(value) || '' == value + }) + + + getPlanList(queryParams).then((res)=>{ handelResponse(res,(req,msg)=>{ this.setState({distdata:req.data}) this.setState({dataCount:req.total}) @@ -80,6 +90,8 @@ export default class acclist extends React.Component{ let data = { page:1, limit:e, + status:this.state.status, + key_word:this.state.key_word } this.getPlanList(data); } @@ -263,6 +275,18 @@ export default class acclist extends React.Component{ } onFilter(e){ console.log(e) + this.setState({page:1}) + this.setState({limit:10}) + this.setState({status:e}) + let data = { + page:1, + limit:10, + status:e, + key_word:this.state.key_word + + } + this.getPlanList(data) + } phoneChange=(e)=> { @@ -277,6 +301,23 @@ export default class acclist extends React.Component{ } + iptsureFn(e){ + this.setState({page:1}) + this.setState({limit:10}) + + console.log("查询关键字") + console.log(e) + + let data = { + page:1, + limit:10, + status:this.state.status, + key_word: this.state.search + + } + this.getPlanList(data) + + } render(){ const { current, pageSize } = this.state; const Column = [ @@ -373,8 +414,17 @@ export default class acclist extends React.Component{
{/* */}
+