<!DOCTYPE html>
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.w3.org/1999/xhtml"
|
xmlns:th="http://www.thymeleaf.org">
|
<head>
|
<meta charset="UTF-8" />
|
<title>资源新增或修改</title>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<script th:src="@{${jspwebroot}+'utf8-jsp/ueditor.config.js'}"></script>
|
<script th:src="@{${jspwebroot}+'utf8-jsp/ueditor.all.js'}"></script>
|
<script th:src="@{${jspwebroot}+'utf8-jsp/lang/zh-cn/zh-cn.js'}"></script>
|
<style>
|
body {
|
background-color: white;
|
box-sizing: border-box;
|
overflow-x: hidden;
|
}
|
|
.form-control {
|
padding: 0.3rem 0.7rem;
|
height: 34px;
|
display: inline-block;
|
}
|
|
.control-label {
|
padding-top: 0 !important;
|
width: 160px;
|
float: left;
|
line-height: 30px;
|
padding-right: 1.5em;
|
}
|
|
.control-group {
|
margin-bottom: 1em;
|
}
|
|
.controls {
|
margin-left: 160px;
|
}
|
|
.col-sm-3, .col-sm-6, .col-sm-12 {
|
padding-left: 0;
|
padding-right: 0;
|
}
|
|
.fade {
|
display: none;
|
}
|
|
.in.fade {
|
display: block;
|
}
|
|
.control-group error {
|
border-color: #b94a48;
|
}
|
|
#button {
|
color: #fff !important;
|
background-color: #039cfd !important;
|
border-color: #039cfd !important;
|
}
|
|
img {
|
cursor: pointer;
|
}
|
|
.nav-tabs > .active > a, .nav-tabs > .active > a:hover, .nav-tabs > .active > a:focus {
|
color: #555;
|
cursor: default;
|
background-color: #fff;
|
border: 1px solid #ddd;
|
border-bottom-color: transparent;
|
}
|
|
. {
|
display: none;
|
}
|
|
.tags-wrapper {
|
width: 75%;
|
display: inline-block;
|
}
|
|
#tagInput {
|
width: 100%;
|
}
|
|
.layer-tags-wrapper {
|
z-index: 9;
|
}
|
|
#tbGKList td {
|
border: 1px solid #ccc;
|
}
|
|
#tbGKList input{
|
text-align:center;
|
width:100%;
|
min-height: 30px;
|
}
|
|
/*富文本编辑器底部元素路径隐藏*/
|
.edui-default .edui-editor-breadcrumb {
|
display: none;
|
}
|
|
#contents{
|
margin-left: -0.6%;
|
}
|
|
#PhotoDiv1:hover {
|
-webkit-animation:blink 1s;
|
animation:blink 1s;
|
}
|
|
@-webkit-keyframes blink {
|
0% {
|
opacity: 1
|
}
|
|
50% {
|
opacity: .7
|
}
|
|
100% {
|
opacity: 1
|
}
|
}
|
|
@keyframes blink {
|
0% {
|
opacity: 1
|
}
|
|
50% {
|
opacity: .7
|
}
|
|
100% {
|
opacity: 1
|
}
|
}
|
</style>
|
<style>
|
.controls .chosen-container {
|
width: 75% !important;
|
}
|
</style>
|
</head>
|
<body style="background-color:white !important;">
|
<div>
|
<form class="form-horizontal">
|
<div class="portlet-body" style="margin-top:10px;">
|
<div class="row">
|
<div class="col-sm-6">
|
<div class="control-group">
|
<input type="hidden" class="form-control col-sm-11" id="tabletype" name="tabletype" />
|
<label class="control-label">数据源<span style="color: red;">*</span></label>
|
<div class="controls input-icon">
|
<input type="hidden" class="form-control col-sm-11" id="databasetype" name="databasetype" />
|
<input id="datasourceid" name="datasourceid" class="form-control col-sm-8" type="hidden" required=""/>
|
<input id="databasename" class="form-control col-sm-7" style="width:57%" readonly="readonly" onpropertychange="" />
|
<button title="选择数据源" type="button" class="btn btn-primary" id="ShowDataBase" style="vertical-align:baseline; padding: 0.375em 0.7em;">选择</button>
|
<button title="新增数据源" type="button" class="btn btn-primary" onclick="addShuJuYuan();" style="vertical-align:baseline;padding: 0.375em 0.7em;">新增</button>
|
<span class="input-warning tooltips" data-original-title="">
|
<i class="fa-warning-sign" style="display: none;margin-left:30px;"></i>
|
</span>
|
</div>
|
</div>
|
</div>
|
<div class="col-sm-6" id="space">
|
<div class="control-group">
|
<label class="control-label">表空间</label>
|
<div class="controls input-icon">
|
<input id="spacename" name="spacename" class="form-control col-sm-9"/>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="row">
|
<div class="col-sm-6">
|
<div class="control-group">
|
<label class="control-label">表名称</label>
|
<div class="controls input-icon">
|
<select class="form-control col-sm-9" id="tablename" name="tablename" onchange="changeFieldConfig(this.value);">
|
<option value="">选择数据库表</option>
|
<option></option>
|
</select>
|
</div>
|
</div>
|
</div>
|
<div class="col-sm-6">
|
<div class="control-group">
|
<label class="control-label">主键<span style="color: red;">*</span></label>
|
<div class="controls input-icon">
|
<select id="primarykey" name="primarykey" class="form-control col-sm-9 form-control-chosen" multiple data-placeholder="请选择主键……" required="">
|
<!--<option th:each="item:${keys}" th:value="${item}" th:text="${item}" selected="true"></option>-->
|
</select>
|
<!--<input th:value="${Res_ExtDataBase.primarykey}" id="primarykey" name="primarykey" class="form-control col-sm-9" required=""/>
|
<label class="col-sm-9">说明:属性类型表主键不能为空、且字段配置必须勾选。</label>-->
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="row">
|
<div class="col-sm-6">
|
<div class="control-group">
|
<label class="control-label">时间戳字段</label>
|
<div id="div_timefield" class="controls input-icon">
|
<input id="timestampfield" name="timestampfield" class="form-control col-sm-9"/>
|
</div>
|
<div id="timefield" class="controls input-icon">
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="row">
|
<div class="col-sm-12">
|
<div class="control-group">
|
<label class="control-label">字段配置<span style="color: red;">*</span></label>
|
<div class="controls input-icon">
|
<textarea required="" readonly="readonly" id="fieldconfig" name="fieldconfig"
|
class="form-control col-sm-10" cols="20" style="height: 300px;" ></textarea>
|
<button title="配置" type="button" class="btn btn-primary" onclick="peizhi()" style="vertical-align:baseline;padding: 0.375em 0.7em;">配置</button>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
</body>
|
</html>
|