系统名称

This commit is contained in:
wangwenhua 2025-10-21 05:07:47 +08:00
parent abf7a67d07
commit 88dc73abdc

View File

@ -277,14 +277,15 @@ export default {
})
},
methods: {
downloadExcel1() {
this.$http({
this.axios({
method: 'get',
url: '/scenario/battleConsume/downloadExcel1',
url: '/downloadExcel1',
responseType: 'blob'
}).then(res => {
const blob = new Blob([res.data], {
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
const blob = new Blob([res], {
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
})
const link = document.createElement('a')
link.href = URL.createObjectURL(blob)