diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js
index bd75c052..d0fb5cf6 100644
--- a/src/pages/plan/list/list.js
+++ b/src/pages/plan/list/list.js
@@ -467,6 +467,10 @@ export default class acclist extends React.Component{
onEdit(e,row){
console.log("计划任务ID")
+
+
+ if(row.status == 4 ||row.status == 0)
+ {
sessionStorage.setItem("plan_id",row.id)
sessionStorage.setItem("plan_status",row.status)
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('linkshowname',"营销计划管理");
+ }
+ else{
+
+ Notify.error("不可编辑此行")
+ }
+
}
render(){
const { current, pageSize } = this.state;
@@ -639,7 +649,7 @@ export default class acclist extends React.Component{
let str =
- {this.onEdit(e,rowData)} } >编辑
+ {this.onEdit(e,rowData)} } >编辑
更多
@@ -655,16 +665,7 @@ export default class acclist extends React.Component{
- let str2 =
- 编辑
-
-
- 更多
-
-
-
-
-
+
return str