diff --git a/src/app/routes/insurance-management/components/list/list.component.ts b/src/app/routes/insurance-management/components/list/list.component.ts index 9cdf7ba8..2846e43a 100644 --- a/src/app/routes/insurance-management/components/list/list.component.ts +++ b/src/app/routes/insurance-management/components/list/list.component.ts @@ -498,9 +498,11 @@ export class insuranceManagementListComponent implements OnInit { } showImg(_record: any) { // var newUrl=_record.policyUrl.replace('http','https') + // console.log(newUrl); + // window.open(newUrl,'_self'); - this.service.reviewPDF( `${_record.policyUrl}`) - // this.service.downloadFile(`${_record.policyUrl}`) + + this.service.downloadFile(`${_record.policyUrl}`) // const params = { // imgList: [_record.policyUrl], // index: 0 diff --git a/src/app/routes/insurance-management/services/insurance-management.service.ts b/src/app/routes/insurance-management/services/insurance-management.service.ts index 04beb077..a8b8b13b 100644 --- a/src/app/routes/insurance-management/services/insurance-management.service.ts +++ b/src/app/routes/insurance-management/services/insurance-management.service.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-03 15:31:52 * @LastEditors : Shiming - * @LastEditTime : 2022-04-11 14:12:35 + * @LastEditTime : 2022-04-11 15:13:24 * @FilePath : \\tms-obc-web\\src\\app\\routes\\insurance-management\\services\\insurance-management.service.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -43,6 +43,8 @@ export class InsuranceManagementService extends ShipperBaseService { const objectUrl = url; const a = document.createElement('a'); document.body.appendChild(a); + console.log('5555'); + a.href = objectUrl; a.download = '保单.pdf'; if (isIE) {