diff --git a/simpleui/templates/admin/actions.html b/simpleui/templates/admin/actions.html
index 73574816..b8586a1a 100644
--- a/simpleui/templates/admin/actions.html
+++ b/simpleui/templates/admin/actions.html
@@ -192,7 +192,8 @@
@@ -210,7 +211,8 @@
params: [],
layer: {},
rules: [],
- action: ''
+ action: '',
+ dialogConfirmDisabled: false
},
methods: {
layerSubmit() {
@@ -245,11 +247,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') {
@@ -261,6 +264,7 @@
message: res.data.msg,
type: res.data.status
});
+ this.dialogConfirmDisabled = false;
}).catch(err => self.$message.error(err));
}
}