调整swicth默认数据源,清除表格

This commit is contained in:
姜棚 2022-01-10 16:31:03 +08:00
parent 278e61ee33
commit 6a5b34afff
1 changed files with 4 additions and 39 deletions

View File

@ -23,7 +23,7 @@ export default class acclist extends React.Component{
page:1, page:1,
limit:10, limit:10,
tabList:[{title:"营销计划列表"}], tabList:[{title:"营销计划列表"}],
distdata:[{title:'士大夫大师傅'}], distdata:[],
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:"已完结"},{id:7,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:"已完结"},{id:7,name:"未通过"}]},
], ],
tableHeight:500, tableHeight:500,
@ -96,37 +96,9 @@ export default class acclist extends React.Component{
planSend(plan_id,data).then((res)=>{ planSend(plan_id,data).then((res)=>{
handelResponse(res,(req,msg)=>{ handelResponse(res,(req,msg)=>{
// if(this.state.isSend == false)
// {
// let data = {
// "operation": 1
// }
// startOrStopPlan(plan_id,data).then((res)=>{
// handelResponse(res,(req,msg)=>{
// console.log(77777777777)
// let data = {
// page:this.state.page,
// limit:this.state.limit
// }
// this.getPlanList(data);
// this.setState({isSend:true})
// },(err)=>{
// console.log(88888888888)
// Notify.error(err)
// })
// })
// }
this.setState({audit_visible:false}) this.setState({audit_visible:false})
Notify.success("发送成功") Notify.success("发送成功")
},(err)=>{ },(err)=>{
Notify.error(err) Notify.error(err)
}) })
}) })
@ -134,9 +106,6 @@ export default class acclist extends React.Component{
} }
componentDidMount(e){ componentDidMount(e){
let data = { let data = {
page:1, page:1,
limit:10 limit:10
@ -148,11 +117,9 @@ export default class acclist extends React.Component{
} }
getPlanList(data){ getPlanList(data){
let queryParams = _.omitBy(data, (value) => { let queryParams = _.omitBy(data, (value) => {
return _.isNaN(value) || _.isNil(value) return _.isNaN(value) || _.isNil(value)
}) })
getPlanList(queryParams).then((res)=>{ getPlanList(queryParams).then((res)=>{
handelResponse(res,(req,msg)=>{ handelResponse(res,(req,msg)=>{
this.setState({distdata:req.data}) this.setState({distdata:req.data})
@ -203,8 +170,6 @@ export default class acclist extends React.Component{
"operation": status ? 1 : 2 "operation": status ? 1 : 2
} }
if(row.status == 3) if(row.status == 3)
{ {