From e2f7148c8d5103e1b76e8b31d65f1c3de72c3afc Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期一, 11 八月 2025 14:54:12 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb_region --- 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