系统名称
This commit is contained in:
parent
abf7a67d07
commit
88dc73abdc
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user