解决启用/禁用计划
This commit is contained in:
parent
6d0f7c7ed7
commit
a6f3868e27
|
@ -117,8 +117,10 @@ export default class acclist extends React.Component{
|
|||
|
||||
//修改状态
|
||||
changeState(status,row){
|
||||
let self=this;
|
||||
let data = {
|
||||
"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});
|
||||
this.state.distdata[id].open = status ? 1 : 2;
|
||||
this.setState({distdata:this.state.distdata})
|
||||
let data = {
|
||||
page:1,
|
||||
limit:10
|
||||
}
|
||||
self.getPlanList(data);
|
||||
Notify.success("更改状态成功")
|
||||
},(err)=>{
|
||||
Notify.error(err)
|
||||
|
@ -141,10 +148,6 @@ export default class acclist extends React.Component{
|
|||
//营销系统名称
|
||||
linkTo(row){
|
||||
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:'营销计划管理'},
|
||||
{path:'/home/key-list',name:row.title+'key列表'}
|
||||
]}]
|
||||
|
@ -165,6 +168,7 @@ export default class acclist extends React.Component{
|
|||
handelResponse(res,(req,msg)=>{
|
||||
|
||||
Notify.success("更改状态成功")
|
||||
|
||||
},(err)=>{
|
||||
Notify.error(err)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue