From 0ac5c7637d68bc634324afbbcc654dab5f3c4ea9 Mon Sep 17 00:00:00 2001 From: hhyo Date: Sat, 27 Jul 2019 21:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=94=AE=E6=9F=A5=E8=AF=A2=E6=97=B6?= =?UTF-8?q?=E4=B9=9F=E4=B8=BB=E5=8A=A8=E7=A6=81=E7=94=A8=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/templates/sqlquery.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sql/templates/sqlquery.html b/sql/templates/sqlquery.html index b97de36548..61f67f260b 100644 --- a/sql/templates/sqlquery.html +++ b/sql/templates/sqlquery.html @@ -474,7 +474,6 @@ $("#instance_name").selectpicker('val', row_data['instance_name']); if ($("#instance_name").val()) { $("#instance_name").selectpicker().trigger("change"); - get_instance(false) } $("#db_name").selectpicker('val', row_data['db_name']); let instance_name = $("#instance_name").val(); @@ -758,6 +757,8 @@ //将数据通过ajax提交给后端进行检查 function sqlquery(sql) { + $('input[type=button]').addClass('disabled'); + $('input[type=button]').prop('disabled', true); var select_sqlContent = editor.session.getTextRange(editor.getSelectionRange()); if (select_sqlContent) { sqlContent = select_sqlContent @@ -882,7 +883,7 @@ } $("#instance_name").change(function () { - get_instance(true) + get_instance(false) });