|
|
|
@ -174,6 +174,8 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
let isTrue = confirm('您确定编辑吗,若是公开预案会变成未公开状态') |
|
|
|
|
if(isTrue){ |
|
|
|
|
if (e.auditStatus == 8) { |
|
|
|
|
if (e.planType == 1) { //如果是在线编辑
|
|
|
|
|
let id = e.id |
|
|
|
@ -309,7 +311,7 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
allPlanComponents: any //所有预案组件
|
|
|
|
@ -384,6 +386,8 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
this.http.delete(`/api/PlanComponents2D/${plandata.id}`).subscribe(data => { |
|
|
|
|
this.snackBar.open('删除成功!', '确定', config); |
|
|
|
|
this.getAllPlanComponents() |
|
|
|
|
},err=>{ |
|
|
|
|
this.snackBar.open(err, '确定', config); |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
this.http.delete(`/api/PlanComponents/${plandata.id}`).subscribe(data => { |
|
|
|
@ -392,6 +396,8 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('删除成功!', '确定', config); |
|
|
|
|
this.getAllPlanComponents() |
|
|
|
|
},err=>{ |
|
|
|
|
this.snackBar.open(err, '确定', config); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|