This repository was archived by the owner on Nov 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +48
-0
lines changed
src/main/web/views/@default/settings Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,21 @@ <h3>MySQL连接设置</h3>
42
42
< p class ="comment "> 选中后,如果数据库不存在,在检查数据库时会尝试自动创建数据库。</ p >
43
43
</ td >
44
44
</ tr >
45
+ < tr >
46
+ < td colspan ="2 ">
47
+ < a href ="" v-if ="!advancedOptionsVisible " @click.prevent ="showAdvancedOptions() " style ="font-weight:normal "> 更多选项 < i class ="icon down angle "> </ i > </ a >
48
+ < a href ="" v-if ="advancedOptionsVisible " @click.prevent ="showAdvancedOptions() " style ="font-weight:normal "> 收起选项 < i class ="icon up angle "> </ i > </ a >
49
+ </ td >
50
+ </ tr >
51
+ < tbody v-show ="advancedOptionsVisible ">
52
+ < tr >
53
+ < td > 连接池最大尺寸</ td >
54
+ < td >
55
+ < input type ="text " name ="poolSize " style ="width:5em " v-model ="config.poolSize " maxlength ="4 "/>
56
+ < p class ="comment "> 0表示默认,根据MySQL所在服务器的性能可以适当增加连接池,从而提升写日志的速度。建议在10-100之间选择。</ p >
57
+ </ td >
58
+ </ tr >
59
+ </ tbody >
45
60
</ table >
46
61
47
62
< div class ="ui message error " v-if ="!dbTestResult.ok && !dbTestResult.isRunning && dbTestResult.message.length > 0 "> {{dbTestResult.message}}</ div >
Original file line number Diff line number Diff line change @@ -65,4 +65,13 @@ Tea.context(function () {
65
65
this . saveFail = function ( resp ) {
66
66
alert ( resp . message ) ;
67
67
} ;
68
+
69
+ /**
70
+ * 高级选项
71
+ */
72
+ this . advancedOptionsVisible = false ;
73
+
74
+ this . showAdvancedOptions = function ( ) {
75
+ this . advancedOptionsVisible = ! this . advancedOptionsVisible ;
76
+ } ;
68
77
} ) ;
Original file line number Diff line number Diff line change @@ -42,6 +42,21 @@ <h3>PostgreSQL连接设置</h3>
42
42
< p class ="comment "> 选中后,如果数据库不存在,在检查数据库时会尝试自动创建数据库。</ p >
43
43
</ td >
44
44
</ tr >
45
+ < tr >
46
+ < td colspan ="2 ">
47
+ < a href ="" v-if ="!advancedOptionsVisible " @click.prevent ="showAdvancedOptions() " style ="font-weight:normal "> 更多选项 < i class ="icon down angle "> </ i > </ a >
48
+ < a href ="" v-if ="advancedOptionsVisible " @click.prevent ="showAdvancedOptions() " style ="font-weight:normal "> 收起选项 < i class ="icon up angle "> </ i > </ a >
49
+ </ td >
50
+ </ tr >
51
+ < tbody v-show ="advancedOptionsVisible ">
52
+ < tr >
53
+ < td > 连接池最大尺寸</ td >
54
+ < td >
55
+ < input type ="text " name ="poolSize " style ="width:5em " v-model ="config.poolSize " maxlength ="4 "/>
56
+ < p class ="comment "> 0表示默认,根据PostgreSQL所在服务器的性能可以适当增加连接池,从而提升写日志的速度。建议在10-100之间选择。</ p >
57
+ </ td >
58
+ </ tr >
59
+ </ tbody >
45
60
</ table >
46
61
47
62
< div class ="ui message error " v-if ="!dbTestResult.ok && !dbTestResult.isRunning && dbTestResult.message.length > 0 "> {{dbTestResult.message}}</ div >
Original file line number Diff line number Diff line change @@ -65,4 +65,13 @@ Tea.context(function () {
65
65
this . saveFail = function ( resp ) {
66
66
alert ( resp . message ) ;
67
67
} ;
68
+
69
+ /**
70
+ * 高级选项
71
+ */
72
+ this . advancedOptionsVisible = false ;
73
+
74
+ this . showAdvancedOptions = function ( ) {
75
+ this . advancedOptionsVisible = ! this . advancedOptionsVisible ;
76
+ } ;
68
77
} ) ;
You can’t perform that action at this time.
0 commit comments