From 34631c0668ffc5165d831ce6c67d19be1bf91494 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Tue, 29 Mar 2022 09:16:59 +0800 Subject: [PATCH] 28588 --- .../jianping/AppRiskWarning/components/Add.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/jianping/AppRiskWarning/components/Add.vue b/packages/jianping/AppRiskWarning/components/Add.vue index bcb24a35..b6089195 100644 --- a/packages/jianping/AppRiskWarning/components/Add.vue +++ b/packages/jianping/AppRiskWarning/components/Add.vue @@ -25,7 +25,11 @@ - + @@ -97,6 +101,7 @@ riskType: '' }, id: '', + isLoading: false, disabledLevel: 3 } }, @@ -134,6 +139,7 @@ confirm () { this.$refs.form.validate((valid) => { if (valid) { + this.isLoading = true this.instance.post(`/app/apppreventionreturntopovertyriskperson/addOrUpdate`, { ...this.form }).then(res => { @@ -141,8 +147,13 @@ this.$message.success('提交成功') setTimeout(() => { this.cancel(true) + this.isLoading = false }, 600) + } else { + this.isLoading = false } + }).catch(() => { + this.isLoading = false }) } })