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