fix bug
This commit is contained in:
@ -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
|
||||
},
|
||||
|
||||
@ -501,8 +501,10 @@ export class insuranceManagementListComponent implements OnInit {
|
||||
// console.log(newUrl);
|
||||
|
||||
// window.open(newUrl,'_self');
|
||||
window.open(`${_record.newPolicyUrl}`);
|
||||
// this.service.downloadFile(`${_record.newPolicyUrl}`)
|
||||
|
||||
|
||||
this.service.downloadFile(`${_record.policyUrl}`)
|
||||
// const params = {
|
||||
// imgList: [_record.policyUrl],
|
||||
// index: 0
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user