Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -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
|
||||
|
||||
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user