Newer
Older
import { Component, OnInit } from '@angular/core';
import {WorkService} from '../../work.service';
@Component({
selector: 'smart-look-plan',
templateUrl: './look-plan.component.html',
styles: []
})
export class LookPlanComponent implements OnInit {
isVisible = false;
title;
plan;
constructor(private workSer:WorkService,private commonSer:CommonService) { }
this.workSer.findPlan(id).subscribe(
(res)=>{
if(res.errCode == 10000){
this.plan = res.data;
}
}
)
}
downLoad(){
this.workSer.downloadTemplate("plan",this.planId).subscribe(
(data)=>{
this.commonSer.downloadFile(this.plan.fileName,data)
}
)
}