From 1426b6e5160f29158947b4cf3d77fb8b8087a51d Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 20 Jan 2025 16:58:39 +0800 Subject: [PATCH] loading --- src/pages/modules/taskmanage/CarryPoint.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pages/modules/taskmanage/CarryPoint.vue b/src/pages/modules/taskmanage/CarryPoint.vue index f1a2475..03eae98 100644 --- a/src/pages/modules/taskmanage/CarryPoint.vue +++ b/src/pages/modules/taskmanage/CarryPoint.vue @@ -122,8 +122,15 @@ export default { this.$refs.child.active = false }, async __confirmPoint (code, type) { + this.loading = this.$loading({ + lock: true, + text: this.$t('common.loading'), + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }) try { let res = await confirmPoint(code, type) + this.loading.close() if (this.timer) { clearInterval(this.timer) } @@ -133,6 +140,7 @@ export default { }, 1000) } catch (e) { console.log(e) + this.loading.close() } }, toCancle () {