<!--
|
功能描述:后台管理 - 资源管理 - 数据源管理 - 列表
|
-->
|
<!DOCTYPE html>
|
<html xmlns:th="http://www.w3.org/1999/xhtml">
|
<head>
|
<meta charset="UTF-8" />
|
<title th:text="${systemName}"></title>
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport" />
|
<link rel="stylesheet" th:href="@{${pubzyWebRoot} + 'BootStrap4/assets/css/style.css'}" />
|
<link rel="stylesheet" th:href="@{${pubzyWebRoot} + 'BootStrap4/expand/css/bootstrap-extract.css'}" />
|
<link rel="stylesheet" th:href="@{${pubzyWebRoot} + 'BootStrap4/assets/plugins/bootstrap-datepicker/old_datepaker/datepicker.css'}" />
|
<link th:href="@{${pubzyWebRoot} + 'ext-4.2.1.883/resources/css/ext-all-neptune.css'}" rel="stylesheet" type="text/css" />
|
<link href="/js/jqUI/jquery-ui.min.css" rel="stylesheet" type="text/css" />
|
<!-- 表单样式 -->
|
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/js/jquery.min.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/expand/plugins/layer/layer.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/js/tether.min.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/js/bootstrap.min.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/plugins/bootstrap-datepicker/old_datepaker/bootstrap-datepicker.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/plugins/bootstrap-datepicker/old_datepaker/bootstrap-datepicker.zh-CN.min.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'ext-4.2.1.883/ext-all.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'ext-4.2.1.883/locale/ext-lang-zh_CN.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'ext-4.2.1.883/PagingToolbar.js'}"></script>
|
<script src="/js/manage/datasource/index.js"></script>
|
<script src="/js/jqUI/jquery-ui.min.js"></script>
|
<script th:src="@{${pubzyWebRoot} + 'media/js/winPro.js'}"></script>
|
<script src="/js/common.js"></script>
|
<link href="/css/grid-selfAdaptH.css" rel="stylesheet" type="text/css"/>
|
<style type="text/css">
|
.DivHeight {
|
height: 45px;
|
}
|
|
.form-horizontal .control-label {
|
width: 70px;
|
}
|
|
[class*='span'] {
|
margin-left: 0 !important;
|
}
|
|
.row-fluid [class*='span'] {
|
margin-left: 0 !important;
|
}
|
|
.row {
|
margin-left: 0;
|
margin-right: 0;
|
}
|
|
.x-grid-row td,
|
.x-grid-data-row td {
|
border-right: 1px solid #E3E3E3;
|
}
|
|
.x-grid-view {
|
overflow: hidden !important;
|
}
|
|
.x-body{
|
overflow-x: hidden;
|
}
|
.col-sm-12, .col-md-6, .col-lg-4, .col-xl-3{
|
padding-left: 0;
|
padding-right: 0;
|
}
|
.ui-autocomplete{
|
max-height:100px;
|
overflow-y:auto;
|
overflow-x:hidden;
|
}
|
|
body {
|
padding-bottom: 10px;
|
}
|
|
.panel-body {
|
padding-right: 40px;
|
}
|
|
</style>
|
<script type="text/javascript">
|
|
//资源新增或查看(修改)
|
function ZiYuanEdit(id) {
|
var url = "";
|
var action = "";
|
if (!id) {
|
action = "新增资源";
|
url = "/res/manage/datasource/edit"; //新增
|
}
|
else {
|
action = "查看资源";
|
url = "/res/manage/datasource/edit?datasourceid=" + id; //查看(修改)
|
}
|
// winPro.openFullwin(url, action, "yes");
|
openFullWindow(url, action)
|
}
|
function findUserByWord(){
|
var username = $("#faburen").val();
|
$("#faburen").autocomplete({
|
source: '/res/user/findUserByWord?keyWord=' + encodeURI(encodeURI(username)), //请求的url
|
minLength: 1,
|
select: function (event, ui) {
|
$("#createuserid").val(ui.item.id);
|
}
|
});
|
}
|
</script>
|
</head>
|
<body>
|
<div id="rapp">
|
<div v-show="showList">
|
<div class="panel panel-default">
|
<div class="panel-heading">
|
查询区
|
</div>
|
<div class="panel-body SearchBox">
|
<form id="SearchForm">
|
<div class="row">
|
<div class="col-sm-12 col-md-6 col-lg-4 col-xl-3 DivHeight">
|
<label class="control-label">数据库名称</label>
|
<div class="controls">
|
<input type="text" class="form-control col-sm-11" id="databasename" name="databasename" value="" />
|
</div>
|
</div>
|
<div class="col-sm-12 col-md-6 col-lg-4 col-xl-3 DivHeight">
|
<label class="control-label">数据库类型</label>
|
<div class="controls">
|
<select id="databasetype" name="databasetype" class="form-control col-sm-11">
|
<option value="">全部</option>
|
<option th:each="item:${databasetype}" th:value="${item.key}" th:text="${item.value}"></option>
|
</select>
|
</div>
|
</div>
|
|
</div>
|
<div class="row" style="display:block;">
|
<div style="padding-left: 1.75em; float: left;"><a class="btn btn-success" onclick="ZiYuanEdit();"><i class="fa fa-plus"></i> 新增</a></div>
|
<div style="float: right;">
|
<a class="btn btn-primary-outline" onclick="Search();"><i class="fa fa-search"></i> 查询</a>
|
<a class="btn btn-primary-outline" onclick="Clear();"><i class="fa fa-trash-o"></i> 清除</a>
|
</div>
|
</div>
|
</form>
|
</div>
|
</div>
|
<div id="grid" style="width: 100%"></div>
|
</div>
|
</div>
|
</body>
|
</html>
|