From 3076360f3c4436bdcbf0d0e9d3b335f9f2752467 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Wed, 1 Jul 2020 09:43:47 +0800 Subject: [PATCH] =?UTF-8?q?pc=E9=A1=B5=E9=9D=A2=E9=98=B2=E6=AD=A2=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/activity/group-add-or-update.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/modules/activity/group-add-or-update.vue b/src/views/modules/activity/group-add-or-update.vue index 15e400a..03a4cb3 100644 --- a/src/views/modules/activity/group-add-or-update.vue +++ b/src/views/modules/activity/group-add-or-update.vue @@ -48,7 +48,7 @@ @@ -89,6 +89,7 @@ export default { categoryOptions: [], options: [], loading: false, + disabled:false, uploadUrl: '' } }, @@ -238,11 +239,13 @@ export default { }, // 表单提交 dataFormSubmitHandle: debounce(function () { + this.disabled = true this.$refs['dataForm'].validate((valid) => { if (!valid) { return false } this.$http[!this.dataForm.id ? 'post' : 'put']('/property/group/interest', this.dataForm).then(({ data: res }) => { + this.disabled = false if (res.code !== 0) { return this.$message.error(res.msg) } @@ -255,7 +258,9 @@ export default { this.$emit('refreshDataList') } }) - }).catch(() => {}) + }).catch(() => { + this.loading = false + }) }) }, 1000, { 'leading': true, 'trailing': false }) }