Browse Source

修改bug

liujun 2 years ago
parent
commit
ddedf0476e
1 changed files with 14 additions and 14 deletions
  1. 14 14
      public/dzd/index.html

+ 14 - 14
public/dzd/index.html

@@ -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 + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象