Commit c70a58fc by zhangquan

添加loding

1 parent 0dbecfe0
......@@ -779,6 +779,7 @@ export default {
},
mounted() {},
beforeDestroy() {
this.$notify.closeAll()
clearInterval(this.exportTimer)
this.exportTimer = null
const { pageNum, pageSize } = this.$refs?.equityRef?.page || {}
......@@ -1036,6 +1037,12 @@ export default {
},
exportList() {
const parmas = { ...this.getParams() }
this.$notify({
title: '提示',
type: 'success',
message: '正在导出,请稍等片刻...',
duration: 0
})
this.$apis.claims.exportGHClaimsListApi(parmas).then(res => {
if (res.status != 2) {
this.exportKey = res.key
......@@ -1045,6 +1052,7 @@ export default {
}, this.$constantData.delayTime || 5000)
}
} else {
this.$notify.closeAll()
this.$message.error(res.message)
}
// var a = document.createElement('a')
......@@ -1061,11 +1069,13 @@ export default {
if (this.exportNum > calcTime) {
clearInterval(this.exportTimer)
this.exportTimer = null
this.$notify.closeAll()
return this.$message.error('导出失败,请重试!')
}
this.$apis.claims.getExportUrlApi({ key: this.exportKey }).then(res => {
if (res.status != 2) {
if (res.status == 1) {
this.$notify.closeAll()
clearInterval(this.exportTimer)
this.exportTimer = null
let tempaa = utils.getExplorer()
......@@ -1079,6 +1089,7 @@ export default {
}
}
} else {
this.$notify.closeAll()
this.$message.error(res.message)
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!