138 lines
5.9 KiB
Plaintext
138 lines
5.9 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
<%@ include file="/webpage/include/taglib.jsp"%>
|
|
<html>
|
|
<head>
|
|
<title>字典管理</title>
|
|
<meta name="decorator" content="default"/>
|
|
<script type="text/javascript">
|
|
function page(n,s){
|
|
$("#pageNo").val(n);
|
|
$("#pageSize").val(s);
|
|
$("#searchForm").submit();
|
|
return false;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="gray-bg">
|
|
<div class="wrapper wrapper-list-content">
|
|
<div class="ibox">
|
|
<!-- <div class="ibox-title">
|
|
<h5>字典列表 </h5>
|
|
<div class="ibox-tools">
|
|
<a class="collapse-link">
|
|
<i class="fa fa-chevron-up"></i>
|
|
</a>
|
|
<a class="close-link">
|
|
<i class="fa fa-times"></i>
|
|
</a>
|
|
</div>
|
|
</div> -->
|
|
|
|
<div class="ibox-content ibox-content-list">
|
|
<sys:message content="${message}"/>
|
|
<div class="pane-query-circle">
|
|
|
|
<!-- 查询条件 -->
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<form:form id="searchForm" modelAttribute="dict" action="${ctx}/sys/dict/" method="post" class="form-inline">
|
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
|
|
|
|
<div class="row pane-query-anying">
|
|
<div class="col-sm-6 col-md-4 col-lg-3 pane-query-anying-div">
|
|
<div class="pane-query-anying-div-text">类型:</div>
|
|
<div class="pane-query-anying-div-input">
|
|
<form:select style="width: 196px;" id="typeSelect" path="typeSelect" class="form-control m-b">
|
|
<form:option value="" label="请选择" />
|
|
<%-- <form:options items="${typeList}" htmlEscape="false"/> --%>
|
|
<%-- <form:options items="${typeList}" itemValue="type" itemLabel="description"/> --%>
|
|
<c:forEach items="${typeList}" var="typeList">
|
|
<form:option value="${typeList.type}" label="${typeList.description}"/>
|
|
</c:forEach>
|
|
</form:select>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-sm-6 col-md-4 col-lg-3 pane-query-anying-div">
|
|
<div class="pane-query-anying-div-text">描述:</div>
|
|
<div class="pane-query-anying-div-input">
|
|
|
|
<form:input path="description" htmlEscape="false" maxlength="50" class="form-control"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="col-sm-6 col-md-4 col-lg-3 pane-query-anying-div pane-query-anying-div-button">
|
|
<div class="pull-right pane-query-anying-div-input">
|
|
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="search()" ><i class="fa fa-search"></i> 查询</button>
|
|
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="resetAll()" ><i class="fa fa-refresh"></i> 重置</button>
|
|
<shiro:hasPermission name="sys:dict:add">
|
|
<table:addRow url="${ctx}/sys/dict/form?typeSelect=${dict.typeSelect}" title="字典"></table:addRow><!-- 增加按钮 -->
|
|
</shiro:hasPermission>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form:form>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 工具栏 -->
|
|
</div>
|
|
<div class="pane-query-circle-list">
|
|
<table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable no-footer">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:75px;">
|
|
<input type="checkbox" class="i-checks">
|
|
<shiro:hasPermission name="sys:dict:del">
|
|
<table:delRow url="${ctx}/sys/dict/deleteAll" id="contentTable"></table:delRow><!-- 删除按钮 -->
|
|
</shiro:hasPermission>
|
|
</th>
|
|
<th class="sort-column value" style="width:80px;"><nobr>键值</nobr></th>
|
|
<th >标签</th>
|
|
<th class="sort-column type"><nobr>类型</nobr></th>
|
|
<th class="sort-column description"><nobr>描述</nobr></th>
|
|
<th class="sort-column sort" style="width:80px;"><nobr>排序</nobr></th>
|
|
<th style="width:80px;"><nobr>操作</nobr></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:forEach items="${page.list}" var="dicts">
|
|
<tr>
|
|
<td class="query-datatable-nowrap">
|
|
<input type="checkbox" id="${dicts.id}" class="i-checks">
|
|
</td>
|
|
<td class="query-datatable-nowrap">${dicts.value}</td>
|
|
<td class="query-datatable-nowrap"><a href="###" onclick="openDialogView('查看字典', '${ctx}/sys/dict/form?id=${dicts.id}','800px', '500px')">${dicts.label}</a></td>
|
|
<td class="query-datatable-nowrap"><a href="javascript:" onclick="$('#typeSelect').val('${dicts.type}');$('#searchForm').submit();return false;">${dicts.type}</a></td>
|
|
<td class="query-datatable-nowrap td-fixed-width-250"">${dicts.description}</td>
|
|
<td class="query-datatable-nowrap">${dicts.sort}</td>
|
|
<td class="query-datatable-nowrap">
|
|
<%-- <shiro:hasPermission name="sys:dict:view"> --%>
|
|
<%-- <a href="###" onclick="openDialogView('查看字典', '${ctx}/sys/dict/form?id=${dicts.id}','800px', '500px')" class="btn btn-info btn-xs" title="查看"><i class="fa fa-search-plus"></i></a> --%>
|
|
<%-- </shiro:hasPermission> --%>
|
|
<shiro:hasPermission name="sys:dict:edit">
|
|
<a href="###" onclick="openDialog('修改字典', '${ctx}/sys/dict/form?id=${dicts.id}','800px', '500px')" class="btn btn-success btn-xs" title="修改"><i class="fa fa-edit"></i></a>
|
|
</shiro:hasPermission>
|
|
<shiro:hasPermission name="sys:dict:del">
|
|
<a href="${ctx}/sys/dict/delete?id=${dicts.id}&typeSelect=${dict.typeSelect}" onclick="return confirmx('确认要删除该字典吗?', this.href)" class="btn btn-danger btn-xs" title="删除"><i class="fa fa-trash"></i></a>
|
|
</shiro:hasPermission>
|
|
<shiro:hasPermission name="sys:dict:add">
|
|
<a href="###" onclick="openDialog('添加键值', '<c:url value='${fns:getAdminPath()}/sys/dict/form?typeSelect=${dict.typeSelect}&sort=${dicts.sort+10}'><c:param name='description' value="${dicts.descriptions}"/></c:url>','800px', '500px')" class="btn btn-info btn-xs" title="添加键值"><i class="fa fa-plus"></i></a>
|
|
</shiro:hasPermission>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
<!-- 分页代码 -->
|
|
<table:page page="${page}"></table:page>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |