解决启用/禁用计划
This commit is contained in:
parent
6d0f7c7ed7
commit
a6f3868e27
|
@ -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列表'}
|
||||||
]}]
|
]}]
|
||||||
|
@ -165,6 +168,7 @@ export default class acclist extends React.Component{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
|
|
||||||
Notify.success("更改状态成功")
|
Notify.success("更改状态成功")
|
||||||
|
|
||||||
},(err)=>{
|
},(err)=>{
|
||||||
Notify.error(err)
|
Notify.error(err)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue