@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> 提交 </button>
|
<button class="layui-btn layui-btn-primary" type="button" id="backupPage"> 返回 </button>
|
</div>
|
</div>
|
</form>
|
</div>
|
</div>
|
</div>
|
|
@}
|