懒羊羊
2023-09-19 3d2401cf8ea9ae3d830c0568e7751e2e8cc8db22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@layout("/common/_container.html",{js:["/assets/modular/databaseInfo/databaseInfo_add.js"]}){
 
<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>
 
<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="databaseInfoForm" lay-filter="databaseInfoForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                <input name="dbId" type="hidden"/>
                <div class="layui-form-item">
                    <label class="layui-form-label">数据库名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="dbName" name="dbName" placeholder="数据库名称" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">JDBC驱动<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <select name="jdbcDriver">
                            <option value="com.mysql.cj.jdbc.Driver">Mysql</option>
                            <option value="oracle.jdbc.OracleDriver">Oracle</option>
                            <option value="net.sourceforge.jtds.jdbc.Driver">Sql Server</option>
                            <option value="org.postgresql.Driver">Postgre Sql</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">JDBC账号<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="userName" name="userName" placeholder="账号" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">JDBC密码<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="password" name="password" placeholder="密码" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">JDBC URL<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="jdbcUrl" name="jdbcUrl" placeholder="jdbc的url" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                    </div>
                    <div class="layui-form-mid layui-word-aux" style="margin-left: 120px;">参考:<br/>
                        oracle:jdbc:oracle:thin:\@127.0.0.1:1521:ORCLCDB<br/>
                        sql server:jdbc:jtds:sqlserver://127.0.0.1:1433;DatabaseName=guns<br/>
                        pg sql:jdbc:postgresql://127.0.0.1:5432/guns<br/>
                        mysql:jdbc:mysql://127.0.0.1:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input id="remarks" name="remarks" placeholder="备注" type="text" class="layui-input" autocomplete="off"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
 
@}