|
@@ -305,20 +305,20 @@
|
|
|
verifySn: this.getUrlParam('verifySn'),
|
|
|
dealerSn: this.getUrlParam('userSn')
|
|
|
}
|
|
|
- axios.get(this.ajaxUrl + 'verify/exportExcel', {
|
|
|
- params: ajaxData
|
|
|
- }, {
|
|
|
- responseType: 'blob',
|
|
|
- dataType: "jsonp",
|
|
|
- jsonp: "callback"
|
|
|
- }).then((res) => {
|
|
|
- if (res.status == 200) {
|
|
|
- downloadExcel(res.data, '对账单明细')
|
|
|
- }
|
|
|
- }).catch((error) => {
|
|
|
- console.log(error);
|
|
|
- });
|
|
|
-
|
|
|
+ window.location.href = this.ajaxUrl + 'verify/exportExcel?verifySn='+ this.getUrlParam('verifySn') +'&dealerSn = '+this.getUrlParam('userSn')
|
|
|
+ // axios.get(this.ajaxUrl + 'verify/exportExcel', {
|
|
|
+ // params: ajaxData
|
|
|
+ // }, {
|
|
|
+ // responseType: 'blob',
|
|
|
+ // dataType: "jsonp",
|
|
|
+ // jsonp: "callback"
|
|
|
+ // }).then((res) => {
|
|
|
+ // if (res.status == 200) {
|
|
|
+ // downloadExcel(res.data, '对账单明细')
|
|
|
+ // }
|
|
|
+ // }).catch((error) => {
|
|
|
+ // console.log(error);
|
|
|
+ // });
|
|
|
},
|
|
|
getUrlParam(name) {
|
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
|