|
|
@@ -1326,42 +1326,42 @@ export default {
|
|
|
exportList() {
|
|
|
this.exportVisible = true;
|
|
|
this.exportTitle = "导出";
|
|
|
- this.exportFlag = 4;
|
|
|
+ // this.exportFlag = 4;
|
|
|
console.log(this.tableData2.totalCount, "导出条数");
|
|
|
- // if (this.tableData2.totalCount >= 50000) {
|
|
|
- // this.exportTitle = "导出错误";
|
|
|
- // this.exportFlag = 1;
|
|
|
- // } else {
|
|
|
- // this.exportTitle = "导出";
|
|
|
- // this.exportFlag = 2;
|
|
|
- // this.exportVisible = true;
|
|
|
- // var userId = this.$cookie.get('userId')
|
|
|
- // var shopId = this.$cookie.get('shopId')
|
|
|
- // this.$http({
|
|
|
- // url: this.$http.adornUrl("admin/export/excelOrder"),
|
|
|
- // method: "get",
|
|
|
- // params: this.$http.adornParams({
|
|
|
- // 'userId':userId,
|
|
|
- // 'phone': this.phone,
|
|
|
- // 'userName': this.userName,
|
|
|
- // 'orderNumber': this.orderNumber,
|
|
|
- // 'status': this.status,
|
|
|
- // 'reservationFlag': this.reservationFlag,
|
|
|
- // 'shopId': shopId,
|
|
|
- // 'orderType': this.orderType,
|
|
|
- // 'startTime': this.startTime,
|
|
|
- // 'endTime': this.endTime,
|
|
|
- // 'payStartTime':this.payStartTime,
|
|
|
- // 'payEndTime':this.payEndTime
|
|
|
- // })
|
|
|
- // }).then(({ data }) => {
|
|
|
- // console.log(data, "导出");
|
|
|
- // if(data.code==0){
|
|
|
- // this.exportTitle = "导出成功";
|
|
|
- // this.exportFlag = 3;
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
+ if (this.tableData2.totalCount >= 50000) {
|
|
|
+ this.exportTitle = "导出错误";
|
|
|
+ this.exportFlag = 1;
|
|
|
+ } else {
|
|
|
+ this.exportTitle = "导出";
|
|
|
+ this.exportFlag = 2;
|
|
|
+ this.exportVisible = true;
|
|
|
+ var userId = this.$cookie.get('userId')
|
|
|
+ var shopId = this.$cookie.get('shopId')
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl("admin/export/excelOrder"),
|
|
|
+ method: "get",
|
|
|
+ params: this.$http.adornParams({
|
|
|
+ 'userId':userId,
|
|
|
+ 'phone': this.phone,
|
|
|
+ 'userName': this.userName,
|
|
|
+ 'orderNumber': this.orderNumber,
|
|
|
+ 'status': this.status,
|
|
|
+ 'reservationFlag': this.reservationFlag,
|
|
|
+ 'shopId': shopId,
|
|
|
+ 'orderType': this.orderType,
|
|
|
+ 'startTime': this.startTime,
|
|
|
+ 'endTime': this.endTime,
|
|
|
+ 'payStartTime':this.payStartTime,
|
|
|
+ 'payEndTime':this.payEndTime
|
|
|
+ })
|
|
|
+ }).then(({ data }) => {
|
|
|
+ console.log(data, "导出");
|
|
|
+ if(data.code==0){
|
|
|
+ this.exportTitle = "导出成功";
|
|
|
+ this.exportFlag = 3;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
exportAffirm() {
|
|
|
this.exportVisible = false;
|