优化loading

main-20240105
赵夫琳 8 months ago
parent 2197b7f12d
commit febee0226e

@ -85,20 +85,25 @@ export default {
this.$loading(true, 'loadingSb')
if (this.key == 2) {
approveTask(obj).then(() => {
this.$forceCloseLoading()
this.$EventBus.$emit('handleResetLive', 'company-myTrips')
this.$EventBus.$emit('handleResetLive', 'company-myClaim')
history.back()
this.$loading(false, 'loadingSb')
}).catch(() => {
this.$loading(false, 'loadingSb')
this.$forceCloseLoading()
})
} else {
rejectTask(obj).then(() => {
this.$forceCloseLoading()
this.$EventBus.$emit('handleResetLive', 'company-myTrips')
this.$EventBus.$emit('handleResetLive', 'company-myClaim')
history.back()
this.$loading(false, 'loadingSb')
this.$forceCloseLoading()
}).catch(() => {
this.$forceCloseLoading()
this.$loading(false, 'loadingSb')
})
}

Loading…
Cancel
Save