2018-02-23 12:55:43 +08:00
|
|
|
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
|
|
|
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
|
|
|
|
|
<html>
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<title>来函信息</title>
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
2018-03-05 17:23:42 +08:00
|
|
|
|
<div class="page-content">
|
2018-09-13 18:14:38 +08:00
|
|
|
|
<shiro:hasPermission name="cfg:requestInfo:config">
|
2018-07-16 14:21:21 +08:00
|
|
|
|
<div class="theme-panel hidden-xs hidden-sm">
|
|
|
|
|
|
<button type="button" class="btn btn-primary"
|
2018-12-17 00:21:27 +08:00
|
|
|
|
onClick="javascript:window.location='${ctx}/cfg/request/form?functionId=${requestInfo.functionId}'">
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<i class="fa fa-plus"></i>
|
2018-03-13 16:10:58 +08:00
|
|
|
|
<spring:message code="add"/></button>
|
2018-07-16 14:21:21 +08:00
|
|
|
|
</div>
|
2018-03-19 14:34:39 +08:00
|
|
|
|
</shiro:hasPermission>
|
2018-02-23 12:55:43 +08:00
|
|
|
|
<h3 class="page-title">
|
2018-03-05 17:23:42 +08:00
|
|
|
|
<spring:message code="requestInfo"></spring:message>
|
2018-02-23 12:55:43 +08:00
|
|
|
|
</h3>
|
|
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<h5 class="page-header"></h5>
|
2018-02-23 12:55:43 +08:00
|
|
|
|
<div class="col-md-12">
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<div class="portlet">
|
|
|
|
|
|
|
2018-02-23 12:55:43 +08:00
|
|
|
|
<div class="portlet-body">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row" >
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<form:form id="searchForm" modelAttribute="requestInfo" action="${ctx}/cfg/request/list" 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}"/>
|
2018-12-17 00:21:27 +08:00
|
|
|
|
<input id="functionId" name="functionId" type="hidden" value="${requestInfo.functionId}"/>
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<!-- 筛选按钮展开状态-->
|
|
|
|
|
|
<input id="isFilterAction" name="isFilterAction" type="hidden" value="${requestInfo.isFilterAction }"/>
|
2018-02-23 12:55:43 +08:00
|
|
|
|
|
2018-03-19 16:55:26 +08:00
|
|
|
|
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
|
|
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<!-- 搜索内容与操作按钮栏 -->
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pull-left">
|
|
|
|
|
|
<form:select path="isAudit" class="selectpicker select2 input-small" >
|
2018-03-13 16:10:58 +08:00
|
|
|
|
<form:option value=""><spring:message code="all_states"/></form:option>
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<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:select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pull-left">
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
|
<div class="input-group-btn">
|
2018-03-13 16:10:58 +08:00
|
|
|
|
<form:select path="seltype" class="selectpicker select2 input-small" >
|
2018-08-31 15:49:03 +08:00
|
|
|
|
<form:option value="requestNumber"><spring:message code="title"></spring:message></form:option>
|
|
|
|
|
|
<form:option value="requestTitle"><spring:message code="request_number"></spring:message></form:option>
|
2018-03-13 16:10:58 +08:00
|
|
|
|
<form:option value="requestContent"><spring:message code="content"></spring:message></form:option>
|
2018-09-12 18:11:05 +08:00
|
|
|
|
</form:select>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<input id="intype" class="form-control input-medium" type="text" value="">
|
2018-03-08 11:10:16 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2018-03-13 16:10:58 +08:00
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<div class="pull-left">
|
2018-03-22 22:18:57 +08:00
|
|
|
|
<button type="button" class="btn blue" onClick="page()"> <i class="fa fa-search"></i> <spring:message code="search"/> </button>
|
|
|
|
|
|
<button type="button" class="btn btn-default" onClick="resetx()"> <i class="fa fa-refresh"></i> <spring:message code="reset"/> </button>
|
2018-03-13 16:10:58 +08:00
|
|
|
|
<button type="button" class="btn btn-default" id="filter-btn"> <spring:message code="filter"></spring:message> <i class="fa fa-angle-double-down"></i></button>
|
2018-03-08 11:10:16 +08:00
|
|
|
|
</div>
|
2018-02-23 12:55:43 +08:00
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<div class="pull-right">
|
2018-09-13 18:14:38 +08:00
|
|
|
|
<shiro:hasPermission name="cfg:requestInfo:config">
|
2018-12-17 00:21:27 +08:00
|
|
|
|
<button type="button" class="btn btn-default" onClick="edit(${requestInfo.functionId})">
|
2018-03-13 16:10:58 +08:00
|
|
|
|
<i class="fa fa-edit"></i> <spring:message code="edit"></spring:message></button>
|
2018-12-17 00:21:27 +08:00
|
|
|
|
<sys:delRow url="${ctx}/cfg/request/delete?functionId=${requestInfo.functionId}" id="contentTable" label="delete"></sys:delRow>
|
2018-12-21 15:13:48 +08:00
|
|
|
|
<%-- <sys:delRow url="${ctx}/cfg/request/exportRequestInfo?functionId=${requestInfo.functionId}" searchUrl="${ctx}/cfg/request/list?functionId=${requestInfo.functionId}" id="contentTable" maxRow="10000" label="export"></sys:delRow> --%>
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<!-- <button type="button" class="btn btn-default">
|
|
|
|
|
|
<i class="fa fa-download"></i> 导出</button> -->
|
2018-09-13 18:14:38 +08:00
|
|
|
|
</shiro:hasPermission>
|
2018-12-21 15:13:48 +08:00
|
|
|
|
|
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
|
|
|
|
<i class="fa fa-wrench"></i> <spring:message code="export"></spring:message>
|
|
|
|
|
|
<i class="fa fa-angle-down"></i>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<ul class="dropdown-menu pull-right" style="min-width: 110px;" >
|
|
|
|
|
|
<li><sys:delRow url="${ctx}/cfg/request/exportRequestInfo?functionId=${requestInfo.functionId}&exType=excel" searchUrl="${ctx}/cfg/request/list?functionId=${requestInfo.functionId}" id="contentTable" maxRow="10000" label="cfg_excel"></sys:delRow></li>
|
|
|
|
|
|
<li><sys:delRow url="${ctx}/cfg/request/exportRequestInfo?functionId=${requestInfo.functionId}&exType=csv" searchUrl="${ctx}/cfg/request/list?functionId=${requestInfo.functionId}" id="contentTable" maxRow="10000" label="cfg_csv"></sys:delRow></li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-09-13 18:14:38 +08:00
|
|
|
|
<shiro:hasPermission name="cfg:requestInfo:confirm">
|
2018-07-16 14:21:21 +08:00
|
|
|
|
<div class="btn-group">
|
|
|
|
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
|
|
|
|
<i class="fa fa-wrench"></i> <spring:message code="examine"></spring:message>
|
|
|
|
|
|
<i class="fa fa-angle-down"></i>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<ul class="dropdown-menu pull-right">
|
2018-12-17 00:21:27 +08:00
|
|
|
|
<li><sys:delRow url="${ctx}/cfg/request/requestExamine?functionId=${requestInfo.functionId}" id="contentTable" label="approved"></sys:delRow></li>
|
|
|
|
|
|
<li><sys:delRow url="${ctx}/cfg/request/requestExamineNo?functionId=${requestInfo.functionId}" id="contentTable" label="unapproved"></sys:delRow></li>
|
|
|
|
|
|
<li><sys:delRow url="${ctx}/cfg/request/requestCancelExamine?functionId=${requestInfo.functionId}" id="contentTable" label="cancelPass"></sys:delRow></li>
|
2018-07-16 14:21:21 +08:00
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
2018-03-19 14:34:39 +08:00
|
|
|
|
</shiro:hasPermission>
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<a class="btn btn-icon-only btn-default setfields tooltips"
|
2018-03-16 09:36:32 +08:00
|
|
|
|
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
2018-03-08 11:10:16 +08:00
|
|
|
|
<i class="icon-wrench"></i>
|
|
|
|
|
|
</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- /搜索内容与操作按钮栏-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 筛选搜索内容栏默认隐藏-->
|
|
|
|
|
|
<div class="col-md-12 filter-action-select-panle hide" >
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
2018-03-22 22:18:57 +08:00
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label><spring:message code="request_time"/>:</label>
|
|
|
|
|
|
<input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="form-control Wdate" data-options="buttons:buttons"
|
2018-03-08 11:10:16 +08:00
|
|
|
|
value="<fmt:formatDate value="${requestInfo.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label> </label>
|
|
|
|
|
|
<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
2018-03-08 11:10:16 +08:00
|
|
|
|
value="<fmt:formatDate value="${requestInfo.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
</div>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label><spring:message code="edit_time"/>:</label>
|
|
|
|
|
|
<input id="dobeginDate" name="dobeginDate" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
2018-03-13 16:10:58 +08:00
|
|
|
|
value="<fmt:formatDate value="${requestInfo.dobeginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-03-22 22:18:57 +08:00
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label> </label>
|
|
|
|
|
|
<input id="doendDate" name="doendDate" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
|
|
|
|
|
value="<fmt:formatDate value="${requestInfo.doendDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
</div>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
</div>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- /筛选搜索内容栏 结束-->
|
|
|
|
|
|
|
|
|
|
|
|
</form:form>
|
2018-02-23 12:55:43 +08:00
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-12-13 14:01:06 +08:00
|
|
|
|
<sys:message content="${message}" type="${messageType }"/>
|
2018-03-19 17:16:02 +08:00
|
|
|
|
<div class="table-responsive">
|
2018-09-27 17:18:07 +08:00
|
|
|
|
|
2018-03-19 17:16:02 +08:00
|
|
|
|
<table id="contentTable" class="table table-striped table-bordered table-condensed text-nowrap">
|
2018-02-23 12:55:43 +08:00
|
|
|
|
<thead>
|
|
|
|
|
|
<tr>
|
2018-03-13 16:10:58 +08:00
|
|
|
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
2018-12-21 15:13:48 +08:00
|
|
|
|
<th column="Id" ><spring:message code="Id"></spring:message></th>
|
|
|
|
|
|
<th column="title" ><spring:message code="title"></spring:message></th>
|
|
|
|
|
|
<th column="request_organization" ><spring:message code="request_organization"></spring:message></th>
|
|
|
|
|
|
<th column="request_time" ><spring:message code="request_time"></spring:message></th>
|
|
|
|
|
|
<th column="state" ><spring:message code="state"></spring:message></th>
|
|
|
|
|
|
<th column="request_number" ><spring:message code="request_number"></spring:message></th>
|
|
|
|
|
|
<th column="content" ><spring:message code="content"></spring:message></th>
|
|
|
|
|
|
<th column="special_task" ><spring:message code="special_task"></spring:message></th>
|
|
|
|
|
|
<th column="creator" ><spring:message code="creator"/></th>
|
|
|
|
|
|
<th column="create_time" class="sort-column createTime"><spring:message code="create_time"/></th>
|
|
|
|
|
|
<th column="editor" ><spring:message code="editor"/></th>
|
|
|
|
|
|
<th column="edit_time" class="sort-column editTime"><spring:message code="edit_time"/></th>
|
|
|
|
|
|
<th column="auditor" ><spring:message code="auditor"></spring:message></th>
|
|
|
|
|
|
<th column="audit_time" class="sort-column auditTime"><spring:message code="audit_time"></spring:message></th>
|
2018-03-19 16:55:26 +08:00
|
|
|
|
|
2018-02-23 12:55:43 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<c:forEach items="${page.list}" var="requestInfo">
|
|
|
|
|
|
<tr>
|
2018-03-13 16:10:58 +08:00
|
|
|
|
<td><input type="checkbox" class="i-checks" id="${requestInfo.id}" value="${requestInfo.isAudit}"></td>
|
2018-08-13 15:53:11 +08:00
|
|
|
|
<td>${requestInfo.id }</td>
|
2018-12-17 00:21:27 +08:00
|
|
|
|
<td>${requestInfo.requestNumber }</td><!--requestTitle当成来函函号使用 -->
|
2018-02-23 12:55:43 +08:00
|
|
|
|
<td>${requestInfo.requestOrg }</td>
|
|
|
|
|
|
<td><fmt:formatDate value="${requestInfo.requestTime }" pattern="yyyy-MM-dd"/></td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<c:choose>
|
|
|
|
|
|
<c:when test="${requestInfo.isAudit eq '0'}"><span class="label label-danger"><spring:message code="created"></spring:message></span></c:when>
|
|
|
|
|
|
<c:when test="${requestInfo.isAudit eq '1'}"><span class="label label-success"><spring:message code="approved"></spring:message></span></c:when>
|
|
|
|
|
|
<c:when test="${requestInfo.isAudit eq '2'}"><span class="label label-warning"><spring:message code="unapproved"></spring:message></span></c:when>
|
2018-07-27 15:29:27 +08:00
|
|
|
|
<c:when test="${requestInfo.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
2018-02-23 12:55:43 +08:00
|
|
|
|
</c:choose>
|
|
|
|
|
|
</td>
|
2018-12-17 00:21:27 +08:00
|
|
|
|
<td>${requestInfo.requestTitle}</td><!--requestTitle当成来函标题使用 -->
|
2018-02-23 12:55:43 +08:00
|
|
|
|
<td>${requestInfo.requestContent }</td>
|
2018-03-05 17:23:42 +08:00
|
|
|
|
<td>${requestInfo.taskName }</td>
|
2018-03-16 18:29:53 +08:00
|
|
|
|
<td>${requestInfo.creatorName }</td>
|
|
|
|
|
|
<td><fmt:formatDate value="${requestInfo.createTime }" pattern="yyyy-MM-dd"/></td>
|
|
|
|
|
|
<td>${requestInfo.editorName }</td>
|
|
|
|
|
|
<td><fmt:formatDate value="${requestInfo.editTime }" pattern="yyyy-MM-dd"/></td>
|
2018-03-16 09:36:32 +08:00
|
|
|
|
<td>${requestInfo.auditorName }</td>
|
|
|
|
|
|
<td><fmt:formatDate value="${requestInfo.auditTime }" pattern="yyyy-MM-dd"/></td>
|
2018-02-23 12:55:43 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
<div class="page">${page}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
$(document).ready(function() {
|
2018-03-13 16:10:58 +08:00
|
|
|
|
|
|
|
|
|
|
if("${requestInfo.requestTitle}"){
|
|
|
|
|
|
$("#intype").val("${requestInfo.requestTitle}");
|
|
|
|
|
|
}
|
|
|
|
|
|
if("${requestInfo.requestNumber}"){
|
|
|
|
|
|
$("#intype").val("${requestInfo.requestNumber}");
|
|
|
|
|
|
}
|
|
|
|
|
|
if("${requestInfo.requestContent}"){
|
|
|
|
|
|
$("#intype").val("${requestInfo.requestContent}");
|
|
|
|
|
|
}else{
|
2018-03-27 11:10:22 +08:00
|
|
|
|
$("#intype").attr("placeholder","<spring:message code='input'/>"+$("#seltype").find("option:selected").text());
|
2018-03-13 16:10:58 +08:00
|
|
|
|
}
|
2018-03-08 11:10:16 +08:00
|
|
|
|
//筛选功能初始化
|
|
|
|
|
|
filterActionInit();
|
|
|
|
|
|
|
|
|
|
|
|
$("#isAudit").change(function(){
|
|
|
|
|
|
page();
|
|
|
|
|
|
});
|
2018-02-23 12:55:43 +08:00
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
$("#seltype").change(function(){
|
2018-03-27 11:10:22 +08:00
|
|
|
|
$("#intype").attr("placeholder","<spring:message code='input'/>"+$(this).find("option:selected").text());
|
2018-03-08 11:10:16 +08:00
|
|
|
|
});
|
2018-03-13 16:10:58 +08:00
|
|
|
|
//全选及取消
|
|
|
|
|
|
$("#checkAll").change(function(){
|
|
|
|
|
|
if($("#checkAll").prop("checked")){
|
|
|
|
|
|
$("input.i-checks").prop("checked",true);
|
|
|
|
|
|
}else{
|
|
|
|
|
|
$("input.i-checks").prop("checked",false);
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-23 12:55:43 +08:00
|
|
|
|
|
|
|
|
|
|
});
|
2018-03-08 11:10:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
2018-03-13 16:10:58 +08:00
|
|
|
|
function resetx(){
|
|
|
|
|
|
// $("#searchForm").reset();
|
2018-03-16 18:29:53 +08:00
|
|
|
|
// $(':input','#searchForm')
|
|
|
|
|
|
// .not(':button,:submit,:reset,:hidden')
|
|
|
|
|
|
// .val('')
|
|
|
|
|
|
// .removeAttr('checked')
|
|
|
|
|
|
// .removeAttr('selected');
|
|
|
|
|
|
$("select.selectpicker").each(function(){
|
|
|
|
|
|
$(this).selectpicker('val',$(this).find('option:first').val());
|
|
|
|
|
|
$(this).find("option").attr("selected",false);
|
|
|
|
|
|
$(this).find("option:first").attr("selected",true);
|
|
|
|
|
|
});
|
|
|
|
|
|
$(".Wdate").attr("value",'');
|
|
|
|
|
|
$("#searchForm")[0].reset();
|
2018-03-27 11:10:22 +08:00
|
|
|
|
$("#intype").attr("placeholder","<spring:message code='input'/>"+"<spring:message code='title'/>");
|
2018-03-16 18:29:53 +08:00
|
|
|
|
|
2018-03-08 11:10:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-23 12:55:43 +08:00
|
|
|
|
//查询
|
|
|
|
|
|
function page(n,s){
|
|
|
|
|
|
$("#intype").attr("name",$("#seltype").val());
|
2018-03-13 16:10:58 +08:00
|
|
|
|
|
2018-02-23 12:55:43 +08:00
|
|
|
|
$("#pageNo").val(n);
|
|
|
|
|
|
$("#pageSize").val(s);
|
|
|
|
|
|
$("#searchForm").attr("action","${ctx}/cfg/request/list");
|
|
|
|
|
|
$("#searchForm").submit();
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
2018-03-13 16:10:58 +08:00
|
|
|
|
//编辑
|
2018-12-17 00:21:27 +08:00
|
|
|
|
function edit(functionId){
|
2018-03-13 16:10:58 +08:00
|
|
|
|
var cked = $('tbody tr td input.i-checks:checkbox:checked');
|
|
|
|
|
|
if(cked.val()==1){
|
|
|
|
|
|
top.$.jBox.tip("<spring:message code='has_approved'/>", "<spring:message code='info'/>");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2018-11-09 19:47:03 +08:00
|
|
|
|
if(cked.val()==3){
|
|
|
|
|
|
top.$.jBox.tip("<spring:message code='cancel_approved'/>", "<spring:message code='info'/>");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2018-03-13 16:10:58 +08:00
|
|
|
|
if(cked.length==1){
|
2018-12-17 00:21:27 +08:00
|
|
|
|
window.location = "${ctx}/cfg/request/form?functionId="+functionId+"&id="+cked.attr("id");
|
2018-03-13 16:10:58 +08:00
|
|
|
|
}else{
|
|
|
|
|
|
top.$.jBox.tip("<spring:message code='check_one'/>", "<spring:message code='info'/>");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-02-23 12:55:43 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
2018-03-13 16:10:58 +08:00
|
|
|
|
</html>
|