Commit c70a58fc by zhangquan

添加loding

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