Skip to content

Commit

Permalink
修复sql查询页面,数据库类型为PgSQL, schema下拉列表不显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
蒋宏飞 committed Sep 1, 2023
1 parent 61f493e commit 1b9bcd3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sql/templates/sqlquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,14 @@ <h4 class="modal-title text-danger">收藏语句</h4>
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) {
Expand Down

0 comments on commit 1b9bcd3

Please sign in to comment.