选择
import { outSchoolData } from '@/api/Admin'
outData() {
outSchoolData().then(response => {
if (!response) {
return false
}
const content = response.data
const url = window.URL.createObjectURL(new Blob([content]))
const link = document.createElement('a')
link.style.display = 'none';
link.href = url
link.setAttribute('download', this.dayFor() + '.xlsx')
document.body.appendChild(link)
link.click()
})
},
dayFor() {
const newDay = new Date()
return newDay.getFullYear() +
'/' +
(newDay.getMonth() +
1) +
'/' +
newDay.getDate() +
' ' +
newDay.getHours() +
':' +
newDay.getMinutes() +
':' +
newDay.getSeconds()
},
import request from '@/router/axios'
export function outSchoolData() {
return request({
url: '/info/outSchool/',
method: 'post',
responseType: 'blob'
})
}
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.e1idc.net