From 3e812a05de12137872015ff39104b0065363e12e Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期五, 08 八月 2025 08:38:20 +0800 Subject: [PATCH] 1 --- src/views/reservation/resercopy/index.vue | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/src/views/reservation/resercopy/index.vue b/src/views/reservation/resercopy/index.vue index f05c814..36cd621 100644 --- a/src/views/reservation/resercopy/index.vue +++ b/src/views/reservation/resercopy/index.vue @@ -840,7 +840,11 @@ /** 纭鎸夐挳 */ submitForm() { - // if (this.objs.reservationTime && this.data.dwDeptId) { + // 闃叉閲嶅鐐瑰嚮 + if (this.loading) { + return; + } + if (this.objs.reservationTime) { let data = { copeWith: this.ListObj.hjMoney, @@ -850,10 +854,27 @@ yxts: this.objs.yxts, dwId: this.data.dwId, }; + + // 寮�鍚叏灞弆oading + const loading = this.$loading({ + lock: true, + text: '姝e湪鎻愪氦鏁版嵁锛岃绋嶅��...', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); + + this.loading = true; newConfirm(data).then((res) => { + this.loading = false; + loading.close(); // 鍏抽棴鍏ㄥ睆loading this.$modal.msgSuccess("鎻愪氦鎴愬姛"); this.confirm = true; this.userList = []; + }).catch((error) => { + this.loading = false; + loading.close(); // 鍏抽棴鍏ㄥ睆loading + console.error("鎻愪氦澶辫触:", error); + this.$modal.msgError("鎻愪氦澶辫触锛岃閲嶈瘯"); }); } else { this.$modal.msgError("璇峰~鍐欏甫鏄熷彿鍐呭"); -- Gitblit v1.8.0