From 7d438de94a12144925af55e4cdd4f4df9cdc534f Mon Sep 17 00:00:00 2001 From: zyn Date: Tue, 7 Nov 2023 10:52:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AEloading-=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF-=E4=BC=81=E6=A0=87=E5=A4=8D=E5=AE=A1=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processCenter/pages/phone/qbfs/step5.vue | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/pages/processCenter/pages/phone/qbfs/step5.vue b/src/pages/processCenter/pages/phone/qbfs/step5.vue index 39537283d..86a0ced25 100644 --- a/src/pages/processCenter/pages/phone/qbfs/step5.vue +++ b/src/pages/processCenter/pages/phone/qbfs/step5.vue @@ -562,6 +562,7 @@ export default { //流程保存 handleSave(){ this.saveLoading = true + this.isSubmit = true let _formData = new FormData() _formData.append('id', this.bpnId || '') _formData.append('createUser', this.$store.getters.userInfo.account) @@ -572,11 +573,11 @@ export default { commentText: this.commentText })) saveTaskFirst(_formData).then(res => { - this.saveLoading = false this.$message.success('保存成功') this.bpnId = res.result - }).catch(e => { + }).finally(() => { this.saveLoading = false + this.isSubmit = false }) }, processEditFile(id) { @@ -615,13 +616,16 @@ export default { return res }) } - this.submitLoading = false // hwh5.close() this.$router.go(-2) // this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) } else { + this.submitLoading = false this.isSubmit = false } + }).catch(() => { + this.submitLoading = false + this.isSubmit = false }) }, async routerBussProStand(){ @@ -651,10 +655,11 @@ export default { commentText: this.commentText })) saveTaskFirst(_formData).then(res => { - this.saveLoading = false this.$message.success('自动创建企标制修订-产品标准流程,跳转至主起草人流程中心草稿') this.bpnId = res.result - }).catch(e => { + }).finally(() => { + this.saveLoading = false + this.isSubmit = false }) }, //流程提交 @@ -674,8 +679,10 @@ export default { _this: this }, res => { if (res.success) { - this.isSubmit = false this.processCreateFsBuss(json) + } else { + this.isSubmit = false + this.saveLoading = false } }, e => { });