From 38ce42758958f28d25aaa0daf05e6c9b71261ef6 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期二, 11 二月 2025 17:05:20 +0800 Subject: [PATCH] qx --- src/views/reservation/reservations/index.vue | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/views/reservation/reservations/index.vue b/src/views/reservation/reservations/index.vue index 15c4e48..5d3052d 100644 --- a/src/views/reservation/reservations/index.vue +++ b/src/views/reservation/reservations/index.vue @@ -1137,7 +1137,7 @@ </el-form-item> </el-form> <div slot="footer" class="dialog-footer2"> - <el-button type="primary" @click="submitType">纭� 瀹�</el-button> + <el-button type="primary" @click="submitType" >纭� 瀹�</el-button> <el-button @click="cancel">鍙� 娑�</el-button> </div> </el-dialog> @@ -1856,7 +1856,7 @@ import { addComp, addPlOrderAndDetail } from "@/api/system/comp"; import Big from "big.js"; - +import { Loading } from 'element-ui'; import { listReservation, gettjCancel, @@ -2688,12 +2688,15 @@ // this.selectList.forEach((item) => { // cusIds.push(item.idCard); // }); + let loadingInstance1 = Loading.service({ fullscreen: true,text:"绛惧埌涓�" }); let data = { cusIds: this.cusIds, tjCategory: this.forms.tjCategory, }; + this.open2 = false; addPlOrderAndDetail(data).then((res) => { - this.open2 = false; + if(res.code == 200){ + this.open2 = false; this.$modal.msgSuccess("绛惧埌鎴愬姛"); if (res.file) { let base64 = res.file; @@ -2711,6 +2714,9 @@ }); }else{ let _this = this; + this.$nextTick(() => { // 浠ユ湇鍔$殑鏂瑰紡璋冪敤鐨� Loading 闇�瑕佸紓姝ュ叧闂� + loadingInstance1.close(); +}); var websocket = null; var url = _this.valueUrls; if ("WebSocket" in window) { @@ -2765,6 +2771,12 @@ this.getList() } + }else{ + this.$nextTick(() => { // 浠ユ湇鍔$殑鏂瑰紡璋冪敤鐨� Loading 闇�瑕佸紓姝ュ叧闂� + loadingInstance1.close(); +}); + } + }); }, -- Gitblit v1.8.0