From 6a43e79d01fb8f1ea8bd2288cc603ee5325dd2ec Mon Sep 17 00:00:00 2001 From: xk_chenlianjie <15255791639@163.com> Date: Fri, 2 Feb 2024 10:56:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/orderList.vue | 2 +- src/views/order/orderRefundList.vue | 5 +++-- src/views/statistics/searchStatisticsList.vue | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/order/orderList.vue b/src/views/order/orderList.vue index 2c8ef71..9638303 100644 --- a/src/views/order/orderList.vue +++ b/src/views/order/orderList.vue @@ -283,7 +283,7 @@ export default { const searchParam = { ...this.page } searchParam.pageSize = endIndex searchParam.currentPage = this.output.startPage - orderInfoApi.exportExcel(searchParam).then(res => { + orderInfoApi.getByPage(searchParam).then(res => { const link = document.createElement('a') // 创建Blob对象,设置文件类型 const blob = new Blob([res], { type: 'application/vnd.ns-excel' }) // MIME类型 diff --git a/src/views/order/orderRefundList.vue b/src/views/order/orderRefundList.vue index 209cc3b..3fa5412 100644 --- a/src/views/order/orderRefundList.vue +++ b/src/views/order/orderRefundList.vue @@ -247,7 +247,7 @@ export default { const searchParam = { ...this.page } searchParam.pageSize = endIndex searchParam.currentPage = this.output.startPage - orderInfoApi.exportExcel(searchParam).then(res => { + orderInfoApi.getRefundOrder(searchParam).then(res => { const link = document.createElement('a') // 创建Blob对象,设置文件类型 const blob = new Blob([res], { type: 'application/vnd.ns-excel' }) // MIME类型 @@ -259,7 +259,8 @@ export default { this.$message.success('导出成功') URL.revokeObjectURL(link.href) // 释放内存 }) - + // const res = await orderInfoApi.getByPage(searchParam) + // tmpData = res.data.list import('@/vendor/Export2Excel').then(excel => { const data = this.formatJson(this.valColumn, tmpData) excel.export_json_to_excel({ diff --git a/src/views/statistics/searchStatisticsList.vue b/src/views/statistics/searchStatisticsList.vue index ff234b4..5eddadb 100644 --- a/src/views/statistics/searchStatisticsList.vue +++ b/src/views/statistics/searchStatisticsList.vue @@ -215,7 +215,7 @@ export default { const searchParam = { ...this.page } searchParam.pageSize = endIndex searchParam.currentPage = this.output.startPage - inspectionApi.exportExcel(searchParam).then(res => { + marketingApi.getByPageNew(searchParam).then(res => { const link = document.createElement('a') // 创建Blob对象,设置文件类型 const blob = new Blob([res], { type: 'application/vnd.ns-excel' }) // MIME类型