From bdad0a5e26db0588761da9b922980a6fdfb89a4c Mon Sep 17 00:00:00 2001 From: donghao Date: Sun, 22 Oct 2023 16:25:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20dialogConfirmDisabled=20=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E9=87=8D=E5=A4=8D=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 36eb70662d780f157b4641cff1a184a4dd1cfcee) --- simpleui/templates/admin/actions.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/simpleui/templates/admin/actions.html b/simpleui/templates/admin/actions.html index 8c151d0e..1f7d55b7 100644 --- a/simpleui/templates/admin/actions.html +++ b/simpleui/templates/admin/actions.html @@ -188,7 +188,8 @@ - + @@ -206,7 +207,8 @@ params: [], layer: {}, rules: [], - action: '' + action: '', + dialogConfirmDisabled: false }, methods: { layerSubmit() { @@ -241,11 +243,12 @@ data.append(item.key, item.value); } } - + this.dialogConfirmDisabled = true; axios.post('{% get_model_ajax_url %}'+window.location.search, data).then(res => { if (res.data.status === 'redirect') { self.visible = false; window.location.href = res.data.url; + this.dialogConfirmDisabled = false; return; } if (res.data.status == 'success') { @@ -257,6 +260,7 @@ message: res.data.msg, type: res.data.status }); + this.dialogConfirmDisabled = false; }).catch(err => self.$message.error(err)); } }