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/utils/request.js | 4 ++++ src/views/reservation/reservations/index.vue | 18 +++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index f48f57e..c889a07 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -84,6 +84,10 @@ } return Promise.reject('鏃犳晥鐨勪細璇濓紝鎴栬�呬細璇濆凡杩囨湡锛岃閲嶆柊鐧诲綍銆�') } else if (code === 500) { + let loadingInstance1 = Loading.service({ fullscreen: true,text:"绛惧埌涓�" }); + setTimeout(() => { + loadingInstance1.close(); + }, 1000); if (res.config.url === '/hosp/order/addtTransition') { // 浣跨敤MessageBox鍜孧essage鏉ユ浛浠his.$confirm鍜宼his.$message MessageBox.confirm(res.data.msg, '鎻愮ず', { 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