fix:导出快照 添加loading

This commit is contained in:
zhangyu
2022-10-17 17:35:54 +08:00
parent a383f0ef92
commit 6db8c17b27
2 changed files with 11 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import bus from '@/libs/bus'
import { Loading } from 'element-ui'
export default {
data () {
return {
@@ -20,7 +21,13 @@ export default {
end: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.searchTime[1])),
vars: vars
}
const loading = Loading.service({
lock: true,
customClass: 'export-pdf-mask',
background: 'rgba(0,0,0,.2)'
})
this.$get('/visual/panel/snapshot', params, 'blob').then(res => {
loading.close()
const self = this
let fileName = name
const resFileName = ''