系统名称

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

View File

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