更新计划任务筛查状态对应问题

This commit is contained in:
姜棚 2021-12-21 16:28:37 +08:00
parent 23b0982d40
commit be995fde53
2 changed files with 12 additions and 6 deletions

View File

@ -22,7 +22,7 @@ export default class acclist extends React.Component{
dataCount:0, dataCount:0,
page:1, page:1,
limit:10, limit:10,
tabList:[{title:"营销计划列表"}], tabList:[{title:"全部",index:0},{title:"待使用",index:1},{title:"已使用",index:2},{title:"已完结",index:3},{title:"已作废",index:4}],
distdata:[{title:'士大夫大师傅'}], distdata:[{title:'士大夫大师傅'}],
filterList:[{id:0,label:"状态", prop:"status", menuList:[{id:999,name:"全部"},{id:0,name:"创建中"},{id:2,name:"审核中"},{id:3,name:"待生效"},{id:4,name:"进行中"},{id:5,name:"暂停中"},{id:6,name:"已完结"}]}, filterList:[{id:0,label:"状态", prop:"status", menuList:[{id:999,name:"全部"},{id:0,name:"创建中"},{id:2,name:"审核中"},{id:3,name:"待生效"},{id:4,name:"进行中"},{id:5,name:"暂停中"},{id:6,name:"已完结"}]},
], ],
@ -455,7 +455,7 @@ export default class acclist extends React.Component{
} }
else{ else{
let params ={} let params ={}
params[prop] = null params[prop] = e
this.setState(params) this.setState(params)
} }
this.getPlanList(data) this.getPlanList(data)
@ -542,7 +542,9 @@ export default class acclist extends React.Component{
} }
tabFn(e){
}
render(){ render(){
const { current, pageSize } = this.state; const { current, pageSize } = this.state;
const Column = [ const Column = [
@ -600,7 +602,7 @@ export default class acclist extends React.Component{
<div id="dislist"> <div id="dislist">
<TabPage tabs={this.state.tabList} slot={date}> <TabPage tabs={this.state.tabList} slot={date} tabChange={this.tabFn.bind(this)}>
<div className="distable dflexj"> <div className="distable dflexj">
<div className=""> <div className="">
<Button onClick={this.clickFn.bind(this)}>批量作废</Button> <Button onClick={this.clickFn.bind(this)}>批量作废</Button>

View File

@ -58,6 +58,9 @@ export default class acclist extends React.Component{
} }
//分页 //分页
onPageChange(e){ onPageChange(e){
console.log("分页")
console.log(this.state)
this.setState({page:e}); this.setState({page:e});
setTimeout(()=>{ setTimeout(()=>{
this.getpageFn(); this.getpageFn();
@ -456,6 +459,7 @@ export default class acclist extends React.Component{
this.setState({grantTotal,receiveTotal,usageTotal,silentTotal,receive_total,usage_total,silent_total}); this.setState({grantTotal,receiveTotal,usageTotal,silentTotal,receive_total,usage_total,silent_total});
} }
onFilter(e,prop){ onFilter(e,prop){
console.log("筛选")
this.setState({page:1}) this.setState({page:1})
this.setState({limit:10}) this.setState({limit:10})
@ -474,11 +478,11 @@ export default class acclist extends React.Component{
} }
else{ else{
let params ={} let params ={}
params[prop] = null params[prop] = e
this.setState(params) this.setState(params)
} }
this.getPlanList(data) this.getPlanList(data)
console.log(data) console.log(this.state)
} }
phoneChange=(e)=> phoneChange=(e)=>
{ {