①字典列表,配置编码移到配置内容前一列
②系统字典与业务字典的item_code字段int类型改为varchar(64)
③业务字典和系统字典表增加一个字段,level_no,层级(新增、修改已加入)
④完成条件分页查询(折叠逻辑与无条件查询一致,)
⑤优化分页查询代码(预留介入条件排序),
待完善:修改、删除时下层级递归处理待添加事务性及测试(待手动抛异常重点测试)
生效范围测试尚未完毕,待处理
jquery Validate验证层级关系受<sys:treeselect>影响,待处理
样式调整:分页样式(尚未调整),
136 lines
7.8 KiB
Plaintext
136 lines
7.8 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
|
<html>
|
|
<head>
|
|
<title>配置信息</title>
|
|
<link href="${ctxStatic}/global/plugins/treeTable/themes/vsStyle/treeTable.min.css" rel="stylesheet" type="text/css" />
|
|
<link href="${ctxStatic}/pages/css/dictInfo.css" rel="stylesheet" type="text/css" />
|
|
<script src="${ctxStatic}/global/plugins/treeTable/jquery.treeTable.min.js" type="text/javascript"></script>
|
|
<script src="${ctxStatic}/pages/scripts/dict.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#treeTable").treeTable({expandLevel : 3}).show();
|
|
});
|
|
//查询
|
|
function page(n,s){
|
|
$("#intype").attr("name",$("#seltype").val());
|
|
$("#pageNo").val(n);
|
|
$("#pageSize").val(s);
|
|
$("#searchForm").attr("action","${ctx}/basics/serviceDictInfo/searchList?itType=${itType}");
|
|
$("#searchForm").submit();
|
|
return false;
|
|
}
|
|
function page2(n,s){
|
|
$("#intype").attr("name",$("#seltype").val());
|
|
$("#pageNo").val(n);
|
|
$("#pageSize").val(s);
|
|
$("#searchForm").attr("action","${ctx}/basics/serviceDictInfo/searchList?itType=${itType}");
|
|
$("#searchForm").submit();
|
|
return false;
|
|
}
|
|
</script>
|
|
<style type="text/css">
|
|
.dropdown-menu {
|
|
min-width: 70px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="theme-panel hidden-xs hidden-sm">
|
|
<button type="button" class="btn btn-default" onclick="location='${ctx}/basics/serviceDictInfo/list?itType=${itType}'"><spring:message code="refresh"></spring:message></button>
|
|
<button type="button" class="btn btn-primary"
|
|
onClick="javascript:window.location='${ctx}/basics/serviceDictInfo/form?itType=${itType}'">新增配置</button>
|
|
</div>
|
|
|
|
<h3 class="page-title">
|
|
配置管理
|
|
</h3>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="portlet box blue">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-cogs"></i>搜索结果
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="row" >
|
|
<div class="col-md-12">
|
|
<sys:message content="${message}"/>
|
|
<form:form id="searchForm" modelAttribute="serviceDictInfo" action="${ctx}/basics/serviceDictInfo/searchList?itType=${itType}" method="post" class="form-search">
|
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
<div class="col-md-12">
|
|
<label class="search-lable">配置编码:</label><input id="itemCode" name="itemCode" type="text" maxlength="25" class="input-medium" value="${serviceDictInfo.itemCode}"/>
|
|
<label class="search-lable">配置内容:</label><input id="itemValue" name="itemValue" type="text" maxlength="25" class="input-medium" value="${serviceDictInfo.itemValue}"/>
|
|
<label class="search-lable itemType">数据类型:</label>
|
|
<select id="itemType" name="itemType" >
|
|
<option value="" selected="selected">-请选择-</option>
|
|
<c:forEach items="${fns:getDictList('SERVICE_DICT_ITM_TYPE')}" var="dict">
|
|
<c:forEach items="${intArr}" var="itTemp">
|
|
<c:if test="${dict.itemCode eq itTemp}">
|
|
<option value="${dict.itemCode}"
|
|
<c:if test="${selectedType eq dict.itemCode}">selected="selected"</c:if>
|
|
>${dict.itemValue}</option>
|
|
</c:if>
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</select>
|
|
<spring:message code="begin_date"></spring:message>:<input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
|
|
value="<fmt:formatDate value="${serviceDictInfo.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
|
<spring:message code="end_date"></spring:message>:<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
|
|
value="<fmt:formatDate value="${serviceDictInfo.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
|
|
|
<button type="button" class="btn btn-default btn-sm" onclick="return page2()">
|
|
<i class="fa fa-edit"></i> <spring:message code="search"></spring:message>
|
|
</button>
|
|
</div>
|
|
</form:form>
|
|
<table id="treeTable" class="table table-striped table-bordered table-condensed">
|
|
<thead><tr><th>配置编码</th><th>配置内容</th><th>描述信息</th><th>数据类型</th><th>叶子节点</th><th>创建人员</th><th>创建时间</th><th>最近修改人员</th><th>最近修改时间</th><shiro:hasPermission name="sys:menu:edit"><th>操作</th></shiro:hasPermission></tr></thead>
|
|
<tbody><c:forEach items="${list}" var="serviceDictInfo">
|
|
<tr id="${serviceDictInfo.serviceDictId}" pId="${serviceDictInfo.parent.serviceDictId ne 0?serviceDictInfo.parent.serviceDictId:0}">
|
|
<td nowrap><i class="icon-icon-tablet"></i><a href="${ctx}/basics/serviceDictInfo/form?serviceDictId=${serviceDictInfo.serviceDictId}&doAction=0">${serviceDictInfo.itemCode}</a></td>
|
|
<td>${serviceDictInfo.itemValue}</td>
|
|
<td title="${serviceDictInfo.itemDesc}">${fns:abbr(serviceDictInfo.itemDesc,15)}</td>
|
|
<td>${fns:getDictLabel("SERVICE_DICT_ITM_TYPE",serviceDictInfo.itemType,"0")}</td>
|
|
<td>${fns:getDictLabel("SYS_YES_NO",serviceDictInfo.isLeaf,"0")}</td>
|
|
<td><c:if test="${serviceDictInfo.serviceDictCreator != null}">
|
|
${fns:getUserById(serviceDictInfo.serviceDictCreator.id).name}
|
|
</c:if></td>
|
|
<td><fmt:formatDate value="${serviceDictInfo.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
|
<td><c:if test="${serviceDictInfo.serviceDictEditor != null}">
|
|
${fns:getUserById(serviceDictInfo.serviceDictEditor.id).name}
|
|
</c:if></td>
|
|
<td><fmt:formatDate value="${serviceDictInfo.editTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
|
<td>
|
|
<div class="btn-group btn-xs">
|
|
<a class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" href="#">操作<span class="caret"></span></a>
|
|
<ul class="dropdown-menu btn-xs">
|
|
<li><a href="${ctx}/basics/serviceDictInfo/form?serviceDictId=${serviceDictInfo.serviceDictId}&doAction=0&itType=${itType}">查看</a></li>
|
|
<shiro:hasPermission name="sys:dict:edit">
|
|
<li><a href="${ctx}/basics/serviceDictInfo/form?serviceDictId=${serviceDictInfo.serviceDictId}&itType=${itType}" onclick="return confirmx('您确认要修改该项配置吗?', this.href)">修改</a></li>
|
|
</shiro:hasPermission>
|
|
<shiro:hasPermission name="sys:dict:edit">
|
|
<li><a href="${ctx}/basics/serviceDictInfo/delete?serviceDictId=${serviceDictInfo.serviceDictId}&itType=${itType}" onclick="return confirmx('您确认要删除该项配置吗?', this.href)">删除</a></li>
|
|
</shiro:hasPermission>
|
|
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</c:forEach></tbody>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="page">${page}</div>
|
|
</body>
|
|
</html> |