From 6dc35be591548d235f5c9b25b978a022deb31cd4 Mon Sep 17 00:00:00 2001 From: zyn Date: Mon, 6 Nov 2023 09:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AEloading-=E4=BC=81=E6=A0=87?= =?UTF-8?q?=E5=88=B6=E4=BF=AE=E8=AE=A2=E7=AB=8B=E9=A1=B9=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbzxdjhgk/step2.vue | 2 +- .../pages/creatProcess/qbzxdlx/step1.vue | 6 +++++- .../pages/creatProcess/qbzxdlx/step2.vue | 15 ++++++++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step2.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step2.vue index 94805f29e..92a6c12c3 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step2.vue @@ -563,7 +563,7 @@ export default { this.$router.push('/processCenter') } this.isSubmit = false - this.isSubmit = false + this.saveLoading = false }, e => { }); } diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdlx/step1.vue b/src/pages/processCenter/pages/creatProcess/qbzxdlx/step1.vue index 46ae3288a..357c927fe 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdlx/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdlx/step1.vue @@ -1062,6 +1062,7 @@ export default { }, // 保存按钮 handleSave() { + this.saveLoading = true; this.saveLoading = true; let _formData = new FormData(); this.qblx_pageData.qblxFile = this.fileInfoList @@ -1076,8 +1077,9 @@ export default { this.saveLoading = false; this.$message.success("保存成功"); this.bpnId = res.result; - }).catch(e => { + }).finally(() => { this.saveLoading = false; + this.isSubmit = false; }) }, listSubmit (item) { @@ -1137,6 +1139,7 @@ export default { this.$refs["roleForm"].validate(async (valid) => { if (valid) { this.isSubmit = true + this.saveLoading = true; let finishCount = 0; while (finishCount < jsonData.length) { await this.listSubmit(jsonData[finishCount]) @@ -1151,6 +1154,7 @@ export default { this.$router.push('/processCenter') } this.isSubmit = false + this.saveLoading = false; } else { return this.$message.warning("请完善人员信息"); } diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdlx/step2.vue b/src/pages/processCenter/pages/creatProcess/qbzxdlx/step2.vue index 1300e90df..153cef2aa 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdlx/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdlx/step2.vue @@ -539,7 +539,6 @@ { if (valid) { this.isSubmit = true + this.saveLoading = true this.qbfsForm.commentText = this.commentText this.qbfsForm.LXD = this.lxdList && this.lxdList.length > 0 ? this.lxdList[0].id : '' this.qbfsForm.LXDName = '立项单' @@ -903,11 +903,19 @@ export default { this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" }); // this.isSubmit = false; } + this.isSubmit = false; + this.saveLoading = false; }); + } else { + this.isSubmit = false; + this.saveLoading = false; } }); // } // }) + } else { + this.isSubmit = false; + this.saveLoading = false; } // this.isSubmit = false }, e => { @@ -931,6 +939,8 @@ export default { //确认转办 checkedRole3 (data) { this.assigneeNewLoading = true + this.saveLoading = true + this.isSubmit = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id assignee: data[0].id, // 被委托人 @@ -946,6 +956,9 @@ export default { } else { this.$message.warning(res.message) } + }).finally(() => { + this.saveLoading = false + this.isSubmit = false }) }, // 请求转换流程图