Commit 4f8fb7e8 by Chao Sun

薪资下载

parent 6431560d
......@@ -4,7 +4,9 @@
"scripts": {
"ng": "ng",
"start": "ng serve --host 192.168.1.25",
"build": "ng build -c=dev --prod",
"buildDev": "ng build -c=dev --prod",
"buildStage": "ng build -c=stage --prod",
"buildProd": "ng build -c=production --prod ",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
......
......@@ -26,7 +26,7 @@
<div></div>
<div (click)="getPdf(payScaleItem.monShId)">
薪资单明细
<!-- <span class="iconfont icon-xiazai" style="font-size: 18px;color:#ff3500;"></span> -->
<span class="iconfont icon-xiazai" style="color:#ff3500;margin-left: 5px;"></span>
</div>
</div>
</div>
......
......@@ -38,7 +38,7 @@ export class SalaryComponent implements OnInit {
this.myService.payScalePdf({ monShId: monShId, practitionerId: Number(this.practitionerId) }).subscribe((res) => {
if (res['success']) {
if (res['data']['url']) {
window.open(res['data']['url'])
location.href = res['data']['url'];
} else {
this.toastDialog = true;
this.toastInfo = {
......@@ -52,5 +52,4 @@ export class SalaryComponent implements OnInit {
}
})
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment