Browse Source

1. 修复导出数据不一致

MONSTER-ygh 11 months ago
parent
commit
0231a2e1c2
1 changed files with 16 additions and 1 deletions
  1. 16 1
      src/views/tourism/orderManagement/ticketOrdersAll/ticketOrders.vue

+ 16 - 1
src/views/tourism/orderManagement/ticketOrdersAll/ticketOrders.vue

@@ -355,8 +355,23 @@
       },
       /** 导出按钮操作 */
       handleExport() {
+        let params = JSON.parse(JSON.stringify({
+          ...this.queryParams,
+          createBeginTime: this.queryParams.createTime&&this.queryParams.createTime[0]?this.queryParams.createTime[0]:null,
+          createEndTime: this.queryParams.createTime&&this.queryParams.createTime[1]?this.queryParams.createTime[1]:null,
+          
+          performDateStart: this.queryParams.performTime&&this.queryParams.performTime[0]?this.queryParams.performTime[0]:null,
+          performDateEnd: this.queryParams.performTime&&this.queryParams.performTime[1]?this.queryParams.performTime[1]:null,
+
+          payBeginTime: this.queryParams.payTime&&this.queryParams.payTime[0]?this.queryParams.payTime[0]:null,
+          payEndTime: this.queryParams.payTime&&this.queryParams.payTime[1]?this.queryParams.payTime[1]:null,
+          
+        }))
+        delete params.createTime;
+        delete params.performTime;
+        delete params.payTime;
         this.downloadGet(this.configUrl.export, {
-          ...this.queryParams
+          ...params
         }, `${this.title }_${new Date().getTime()}.xlsx`)
       },
       /** 导入按钮操作 */