解决启用/禁用计划

This commit is contained in:
red-deng-deng 2021-11-25 14:19:38 +08:00
parent 6d0f7c7ed7
commit a6f3868e27
1 changed files with 9 additions and 5 deletions

View File

@ -117,8 +117,10 @@ export default class acclist extends React.Component{
//修改状态 //修改状态
changeState(status,row){ changeState(status,row){
let self=this;
let data = { let data = {
"operation": status ? 1 : 2 "operation": status ? 1 : 2
} }
@ -127,6 +129,11 @@ export default class acclist extends React.Component{
let id = _.findIndex(this.state.distdata,(o)=>{return o.id == row.id}); let id = _.findIndex(this.state.distdata,(o)=>{return o.id == row.id});
this.state.distdata[id].open = status ? 1 : 2; this.state.distdata[id].open = status ? 1 : 2;
this.setState({distdata:this.state.distdata}) this.setState({distdata:this.state.distdata})
let data = {
page:1,
limit:10
}
self.getPlanList(data);
Notify.success("更改状态成功") Notify.success("更改状态成功")
},(err)=>{ },(err)=>{
Notify.error(err) Notify.error(err)
@ -141,10 +148,6 @@ export default class acclist extends React.Component{
//营销系统名称 //营销系统名称
linkTo(row){ linkTo(row){
sessionStorage.setItem('showflag',true); sessionStorage.setItem('showflag',true);
// let arr= [{
// group:'营销计划管理',
// items:[{path:'/home/key-list',name:row.title+'key列表'}]
// }]
let arr=[{pagetitle:'编辑',items:[{path:'/home/key-list',name:'营销计划管理'}, let arr=[{pagetitle:'编辑',items:[{path:'/home/key-list',name:'营销计划管理'},
{path:'/home/key-list',name:row.title+'key列表'} {path:'/home/key-list',name:row.title+'key列表'}
]}] ]}]
@ -164,7 +167,8 @@ export default class acclist extends React.Component{
planResend(row.id,data).then((res)=>{ planResend(row.id,data).then((res)=>{
handelResponse(res,(req,msg)=>{ handelResponse(res,(req,msg)=>{
Notify.success("更改状态成功") Notify.success("更改状态成功")
},(err)=>{ },(err)=>{
Notify.error(err) Notify.error(err)
}) })