更新
This commit is contained in:
@@ -273,12 +273,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
exportData() {
|
||||
order.exportRefineryOrders({}).then(res => {
|
||||
order.exportRefineryOrders(this.parameter.params).then(res => {
|
||||
let element = document.createElement('a')
|
||||
let blob = new Blob([res], { type: 'application/vnd.ms-excel' })
|
||||
element.href = URL.createObjectURL(blob)
|
||||
let { y, M, d, h, m } = this.$utils.parseTime(new Date())
|
||||
element.download = `订单列表 ${y}-${M}${d} ${h}:${m}`
|
||||
element.download = `订单列表 ${y}-${M}-${d} ${h}:${m}`
|
||||
element.click()
|
||||
URL.revokeObjectURL(element.href)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user