From e6a451c0a546d3ea31cd813e7ca2514d4c3e3f74 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Thu, 14 Apr 2022 11:41:20 +0800 Subject: [PATCH] fix bug --- proxy.conf.js | 4 +-- .../components/list/list.component.ts | 6 ++-- .../services/insurance-management.service.ts | 29 ++++++++++++++++++- 3 files changed, 34 insertions(+), 5 deletions(-) diff --git a/proxy.conf.js b/proxy.conf.js index e6de13f2..b8983842 100644 --- a/proxy.conf.js +++ b/proxy.conf.js @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-01-18 09:51:21 * @LastEditors : Shiming - * @LastEditTime : 2022-04-09 16:39:20 + * @LastEditTime : 2022-04-14 11:38:39 * @FilePath : \\tms-obc-web\\proxy.conf.js * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -20,7 +20,7 @@ module.exports = { // } '//api': { target: { - host: 'tms-api-test.eascs.com', + host: 'tms-api-dev.eascs.com', protocol: 'https:', port: 443 }, 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 2846e43a..4655ee58 100644 --- a/src/app/routes/insurance-management/components/list/list.component.ts +++ b/src/app/routes/insurance-management/components/list/list.component.ts @@ -501,8 +501,10 @@ export class insuranceManagementListComponent implements OnInit { // console.log(newUrl); // window.open(newUrl,'_self'); - - this.service.downloadFile(`${_record.policyUrl}`) + window.open(`${_record.newPolicyUrl}`); + // this.service.downloadFile(`${_record.newPolicyUrl}`) + + // 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 0482f606..413d2a7d 100644 --- a/src/app/routes/insurance-management/services/insurance-management.service.ts +++ b/src/app/routes/insurance-management/services/insurance-management.service.ts @@ -55,7 +55,34 @@ export class InsuranceManagementService extends ShipperBaseService { // } // a.remove(); } - + // getReceiptUrl(url: string, params: any) { + // const { bankType, snglFlgCd } = params; + // if (url) { + // if (params?.bankType === '1') { + // window.open(params?.receiptUrl); + // } else if (params?.bankType === '2') { + // window.open(url); + // // this.exportFile({ bankType, receiptUrl: url, bankSerialNumber: snglFlgCd }, this.$api_download_receipt_apply_byte); + // } + // } else { + // this.request(this.$api_download_receipt_apply, { ...params }).subscribe(res => { + // if (res?.receiptUrl) { + // if (bankType === '1') { + // window.open(res?.receiptUrl); + // } else if (bankType === '2') { + // window.open(res?.receiptUrl); + // // this.downloadFile(this.$api_download_receipt_apply_byte, { + // // bankType, + // // receiptUrl: res.receiptUrl, + // // bankSerialNumber: snglFlgCd + // // }); + // } + // } else { + // this.msgSrv.warning(res.statusMsg || '获取回单失败'); + // } + // }); + // } + // } constructor(public injector: Injector) { super(injector); }