From 1b9bcd398d8ea854b980bdbce7c2dabe270e49a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=E5=AE=8F=E9=A3=9E?= Date: Fri, 1 Sep 2023 16:55:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsql=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=95=B0=E6=8D=AE=E5=BA=93=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=BAPgSQL,=20schema=E4=B8=8B=E6=8B=89=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/templates/sqlquery.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sql/templates/sqlquery.html b/sql/templates/sqlquery.html index 6fd519a930..d867f0c62c 100644 --- a/sql/templates/sqlquery.html +++ b/sql/templates/sqlquery.html @@ -1115,6 +1115,14 @@ resource_type: resource_type }, complete: function () { + if (optgroup === "PgSQL") { + //获取schema + $("#div-schema_name").show(); + $("#schema_name").selectpicker('val', db_name); + if ($("#schema_name").val()) { + $("#schema_name").selectpicker().trigger("change"); + } + } }, success: function (data) { if (data.status === 0) {