2018-02-27 15:31:30 +08:00
|
|
|
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
|
|
|
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
|
|
|
|
|
<html>
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
|
|
|
|
|
<link href="${pageContext.request.contextPath}/static/global/plugins/bootstrap-select/css/bootstrap-select.min.css" rel="stylesheet"/>
|
|
|
|
|
|
<script src="${pageContext.request.contextPath}/static/global/plugins/bootstrap-select/js/bootstrap-select.min.js"></script>
|
2018-03-06 19:00:08 +08:00
|
|
|
|
<c:choose>
|
|
|
|
|
|
<c:when test="${cookie.Language.value eq 'zh_CN'}">
|
|
|
|
|
|
<script src="${pageContext.request.contextPath}/static/global/plugins/bootstrap-select/js/i18n/defaults-zh_CN.min.js"></script>
|
|
|
|
|
|
</c:when>
|
|
|
|
|
|
<c:when test="${cookie.Language.value eq 'en'}">
|
|
|
|
|
|
<script src="${pageContext.request.contextPath}/static/global/plugins/bootstrap-select/js/i18n/defaults-en_US.min.js"></script>
|
|
|
|
|
|
</c:when>
|
|
|
|
|
|
<c:when test="${cookie.Language.value eq 'ru_RU'}">
|
|
|
|
|
|
<script src="${pageContext.request.contextPath}/static/global/plugins/bootstrap-select/js/i18n/defaults-ru_RU.min.js"></script>
|
|
|
|
|
|
</c:when>
|
|
|
|
|
|
<c:otherwise>
|
|
|
|
|
|
<script src="${pageContext.request.contextPath}/static/global/plugins/bootstrap-select/js/i18n/defaults-en_US.min.js"></script>
|
|
|
|
|
|
</c:otherwise>
|
|
|
|
|
|
</c:choose>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<script>
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
//查询
|
|
|
|
|
|
function page(n,s){
|
|
|
|
|
|
$("#pageNo").val(n);
|
|
|
|
|
|
$("#pageSize").val(s);
|
|
|
|
|
|
$("#searchForm").submit();
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="page-content">
|
|
|
|
|
|
<div class="theme-panel hidden-xs hidden-sm">
|
|
|
|
|
|
<button type="button" class="btn btn-default" onclick="location='${ctx}/cfg/string/list?serviceId=${serviceId}&action=${action}&cfgName=${cfgName}'"><spring:message code="refresh"></spring:message></button>
|
2018-03-07 17:47:30 +08:00
|
|
|
|
<c:if test="${audit==0}">
|
|
|
|
|
|
<button type="button" class="btn btn-primary"
|
2018-03-07 13:42:18 +08:00
|
|
|
|
onClick="javascript:window.location='${ctx}/cfg/string/form?serviceId=${serviceId}&action=${action}&cfgName=${cfgName}'"><spring:message code="add"></spring:message></button>
|
2018-03-07 17:47:30 +08:00
|
|
|
|
</c:if>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="page-title">
|
2018-03-05 16:30:16 +08:00
|
|
|
|
<spring:message code="${cfgName}"></spring:message>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
<div class="portlet box blue">
|
|
|
|
|
|
<div class="portlet-title">
|
|
|
|
|
|
<div class="caption">
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<i class="fa fa-cogs"></i><spring:message code="date_list"></spring:message>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="tools">
|
|
|
|
|
|
<!-- <a href="javascript:;" class="collapse" data-original-title=""
|
|
|
|
|
|
title=""> </a> <a href="#portlet-config" data-toggle="modal"
|
|
|
|
|
|
class="config" data-original-title="" title=""> </a> <a
|
|
|
|
|
|
href="javascript:;" class="reload" data-original-title=""
|
|
|
|
|
|
title=""> </a> <a href="javascript:;" class="remove"
|
|
|
|
|
|
data-original-title="" title=""> </a> -->
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="portlet-body">
|
|
|
|
|
|
<div class="row" >
|
|
|
|
|
|
<form:form id="searchForm" modelAttribute="cfg" action="${ctx}/cfg/string/list?serviceId=${serviceId}&action=${action}&cfgName=${cfgName}" method="post" class="form-search">
|
2018-03-07 17:47:30 +08:00
|
|
|
|
<input id="audit" name="audit" type="hidden" value="${audit}"/>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<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">
|
|
|
|
|
|
<spring:message code="state"/> : <form:select path="isAudit" class="selectpicker select2" title="--请选择--" >
|
|
|
|
|
|
<form:option value=""></form:option>
|
|
|
|
|
|
<form:option value="0"><spring:message code="created"></spring:message></form:option>
|
|
|
|
|
|
<form:option value="1"><spring:message code="approved"></spring:message></form:option>
|
|
|
|
|
|
<form:option value="2"><spring:message code="unapproved"></spring:message></form:option>
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<form:option value="3"><spring:message code="cancel_approved"></spring:message></form:option>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</form:select>
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<spring:message code="request_number"/> :
|
|
|
|
|
|
<form:select path="requestId" class="selectpicker select2" data-live-search="true" data-live-search-placeholder="search">
|
|
|
|
|
|
<form:option value=""><spring:message code="select"/></form:option>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<c:forEach items="${requestInfos}" var="requestInfo" >
|
|
|
|
|
|
<form:option value="${requestInfo.id}"><spring:message code="${requestInfo.requestTitle}"></spring:message></form:option>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
</form:select>
|
|
|
|
|
|
<button type="button" class="btn btn-default btn-sm" onclick="return page()">
|
|
|
|
|
|
<i class="fa fa-edit"></i><spring:message code="search"></spring:message>
|
|
|
|
|
|
</button>
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<spring:message code="sort"/> :
|
2018-03-07 17:47:30 +08:00
|
|
|
|
<select name="orderBy" class="selectpicker select2">
|
|
|
|
|
|
<option value=""><spring:message code="select"/></option>
|
|
|
|
|
|
<option value="createTime asc" <c:if test="${page.orderBy eq 'createTime asc' }">selected</c:if> ><spring:message code="createTime_asc"/></option>
|
|
|
|
|
|
<option value="createTime desc" <c:if test="${page.orderBy eq 'createTime desc' }">selected</c:if> ><spring:message code="createTime_desc"/></option>
|
|
|
|
|
|
<option value="editTime asc" <c:if test="${page.orderBy eq 'editTime asc' }">selected</c:if> ><spring:message code="editTime_asc"/></option>
|
|
|
|
|
|
<option value="editTime desc" <c:if test="${page.orderBy eq 'editTime desc' }">selected</c:if> ><spring:message code="editTime_desc"/></option>
|
|
|
|
|
|
<option value="auditTime asc" <c:if test="${page.orderBy eq 'auditTime asc' }">selected</c:if> ><spring:message code="auditTime_asc"/></option>
|
|
|
|
|
|
<option value="auditTime desc" <c:if test="${page.orderBy eq 'auditTime desc' }">selected</c:if> ><spring:message code="auditTime_desc"/></option>
|
|
|
|
|
|
</select>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</form:form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="table-responsive">
|
2018-03-05 16:30:16 +08:00
|
|
|
|
<table class="table table-striped table-bordered table-condensed text-nowrap">
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<thead>
|
|
|
|
|
|
<tr>
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<th><spring:message code="seq"/></th>
|
|
|
|
|
|
<th><spring:message code="config_describe"/></th>
|
|
|
|
|
|
<th><spring:message code="key_word"/></th>
|
|
|
|
|
|
<th><spring:message code="block_type"/></th>
|
2018-03-05 16:30:16 +08:00
|
|
|
|
<!-- <th>业务id</th> -->
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<th><spring:message code="letter"/></th>
|
2018-03-05 16:30:16 +08:00
|
|
|
|
<!-- <th>编译id</th> -->
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<th><spring:message code="whether_area_block"/></th>
|
|
|
|
|
|
<th><spring:message code="type"/></th>
|
|
|
|
|
|
<th><spring:message code="attribute"/></th>
|
|
|
|
|
|
<th><spring:message code="label"/></th>
|
2018-03-05 16:30:16 +08:00
|
|
|
|
<!-- <th>区域生效id</th> -->
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<th><spring:message code="valid_identifier"/></th>
|
|
|
|
|
|
<th><spring:message code="is_audit"/></th>
|
|
|
|
|
|
<th><spring:message code="creator"/></th>
|
|
|
|
|
|
<th><spring:message code="config_time"/></th>
|
|
|
|
|
|
<th><spring:message code="editor"/></th>
|
|
|
|
|
|
<th><spring:message code="edit_time"/></th>
|
|
|
|
|
|
<th><spring:message code="auditor"/></th>
|
|
|
|
|
|
<th><spring:message code="audit_time"/></th>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<th><spring:message code="operation"></spring:message></th>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
2018-03-05 16:30:16 +08:00
|
|
|
|
<c:forEach items="${page.list }" var="cfg" varStatus="status" step="1">
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<tr>
|
2018-03-05 16:30:16 +08:00
|
|
|
|
<td>${status.index+1 }</td>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<td>${cfg.cfgDesc }</td>
|
|
|
|
|
|
<td>${cfg.cfgKeywords }</td>
|
|
|
|
|
|
<td>
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<c:if test="${1 eq cfg.action }"><spring:message code="block"/></c:if>
|
|
|
|
|
|
<c:if test="${2 eq cfg.action }"><spring:message code="monitor"/></c:if>
|
|
|
|
|
|
<c:if test="${5 eq cfg.action }"><spring:message code="block_white_list"/></c:if>
|
|
|
|
|
|
<c:if test="${6 eq cfg.action }"><spring:message code="monitor_white_list"/></c:if>
|
|
|
|
|
|
<c:if test="${7 eq cfg.action }"><spring:message code="block_monitor_white_list"/></c:if>
|
|
|
|
|
|
<c:if test="${8 eq cfg.action }"><spring:message code="grey_list"/></c:if>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</td>
|
2018-03-05 16:30:16 +08:00
|
|
|
|
<%-- <td>${cfg.serviceId }</td> --%>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<td>${cfg.requestName }</td>
|
2018-03-05 16:30:16 +08:00
|
|
|
|
<%-- <td>${cfg.compileId }</td> --%>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<td>
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<c:if test="${cfg.isAreaEffective==0}"><spring:message code="no"/></c:if>
|
|
|
|
|
|
<c:if test="${cfg.isAreaEffective==1}"><spring:message code="yes"/></c:if>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</td>
|
2018-03-05 16:30:16 +08:00
|
|
|
|
<td>
|
|
|
|
|
|
<c:forEach items="${fn:split(cfg.classify,',')}" var="classifyId">
|
|
|
|
|
|
<c:forEach items="${fls}" var="fl">
|
|
|
|
|
|
<c:if test="${classifyId==fl.itemCode}">
|
|
|
|
|
|
${fl.itemValue},
|
|
|
|
|
|
</c:if>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
${classifyName[status]}
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<c:forEach items="${fn:split(cfg.attribute,',')}" var="attributeId">
|
|
|
|
|
|
<c:forEach items="${xzs}" var="xz">
|
|
|
|
|
|
<c:if test="${attributeId==xz.itemCode}">${xz.itemValue},</c:if>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<c:forEach items="${fn:split(cfg.lable,',')}" var="lableId">
|
|
|
|
|
|
<c:forEach items="${lables}" var="lable">
|
|
|
|
|
|
<c:if test="${lableId==lable.itemCode}">${lable.itemValue},</c:if>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<%-- <td>${cfg.areaEffectiveIds }</td> --%>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<td>
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<c:if test="${cfg.isValid==0}"><spring:message code="no"/></c:if>
|
|
|
|
|
|
<c:if test="${cfg.isValid==1}"><spring:message code="yes"/></c:if>
|
|
|
|
|
|
<c:if test="${cfg.isValid==-1}"><spring:message code="deleted"/></c:if>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<c:choose>
|
|
|
|
|
|
<c:when test="${cfg.isAudit eq '0'}"><span class="label label-danger"><spring:message code="created"></spring:message></span></c:when>
|
|
|
|
|
|
<c:when test="${cfg.isAudit eq '1'}"><span class="label label-success"><spring:message code="approved"></spring:message></span></c:when>
|
|
|
|
|
|
<c:when test="${cfg.isAudit eq '2'}"><span class="label label-warning"><spring:message code="unapproved"></spring:message></span></c:when>
|
2018-03-07 13:42:18 +08:00
|
|
|
|
<c:when test="${cfg.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</c:choose>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td>${cfg.creatorName }</td>
|
|
|
|
|
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
|
|
|
|
|
<td>${cfg.editorName }</td>
|
|
|
|
|
|
<td><fmt:formatDate value="${cfg.editTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
|
|
|
|
|
<td>${cfg.auditorName }</td>
|
|
|
|
|
|
<td><fmt:formatDate value="${cfg.auditTime }" 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="#"><spring:message code="operation"></spring:message><span class="caret"></span></a>
|
|
|
|
|
|
<ul class="dropdown-menu btn-xs">
|
2018-03-07 17:47:30 +08:00
|
|
|
|
<c:if test="${audit==0}">
|
|
|
|
|
|
<c:choose>
|
|
|
|
|
|
<c:when test="${cfg.isAudit eq '2'}">
|
|
|
|
|
|
<li><a href="${ctx}/cfg/string/updateForm?serviceId=${cfg.serviceId}&action=${cfg.action}&tableName=${cfg.tableName}&cfgId=${cfg.cfgId}&cfgName=${cfgName}" onclick="javascript:return confirm('sure?', this.href)"><spring:message code="edit"></spring:message></a></li>
|
|
|
|
|
|
</c:when>
|
|
|
|
|
|
<c:when test="${cfg.isAudit eq '0'}">
|
|
|
|
|
|
<li><a href="${ctx}/cfg/string/updateForm?serviceId=${cfg.serviceId}&action=${cfg.action}&tableName=${cfg.tableName}&cfgId=${cfg.cfgId}&cfgName=${cfgName}" onclick="javascript:return confirm('sure?', this.href)"><spring:message code="edit"></spring:message></a></li>
|
|
|
|
|
|
<li><a href="${ctx}/cfg/string/deleteCfg?serviceId=${cfg.serviceId}&action=${cfg.action}&tableName=${cfg.tableName}&cfgId=${cfg.cfgId}&cfgName=${cfgName}" onclick="return confirm('sure?', this.href)"><spring:message code="delete"></spring:message></a></li>
|
|
|
|
|
|
</c:when>
|
|
|
|
|
|
</c:choose>
|
|
|
|
|
|
</c:if>
|
|
|
|
|
|
<c:if test="${audit==1}">
|
|
|
|
|
|
<c:choose>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
<c:when test="${cfg.isAudit eq '1'}">
|
|
|
|
|
|
<li><a href="${ctx}/cfg/string/auditCfg?serviceId=${cfg.serviceId}&action=${cfg.action}&tableName=${cfg.tableName}&cfgId=${cfg.cfgId}&isAudit=3&cfgName=${cfgName}" onclick="return confirm('sure?', this.href)"><spring:message code="cancel"></spring:message></a></li>
|
|
|
|
|
|
</c:when>
|
|
|
|
|
|
<c:when test="${cfg.isAudit eq '0'}">
|
|
|
|
|
|
<li><a href="${ctx}/cfg/string/auditCfg?serviceId=${cfg.serviceId}&action=${cfg.action}&tableName=${cfg.tableName}&cfgId=${cfg.cfgId}&isAudit=1&cfgName=${cfgName}" onclick="return confirm('sure?', this.href)"><spring:message code="approved"></spring:message></a></li>
|
2018-03-07 17:47:30 +08:00
|
|
|
|
<li><a href="${ctx}/cfg/string/auditCfg?serviceId=${cfg.serviceId}&action=${cfg.action}&tableName=${cfg.tableName}&cfgId=${cfg.cfgId}&isAudit=2&cfgName=${cfgName}" onclick="return confirm('sure?', this.href)"><spring:message code="unapproved"></spring:message></a></li>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</c:when>
|
|
|
|
|
|
</c:choose>
|
2018-03-07 17:47:30 +08:00
|
|
|
|
</c:if>
|
2018-02-27 15:31:30 +08:00
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
<div class="page">${page}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<style>
|
|
|
|
|
|
.input-medium {
|
|
|
|
|
|
width: 200px !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.Wdate {
|
|
|
|
|
|
border: #c2cad8 1px solid;
|
|
|
|
|
|
height: 26px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
|
|
min-width: 50px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|