培训功能数据未能及时更新bug修复

2024年2月22日v1.0.55^2
liujun 2024-02-21 19:11:41 +08:00
parent e921d03320
commit 521ce5f73f
1 changed files with 16 additions and 13 deletions

View File

@ -317,6 +317,7 @@ export default {
axios.get(config.httpurl + '/classMessage/excel?CLASS_MESSAGE_ID=' + id, { axios.get(config.httpurl + '/classMessage/excel?CLASS_MESSAGE_ID=' + id, {
responseType: 'blob' responseType: 'blob'
}).then(res => { }).then(res => {
setTimeout(() => {
const blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }) const blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
const downloadElement = document.createElement('a') const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob) const href = window.URL.createObjectURL(blob)
@ -330,6 +331,7 @@ export default {
this.$emit('getResult', '') this.$emit('getResult', '')
loading.close() loading.close()
this.close() this.close()
}, 2000)
}).catch((e) => { }).catch((e) => {
console.log(e) console.log(e)
loading.close() loading.close()
@ -362,6 +364,7 @@ export default {
}) })
this.visible = false this.visible = false
this.loading = false this.loading = false
this.close()
this.$emit('getResult', '') this.$emit('getResult', '')
}).catch((e) => { }).catch((e) => {
this.loading = false this.loading = false