Update list.js
This commit is contained in:
parent
400854731a
commit
1608c9940e
|
@ -467,6 +467,10 @@ export default class acclist extends React.Component{
|
||||||
|
|
||||||
onEdit(e,row){
|
onEdit(e,row){
|
||||||
console.log("计划任务ID")
|
console.log("计划任务ID")
|
||||||
|
|
||||||
|
|
||||||
|
if(row.status == 4 ||row.status == 0)
|
||||||
|
{
|
||||||
sessionStorage.setItem("plan_id",row.id)
|
sessionStorage.setItem("plan_id",row.id)
|
||||||
sessionStorage.setItem("plan_status",row.status)
|
sessionStorage.setItem("plan_status",row.status)
|
||||||
let link = window.location.href.replace(window.location.hash,"#/home/plan-edit");
|
let link = window.location.href.replace(window.location.hash,"#/home/plan-edit");
|
||||||
|
@ -479,6 +483,12 @@ export default class acclist extends React.Component{
|
||||||
sessionStorage.setItem('breaknav',JSON.stringify(arr));
|
sessionStorage.setItem('breaknav',JSON.stringify(arr));
|
||||||
sessionStorage.setItem('linkshowname',"营销计划管理");
|
sessionStorage.setItem('linkshowname',"营销计划管理");
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
|
||||||
|
Notify.error("不可编辑此行")
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
render(){
|
render(){
|
||||||
const { current, pageSize } = this.state;
|
const { current, pageSize } = this.state;
|
||||||
|
@ -639,7 +649,7 @@ export default class acclist extends React.Component{
|
||||||
|
|
||||||
|
|
||||||
let str = <span>
|
let str = <span>
|
||||||
<a className="grid-link" onClick={(e)=>{this.onEdit(e,rowData)} } >编辑</a>
|
<a className="grid-link" onClick={(e)=>{this.onEdit(e,rowData)} } >编辑</a>
|
||||||
<Dropdown position={DropdownPosition.RightTop }>
|
<Dropdown position={DropdownPosition.RightTop }>
|
||||||
<DropdownClickTrigger>
|
<DropdownClickTrigger>
|
||||||
<div className="linkmore"> 更多 <Icon type={"down"} /> </div>
|
<div className="linkmore"> 更多 <Icon type={"down"} /> </div>
|
||||||
|
@ -655,16 +665,7 @@ export default class acclist extends React.Component{
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
let str2 = <span>
|
|
||||||
<a className="grid-link" >编辑</a>
|
|
||||||
<Dropdown position={DropdownPosition.RightTop }>
|
|
||||||
<DropdownClickTrigger>
|
|
||||||
<div className="linkmore"> 更多 <Icon type={"down"} /> </div>
|
|
||||||
</DropdownClickTrigger>
|
|
||||||
<DropdownContent>
|
|
||||||
</DropdownContent>
|
|
||||||
</Dropdown>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
return str
|
return str
|
||||||
|
|
Loading…
Reference in New Issue