From 544e291eb8c6d01de0170b24e31ca8deb0c754dc Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 5 Jan 2023 14:46:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A1=AB=E6=8A=A5=E5=A2=9E=E5=8A=A0loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/hljmz/AppRecoScore/rsApproval.vue | 12 +++++++----- src/project/hljmz/AppRecoScore/rsDetail.vue | 3 ++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/project/hljmz/AppRecoScore/rsApproval.vue b/src/project/hljmz/AppRecoScore/rsApproval.vue index ff6b2fe0..29ec2c83 100644 --- a/src/project/hljmz/AppRecoScore/rsApproval.vue +++ b/src/project/hljmz/AppRecoScore/rsApproval.vue @@ -74,29 +74,31 @@ export default { }, handleReject() { if (this.check()) { + uni.showLoading({title: "提交中..."}) const {$route: {query: {taskDetailId}}, detail: fields} = this this.$http.post("/app/appassessmentscorev2task/examine", { taskDetailId, pass: false, fields }).then(res => { if (res?.code == 0) { this.$u.toast("提交成功!") - setTimeout(()=>uni.reLaunch({url:"./AppRecoScore"}),1500) + setTimeout(() => uni.reLaunch({url: "./AppRecoScore"}), 1500) } - }) + }).finally(uni.hideLoading) } }, handlePass() { if (this.check()) { + uni.showLoading({title: "提交中..."}) const {$route: {query: {taskDetailId}}, detail: fields} = this this.$http.post("/app/appassessmentscorev2task/examine", { taskDetailId, pass: true, fields }).then(res => { if (res?.code == 0) { this.$u.toast("提交成功!") - setTimeout(()=>uni.reLaunch({url:"./AppRecoScore"}),1500) + setTimeout(() => uni.reLaunch({url: "./AppRecoScore"}), 1500) } - }) + }).finally(uni.hideLoading) } }, check() { @@ -123,7 +125,7 @@ export default {