pull/18/head
xiaozhiyong 1 year ago
parent 4e2c1e76d4
commit 9913133c70
  1. 4
      src/views/order/index.vue

@ -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)
})

Loading…
Cancel
Save