From 1fc5c4ffd234e039c5e1017939e1e52865a9d76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Mon, 17 Feb 2020 11:20:10 +0800 Subject: [PATCH] =?UTF-8?q?MySQL=E5=92=8CPostgreSQL=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=BF=9E=E6=8E=A5=E6=B1=A0=E5=B0=BA=E5=AF=B8?= =?UTF-8?q?=E3=80=81=E8=BF=9E=E6=8E=A5=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E5=A2=9E=E5=A4=A7=E9=BB=98=E8=AE=A4=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E6=B1=A0=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/views/@default/settings/mysql/update.html | 15 +++++++++++++++ .../web/views/@default/settings/mysql/update.js | 9 +++++++++ .../views/@default/settings/postgres/update.html | 15 +++++++++++++++ .../views/@default/settings/postgres/update.js | 9 +++++++++ 4 files changed, 48 insertions(+) diff --git a/src/main/web/views/@default/settings/mysql/update.html b/src/main/web/views/@default/settings/mysql/update.html index 4d6d2ca4..bcdbc26d 100644 --- a/src/main/web/views/@default/settings/mysql/update.html +++ b/src/main/web/views/@default/settings/mysql/update.html @@ -42,6 +42,21 @@

MySQL连接设置

选中后,如果数据库不存在,在检查数据库时会尝试自动创建数据库。

+ + + 更多选项 + 收起选项 + + + + + 连接池最大尺寸 + + +

0表示默认,根据MySQL所在服务器的性能可以适当增加连接池,从而提升写日志的速度。建议在10-100之间选择。

+ + +
{{dbTestResult.message}}
diff --git a/src/main/web/views/@default/settings/mysql/update.js b/src/main/web/views/@default/settings/mysql/update.js index 42395ad9..b51c6542 100644 --- a/src/main/web/views/@default/settings/mysql/update.js +++ b/src/main/web/views/@default/settings/mysql/update.js @@ -65,4 +65,13 @@ Tea.context(function () { this.saveFail = function (resp) { alert(resp.message); }; + + /** + * 高级选项 + */ + this.advancedOptionsVisible = false; + + this.showAdvancedOptions = function () { + this.advancedOptionsVisible = !this.advancedOptionsVisible; + }; }); \ No newline at end of file diff --git a/src/main/web/views/@default/settings/postgres/update.html b/src/main/web/views/@default/settings/postgres/update.html index a33f7547..088ad1be 100644 --- a/src/main/web/views/@default/settings/postgres/update.html +++ b/src/main/web/views/@default/settings/postgres/update.html @@ -42,6 +42,21 @@

PostgreSQL连接设置

选中后,如果数据库不存在,在检查数据库时会尝试自动创建数据库。

+ + + 更多选项 + 收起选项 + + + + + 连接池最大尺寸 + + +

0表示默认,根据PostgreSQL所在服务器的性能可以适当增加连接池,从而提升写日志的速度。建议在10-100之间选择。

+ + +
{{dbTestResult.message}}
diff --git a/src/main/web/views/@default/settings/postgres/update.js b/src/main/web/views/@default/settings/postgres/update.js index bf4d3931..a3a589aa 100644 --- a/src/main/web/views/@default/settings/postgres/update.js +++ b/src/main/web/views/@default/settings/postgres/update.js @@ -65,4 +65,13 @@ Tea.context(function () { this.saveFail = function (resp) { alert(resp.message); }; + + /** + * 高级选项 + */ + this.advancedOptionsVisible = false; + + this.showAdvancedOptions = function () { + this.advancedOptionsVisible = !this.advancedOptionsVisible; + }; }); \ No newline at end of file