Newer
Older
selector: 'smart-look-plan',
templateUrl: './look-plan.component.html',
styles: []
isVisible = false;
title;
plan;
planId;
constructor(private workSer: WorkService, private commonSer: CommonService) {
}
ngOnInit() {
}
showModal(id, name) {
this.planId = id;
this.title = '计划:' + name;
this.isVisible = true;
this.workSer.findPlan(id).subscribe(
(res) => {
if (res.errCode == 10000) {
this.plan = res.data;
}
}
);
}
handleEditCancel() {
this.isVisible = false;
downLoad() {
this.workSer.downloadTemplate('plan', this.planId).subscribe(
(data) => {