导出
This commit is contained in:
@@ -283,7 +283,7 @@ export default {
|
|||||||
const searchParam = { ...this.page }
|
const searchParam = { ...this.page }
|
||||||
searchParam.pageSize = endIndex
|
searchParam.pageSize = endIndex
|
||||||
searchParam.currentPage = this.output.startPage
|
searchParam.currentPage = this.output.startPage
|
||||||
orderInfoApi.exportExcel(searchParam).then(res => {
|
orderInfoApi.getByPage(searchParam).then(res => {
|
||||||
const link = document.createElement('a')
|
const link = document.createElement('a')
|
||||||
// 创建Blob对象,设置文件类型
|
// 创建Blob对象,设置文件类型
|
||||||
const blob = new Blob([res], { type: 'application/vnd.ns-excel' }) // MIME类型
|
const blob = new Blob([res], { type: 'application/vnd.ns-excel' }) // MIME类型
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ export default {
|
|||||||
const searchParam = { ...this.page }
|
const searchParam = { ...this.page }
|
||||||
searchParam.pageSize = endIndex
|
searchParam.pageSize = endIndex
|
||||||
searchParam.currentPage = this.output.startPage
|
searchParam.currentPage = this.output.startPage
|
||||||
orderInfoApi.exportExcel(searchParam).then(res => {
|
orderInfoApi.getRefundOrder(searchParam).then(res => {
|
||||||
const link = document.createElement('a')
|
const link = document.createElement('a')
|
||||||
// 创建Blob对象,设置文件类型
|
// 创建Blob对象,设置文件类型
|
||||||
const blob = new Blob([res], { type: 'application/vnd.ns-excel' }) // MIME类型
|
const blob = new Blob([res], { type: 'application/vnd.ns-excel' }) // MIME类型
|
||||||
@@ -259,7 +259,8 @@ export default {
|
|||||||
this.$message.success('导出成功')
|
this.$message.success('导出成功')
|
||||||
URL.revokeObjectURL(link.href) // 释放内存
|
URL.revokeObjectURL(link.href) // 释放内存
|
||||||
})
|
})
|
||||||
|
// const res = await orderInfoApi.getByPage(searchParam)
|
||||||
|
// tmpData = res.data.list
|
||||||
import('@/vendor/Export2Excel').then(excel => {
|
import('@/vendor/Export2Excel').then(excel => {
|
||||||
const data = this.formatJson(this.valColumn, tmpData)
|
const data = this.formatJson(this.valColumn, tmpData)
|
||||||
excel.export_json_to_excel({
|
excel.export_json_to_excel({
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
const searchParam = { ...this.page }
|
const searchParam = { ...this.page }
|
||||||
searchParam.pageSize = endIndex
|
searchParam.pageSize = endIndex
|
||||||
searchParam.currentPage = this.output.startPage
|
searchParam.currentPage = this.output.startPage
|
||||||
inspectionApi.exportExcel(searchParam).then(res => {
|
marketingApi.getByPageNew(searchParam).then(res => {
|
||||||
const link = document.createElement('a')
|
const link = document.createElement('a')
|
||||||
// 创建Blob对象,设置文件类型
|
// 创建Blob对象,设置文件类型
|
||||||
const blob = new Blob([res], { type: 'application/vnd.ns-excel' }) // MIME类型
|
const blob = new Blob([res], { type: 'application/vnd.ns-excel' }) // MIME类型
|
||||||
|
|||||||
Reference in New Issue
Block a user