diff --git a/src/app/admin/pay-qr-code/pay-qr-code-list/pay-qr-code-list.component.html b/src/app/admin/pay-qr-code/pay-qr-code-list/pay-qr-code-list.component.html index e706aea..e2c4192 100644 --- a/src/app/admin/pay-qr-code/pay-qr-code-list/pay-qr-code-list.component.html +++ b/src/app/admin/pay-qr-code/pay-qr-code-list/pay-qr-code-list.component.html @@ -127,6 +127,7 @@ + diff --git a/src/app/admin/pay-qr-code/pay-qr-code-list/pay-qr-code-list.component.ts b/src/app/admin/pay-qr-code/pay-qr-code-list/pay-qr-code-list.component.ts index d7d2e6e..bc3f4a6 100644 --- a/src/app/admin/pay-qr-code/pay-qr-code-list/pay-qr-code-list.component.ts +++ b/src/app/admin/pay-qr-code/pay-qr-code-list/pay-qr-code-list.component.ts @@ -19,7 +19,7 @@ export class PayQrCodeListComponent implements OnInit { userType: number; baseUrl = environment.baseUrl; - + FILE_URL = environment.imageUrl; loadingObject = { spinning: false, msg: '加载中' @@ -545,4 +545,17 @@ export class PayQrCodeListComponent implements OnInit { this.salesmanDataArray = []; } } + + exportQrCode() { + this.loadingObject.spinning = true; + this.loadingObject.msg = '导出中...'; + this.payQrCodeService.exportQrCodeList(this.whereObject, data => { + if (data['return_code'] === '000000') { + window.location.href = this.FILE_URL + 'temporary/' + data['return_data']; + } else { + this.message.error(data['return_msg']); + } + this.loadingObject.spinning = false; + }); + } } diff --git a/src/app/admin/store-discount-activity/store-discount-activity-edit/store-discount-activity-edit.component.html b/src/app/admin/store-discount-activity/store-discount-activity-edit/store-discount-activity-edit.component.html index fe17f1d..7819e34 100644 --- a/src/app/admin/store-discount-activity/store-discount-activity-edit/store-discount-activity-edit.component.html +++ b/src/app/admin/store-discount-activity/store-discount-activity-edit/store-discount-activity-edit.component.html @@ -13,14 +13,32 @@