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 }) } })