Commit b447f266 by xurui

跟踪页面被覆盖重新提交

parent d169b5dc
<%@ taglib prefix="from" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" %> <%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %> <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html> <html>
...@@ -10,6 +9,9 @@ ...@@ -10,6 +9,9 @@
$(document).ready(function () { $(document).ready(function () {
$("#inputForm").validate({ $("#inputForm").validate({
submitHandler: function (form) { submitHandler: function (form) {
messages: {
supplementContent: {maxlength: "最多输入{0}个字符"}
}
if ($("#supplementType").val() == " "){ if ($("#supplementType").val() == " "){
top.$.jBox.tip('请选择业务类型', 'warning'); top.$.jBox.tip('请选择业务类型', 'warning');
}else if ($("#supplementArea").val() == " "){ }else if ($("#supplementArea").val() == " "){
...@@ -106,24 +108,23 @@ ...@@ -106,24 +108,23 @@
path += "标题:${report.supplementTitle}</br>"; path += "标题:${report.supplementTitle}</br>";
path += "被举报公司:${report.supplementCompany}</br>"; path += "被举报公司:${report.supplementCompany}</br>";
path += "被举报部门:${report.supplementDepartment}</br>"; path += "被举报部门:${report.supplementDepartment}</br>";
//12:01注 var supplementType = "${report.supplementType}";
<%--var supplementType = "${report.supplementType}";--%> if (supplementType == "1"){
<%--if (supplementType == "1"){--%> supplementType = "营销";
<%--supplementType = "营销";--%> }else if (supplementType == "2"){
<%--}else if (supplementType == "2"){--%> supplementType = "工程";
<%--supplementType = "工程";--%> }else if (supplementType == "3"){
<%--}else if (supplementType == "3"){--%> supplementType = "成本";
<%--supplementType = "成本";--%> }else if (supplementType == "4"){
<%--}else if (supplementType == "4"){--%> supplementType = "招采";
<%--supplementType = "招采";--%> }else if (supplementType == "5"){
<%--}else if (supplementType == "5"){--%> supplementType = "人力";
<%--supplementType = "人力";--%> }else if (supplementType == "6"){
<%--}else if (supplementType == "6"){--%> supplementType = "物业";
<%--supplementType = "物业";--%> }else if (supplementType == "7"){
<%--}else if (supplementType == "7"){--%> supplementType = "投诉";
<%--supplementType = "投诉";--%> }
<%--}--%> path += "业务类型:"+supplementType+"</br>";
// path += "业务类型:"+supplementType+"</br>";
var supplementArea = "${report.supplementArea}"; var supplementArea = "${report.supplementArea}";
if (supplementArea == "North China"){ if (supplementArea == "North China"){
supplementArea = "华北区域公司"; supplementArea = "华北区域公司";
...@@ -156,16 +157,16 @@ ...@@ -156,16 +157,16 @@
console.log(path); console.log(path);
window.location.href = path; window.location.href = path;
}); });
var checkedNumber = "${report.supplementType}";
var number=checkedNumber.split(",");
var ck=document.getElementsByName("supplementType");
for (var i = 0; i < number.length; i++) {
ck[number[i]-1].checked=true;
}
}); });
// 处理结果的隐藏和显示
// function doSome() {
// var dealResult = $("#dealResult option:selected").text();
// if(dealResult == "举报受理") {
// $("#dhide").attr("style","display:block");
// }else {
// $("#dhide").attr("style","display:none");
// }
// }
</script> </script>
<style type="text/css"> <style type="text/css">
.title{ .title{
...@@ -196,6 +197,12 @@ ...@@ -196,6 +197,12 @@
z-index:1002; z-index:1002;
overflow: auto; overflow: auto;
} }
/*#isTrue {*/
/*padding-left:180px;*/
/*height:45px;*/
/*line-height:45px;*/
/*}*/
#chooseContent{ #chooseContent{
margin: 20px 20px 20px 20px; margin: 20px 20px 20px 20px;
} }
...@@ -208,60 +215,57 @@ ...@@ -208,60 +215,57 @@
<br/> <br/>
<form:form id="inputForm" modelAttribute="report" action="${ctx}/report/addTrack" method="post" class="form-horizontal"> <form:form id="inputForm" modelAttribute="report" action="${ctx}/report/addTrack" method="post" class="form-horizontal">
<form:hidden path="id"/> <form:hidden path="id"/>
<sys:message content="${message}"/> <sys:message content="${message}"/>
<div id="attachment1" style="display: none"> <div id="attachment1" style="display: none">
<c:if test="${supplementAttachmentList ne null}"> <c:if test="${supplementAttachmentList ne null}">
<c:forEach items="${reportAttachmentList}" var="reportAttachment" varStatus="vs"> <c:forEach items="${reportAttachmentList}" var="reportAttachment" varStatus="vs">
&nbsp;&nbsp;<a href="${reportAttachment.attachmentPath}" class="attachmentClass" target="_blank">${reportAttachment.attachmentName}</a><br> &nbsp;&nbsp;<a href="${reportAttachment.attachmentPath}" class="attachmentClass" target="_blank">${reportAttachment.attachmentName}</a><br>
</c:forEach> </c:forEach>
</c:if> </c:if>
</div> </div>
<span class="title">举报信息补充</span> <span class="title">举报信息补充</span>
<div class="control-group"> <div class="control-group">
<label class="control-label">被举报公司:</label> <label class="control-label">被举报公司:</label>
<div class="controls"> <div class="controls">
<form:input path="supplementCompany" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <form:input path="supplementCompany" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div>
</div> </div>
<div class="control-group"> </div>
<label class="control-label">被举报部门:</label> <div class="control-group">
<div class="controls"> <label class="control-label">被举报部门:</label>
<form:input path="supplementDepartment" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <div class="controls">
<span class="help-inline"><font color="red">*</font> </span> <form:input path="supplementDepartment" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</div> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
<div class="control-group"> </div>
<label class="control-label">标题:</label> <div class="control-group">
<div class="controls"> <label class="control-label">标题:</label>
<form:input path="supplementTitle" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <div class="controls">
<span class="help-inline"><font color="red">*</font> </span> <form:input path="supplementTitle" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</div> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
<div class="control-group"> </div>
<label class="control-label">业务类型:</label> <div class="control-group">
<div class="controls"> <label class="control-label">业务类型:</label>
<span class="supplementType"> <div class="controls">
<form:checkboxes path="supplementType" items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"/> <form:select id="supplementType" path="supplementType" class="input-small required">
</span> <form:option value=" ">请选择</form:option>
<%--<form:select id="supplementType" path="supplementType" class="input-small required">--%> <form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"
<%--<form:option value=" ">请选择</form:option>--%> htmlEscape="false"/></form:select>
<%--<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"--%> <span class="help-inline"><font color="red">*</font> </span>
<%--htmlEscape="false"/></form:select>--%>
<%--<span class="help-inline"><font color="red">*</font> </span>--%>
</div>
</div> </div>
<div class="control-group"> </div>
<label class="control-label">被举报区域:</label> <div class="control-group">
<div class="controls"> <label class="control-label">被举报区域:</label>
<form:select id="supplementArea" path="supplementArea" class="input-small required"> <div class="controls">
<form:option value=" ">请选择</form:option> <form:select id="supplementArea" path="supplementArea" class="input-small required">
<form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value" <form:option value=" ">请选择</form:option>
htmlEscape="false"/></form:select> <form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value"
<span class="help-inline"><font color="red">*</font> </span> htmlEscape="false"/></form:select>
</div> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div>
<%--<div class="control-group">--%> <%--<div class="control-group">--%>
<%--<label class="control-label">被举报项目:</label>--%> <%--<label class="control-label">被举报项目:</label>--%>
<%--<div class="controls">--%> <%--<div class="controls">--%>
...@@ -269,58 +273,117 @@ ...@@ -269,58 +273,117 @@
<%--<span class="help-inline"><font color="red">*</font> </span>--%> <%--<span class="help-inline"><font color="red">*</font> </span>--%>
<%--</div>--%> <%--</div>--%>
<%--</div>--%> <%--</div>--%>
<div class="control-group"> <div class="control-group">
<label class="control-label">内容:</label> <label class="control-label">内容:</label>
<div class="controls"> <div class="controls">
<form:textarea id="supplementContent" htmlEscape="true" path="supplementContent" rows="4" maxlength="500" class="input-xxlarge"/> <form:textarea id="supplementContent" htmlEscape="true" path="supplementContent" rows="4"
</div> maxlength="500" class="input-xxlarge" placeholder="最多输入3000个字符"/>
</div> </div>
<div class="control-group"> </div>
<label class="control-label">附件:</label> <div class="control-group">
<div id="attachment2" class="controls"> <label class="control-label">附件:</label>
<c:if test="${supplementAttachmentList ne null}"> <div id="attachment2" class="controls">
<c:forEach items="${supplementAttachmentList}" var="supplementAttachment" varStatus="vs"> <c:if test="${supplementAttachmentList ne null}">
&nbsp;&nbsp;<a href="${supplementAttachment.attachmentPath}" class="attachmentClass" target="_blank">${supplementAttachment.attachmentName}</a><br> <c:forEach items="${supplementAttachmentList}" var="supplementAttachment" varStatus="vs">
</c:forEach> &nbsp;&nbsp;<a href="${supplementAttachment.attachmentPath}" class="attachmentClass" target="_blank">${supplementAttachment.attachmentName}</a><br>
</c:if> </c:forEach>
<form:hidden id="nameFile" path="supplementAttachment" htmlEscape="false" </c:if>
maxlength="255" class="input-xlarge"/> <form:hidden id="nameFile" path="supplementAttachment" htmlEscape="false"
<sys:ckfinder input="nameFile" type="files" uploadPath="/file" maxlength="255" class="input-xlarge"/>
selectMultiple="true" maxWidth="100" maxHeight="100"/> <sys:ckfinder input="nameFile" type="files" uploadPath="/file"
</div> selectMultiple="true" maxWidth="100" maxHeight="100"/>
</div> </div>
<span class="title">处理结果</span> </div>
<div class="control-group"> <%--<span class="title">信息分类</span>--%>
<label class="control-label">处理人:</label> <%--<div class="control-group">--%>
<div class="controls"> <%--<c:if test="${report.dealResult ne '3'}">--%>
<form:input path="dealPersonName" value="${currentUser}" disabled="true" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <%--<label class="control-label">处理结论:</label>--%>
<span class="help-inline"><font color="red">*</font> </span> <%--<div class="controls">--%>
</div> <%--&lt;%&ndash; <form:select path="dealResult" class="input-small required" onchange="doSome()">&ndash;%&gt;--%>
<%--<form:select path="dealResult" class="input-small required">--%>
<%--<form:option value=" ">请选择</form:option>--%>
<%--<form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value" htmlEscape="false"/>--%>
<%--</form:select>--%>
<%--</div>--%>
<%--</c:if>--%>
<%--<c:if test="${report.dealResult eq '3'}">--%>
<%--<div class="control-group">--%>
<%--<label class="control-label">处理结论:</label>--%>
<%--<div class="controls">--%>
<%--&lt;%&ndash; <form:select path="dealResult" class="input-small required" onchange="doSome()">&ndash;%&gt;--%>
<%--<form:select path="dealResult" class="input-small required">--%>
<%--<form:option value=" ">请选择</form:option>--%>
<%--<form:option value="dealed">已处理</form:option>--%>
<%--<form:option value="dealing">受理中</form:option>--%>
<%--</form:select>--%>
<%--</div>--%>
<%--&lt;%&ndash;<div id="isTrue" class="isTrue">&ndash;%&gt;--%>
<%--&lt;%&ndash;<input path="true" type="radio" value=""/>属实&ndash;%&gt;--%>
<%--&lt;%&ndash;<input path="notTrue" type="radio" value=""/>不属实&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--</div>--%>
<%--</c:if>--%>
<%--&lt;%&ndash; <div id="dhide" style="display:none">&ndash;%&gt;--%>
<%--<span class="title">处理结果</span>--%>
<%--<div class="control-group">--%>
<%--<label class="control-label">处理人:</label>--%>
<%--<div class="controls">--%>
<%--<form:input path="dealPersonName" value="${currentUser}" disabled="true" htmlEscape="false" maxlength="200" class="input-xlarge required"/>--%>
<%--<span class="help-inline"><font color="red">*</font> </span>--%>
<%--</div>--%>
<%--</div>--%>
<%--<div class="control-group">--%>
<%--<label class="control-label">处理成果文件:</label>--%>
<%--<div id="attachment3" class="controls">--%>
<%--<c:if test="${dealAttachmentList ne null}">--%>
<%--<c:forEach items="${dealAttachmentList}" var="dealAttachment" varStatus="vs">--%>
<%--&nbsp;&nbsp;<a href="${dealAttachment.attachmentPath}" class="attachmentClass" target="_blank">${dealAttachment.attachmentName}</a><br>--%>
<%--</c:forEach>--%>
<%--</c:if>--%>
<%--<form:hidden id="dealFile" path="dealAttachment" htmlEscape="false"--%>
<%--maxlength="255" class="input-xlarge"/>--%>
<%--<sys:ckfinder input="dealFile" type="files" uploadPath="/file"--%>
<%--selectMultiple="true" maxWidth="100" maxHeight="100"/>--%>
<%--<label id="checkFile" class="error" style="display: none;">必填信息</label>--%>
<%--</div>--%>
<%--</div>--%>
<%--</div>--%>
<span class="title">处理结果</span>
<div class="control-group">
<label class="control-label">处理人:</label>
<div class="controls">
<form:input path="dealPersonName" value="${currentUser}" disabled="true" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
</div> </div>
<div class="control-group"> </div>
<label class="control-label">处理成果文件:</label> <div class="control-group">
<div id="attachment3" class="controls"> <label class="control-label">处理成果文件:</label>
<c:if test="${dealAttachmentList ne null}"> <div id="attachment3" class="controls">
<c:forEach items="${dealAttachmentList}" var="dealAttachment" varStatus="vs"> <c:if test="${dealAttachmentList ne null}">
&nbsp;&nbsp;<a href="${dealAttachment.attachmentPath}" class="attachmentClass" target="_blank">${dealAttachment.attachmentName}</a><br> <c:forEach items="${dealAttachmentList}" var="dealAttachment" varStatus="vs">
</c:forEach> &nbsp;&nbsp;<a href="${dealAttachment.attachmentPath}" class="attachmentClass" target="_blank">${dealAttachment.attachmentName}</a><br>
</c:if> </c:forEach>
<form:hidden id="dealFile" path="dealAttachment" htmlEscape="false" </c:if>
maxlength="255" class="input-xlarge"/> <form:hidden id="dealFile" path="dealAttachment" htmlEscape="false"
<sys:ckfinder input="dealFile" type="files" uploadPath="/file" maxlength="255" class="input-xlarge"/>
selectMultiple="true" maxWidth="100" maxHeight="100"/> <sys:ckfinder input="dealFile" type="files" uploadPath="/file"
<label id="checkFile" class="error" style="display: none;">必填信息</label> selectMultiple="true" maxWidth="100" maxHeight="100"/>
</div> <label id="checkFile" class="error" style="display: none;">必填信息</label>
</div> </div>
<div class="control-group"> <br>
<label class="control-label">处理结论:</label> <label class="control-label">处理结论:</label>
<div class="controls"> <div class="controls">
<form:select path="dealResult" class="input-small required"> <form:select path="dealResult" class="input-small required">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
htmlEscape="false"/></form:select> </form:select>
</div> </div>
<br>
<c:if test="${report.dealResult eq '3'}">
<div class="controls">
<input type="checkbox" id="ifDone" name="ifDone" value="ifDone"/>是否完成
</div> </div>
</c:if>
<span class="title">移交他人处理</span> <span class="title">移交他人处理</span>
<div class="control-group"> <div class="control-group">
<label class="control-label">移交:</label> <label class="control-label">移交:</label>
...@@ -333,145 +396,145 @@ ...@@ -333,145 +396,145 @@
<input id="btnSubmit" class="btn btn-primary" type="submit" value="提交"/>&nbsp; <input id="btnSubmit" class="btn btn-primary" type="submit" value="提交"/>&nbsp;
<input id="btnMail" class="btn btn-primary" type="button" value="发邮件"/> <input id="btnMail" class="btn btn-primary" type="button" value="发邮件"/>
</div> </div>
</form:form> </form:form>
<div id="fade" class="black_overlay"></div> <div id="fade" class="black_overlay"></div>
<div id="chooseDiv" class="white_content"> <div id="chooseDiv" class="white_content">
<div id="chooseContent"> <div id="chooseContent">
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
$("#btnSearch").click(function () { $("#btnSearch").click(function () {
$.ajax({
url: "${ctx}/report/viewTransfer?flag=1",
dataType: "html",
data: $('#searchForm').serialize(),
cache: false,
beforeSend: function () {
// 禁用按钮防止重复提交
$("#btnSearch").attr({ disabled: "disabled" });
},
success: function(data) { //登录成功后返回的数据
$("#userList").empty();
$("#userList").html($(data));
},
error:function(){
alert("数据错误!");
},
complete: function () {
$("#btnSearch").removeAttr("disabled");
}
});
});
$("input:radio").click(function () {
$("input:radio").attr("checked",false);
$("#chooseItem").empty();
$(this).attr("checked",true);
$("#chooseItem").html("已选择 " + b.parent().next().next().next().html()+"<span onclick='remove();'><font size='5'> ×</font></span>");
});
});
function chooseRen(obj) {
$("input:radio").attr("checked",false);
$("#chooseItem").empty();
obj.checked = true;
$("#chooseItem").html("已选择 " + $("input:radio:checked").parent().next().next().next().html()+"<span onclick='remove();'><font size='5'> ×</font></span>");
}
function remove(){
$("input:radio").attr("checked",false);
$("#chooseItem").empty();
}
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$.ajax({ $.ajax({
url: "${ctx}/report/viewTransfer?flag=1", url: "${ctx}/report/viewTransfer?flag=1",
dataType: "html", dataType: "html",
data: $('#searchForm').serialize(), data: $('#searchForm').serialize(),
cache: false, cache: false,
beforeSend: function () {
// 禁用按钮防止重复提交
$("#btnSearch").attr({ disabled: "disabled" });
},
success: function(data) { //登录成功后返回的数据 success: function(data) { //登录成功后返回的数据
$("#userList").empty(); $("#userList").empty();
$("#userList").html($(data)); $("#userList").html($(data));
}, },
error:function(){ error:function(){
alert("数据错误!"); alert("数据错误!");
},
complete: function () {
$("#btnSearch").removeAttr("disabled");
} }
}); });
}); return false;
}
$("input:radio").click(function () { function resetPageNo() {
$("input:radio").attr("checked",false); $("#pageNo").val(0);
$("#chooseItem").empty(); }
$(this).attr("checked",true); </script>
$("#chooseItem").html("已选择 " + $("input:radio:checked").parent().next().next().next().html()+"<span onclick='remove();'><font size='5'> ×</font></span>"); <span class="title">选择移交人员</span>
}); <form:form id="searchForm" modelAttribute="user" action="#" method="post" class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
}); <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
function chooseRen(obj) { <ul class="ul-form">
$("input:radio").attr("checked",false); <li><label>员工号:</label><form:input onchange="resetPageNo();" path="no" htmlEscape="false" maxlength="50" class="input-small"/></li>
$("#chooseItem").empty(); <li><label>姓名:</label><form:input onchange="resetPageNo();" path="name" htmlEscape="false" maxlength="50" class="input-small"/></li>
obj.checked = true; <li><label>手机号:</label><form:input onchange="resetPageNo();" path="mobile" htmlEscape="false" maxlength="50" class="input-small"/></li>
$("#chooseItem").html("已选择 " + $("input:radio:checked").parent().next().next().next().html()+"<span onclick='remove();'><font size='5'> ×</font></span>"); <li><label>公司:</label><form:select onchange="resetPageNo();" path="company.id" class="input-small ">
} <form:option value=" ">请选择</form:option>
function remove(){ <form:options items="${companyList}" itemLabel="name" itemValue="id" htmlEscape="false"/>
$("input:radio").attr("checked",false); </form:select></li>
$("#chooseItem").empty(); <li class="clearfix"></li>
} <li><label>部门:</label><form:select onchange="resetPageNo();" path="office.id" class="input-small">
function page(n,s){ <form:option value=" ">请选择</form:option>
$("#pageNo").val(n); <form:options items="${officeList}" itemLabel="name" itemValue="id" htmlEscape="false"/></form:select></li>
$("#pageSize").val(s); <li><label>职位:</label><form:select onchange="resetPageNo();" path="position.name" class="input-small">
$.ajax({ <form:option value=" " selected="selected">请选择</form:option>
url: "${ctx}/report/viewTransfer?flag=1", <form:options items="${positionList}" itemLabel="name" itemValue="id" htmlEscape="false"/></form:select></li>
dataType: "html", <li class="btns">
data: $('#searchForm').serialize(), <label style="width:auto;"><input id="btnSearch" class="btn btn-primary" type="button" value="筛选"/>&nbsp;&nbsp;</label>
cache: false, </li>
success: function(data) { //登录成功后返回的数据 <li class="clearfix"></li>
$("#userList").empty(); </ul>
$("#userList").html($(data)); </form:form>
}, <div id="userList">
error:function(){ <table id="contentTable" class="table table-striped table-bordered table-condensed">
alert("数据错误!"); <thead>
} <tr>
}); <th>选择</th>
return false; <th>ID</th>
} <th>员工号</th>
function resetPageNo() { <th>姓名</th>
$("#pageNo").val(0); <th>手机号</th>
} <th>所属公司</th>
</script> <th>所属部门</th>
<span class="title">选择移交人员</span> <th>职位</th>
<form:form id="searchForm" modelAttribute="user" action="#" method="post" class="breadcrumb form-search"> </tr>
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/> </thead>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/> <tbody>
<ul class="ul-form">
<li><label>员工号:</label><form:input onchange="resetPageNo();" path="no" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>姓名:</label><form:input onchange="resetPageNo();" path="name" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>手机号:</label><form:input onchange="resetPageNo();" path="mobile" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>公司:</label><form:select onchange="resetPageNo();" path="company.id" class="input-small ">
<form:option value=" ">请选择</form:option>
<form:options items="${companyList}" itemLabel="name" itemValue="id" htmlEscape="false"/>
</form:select></li>
<li class="clearfix"></li>
<li><label>部门:</label><form:select onchange="resetPageNo();" path="office.id" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${officeList}" itemLabel="name" itemValue="id" htmlEscape="false"/></form:select></li>
<li><label>职位:</label><form:select onchange="resetPageNo();" path="position.name" class="input-small">
<form:option value=" " selected="selected">请选择</form:option>
<form:options items="${positionList}" itemLabel="name" itemValue="id" htmlEscape="false"/></form:select></li>
<li class="btns">
<label style="width:auto;"><input id="btnSearch" class="btn btn-primary" type="button" value="筛选"/>&nbsp;&nbsp;</label>
</li>
<li class="clearfix"></li>
</ul>
</form:form>
<div id="userList">
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>选择</th>
<th>ID</th>
<th>员工号</th>
<th>姓名</th>
<th>手机号</th>
<th>所属公司</th>
<th>所属部门</th>
<th>职位</th>
</tr>
</thead>
<tbody>
<c:if test="${page.list.size()>0}">
<c:forEach items="${page.list}" var="user" varStatus="vs">
<tr>
<td id="radioBtn"><input type="radio" value="${user.id}"></td>
<td>${vs.count}</td>
<td>${user.no}</td>
<td>${user.name}</td>
<td>${user.mobile}</td>
<td>${user.company.name}</td>
<td>${user.office.name}</td>
<td>${user.position.name}</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>
<span id="chooseItem"></span>
<c:if test="${page.list.size()=='0'}">
<span style="color: #999999;margin: 20px 0 70px 20px;display: block;">未查询到相关内容</span>
</c:if>
<c:if test="${page.list.size()>0}"> <c:if test="${page.list.size()>0}">
<c:forEach items="${page.list}" var="user" varStatus="vs"> <div class="pagination">${page}</div>
<tr>
<td id="radioBtn"><input type="radio" value="${user.id}"></td>
<td>${vs.count}</td>
<td>${user.no}</td>
<td>${user.name}</td>
<td>${user.mobile}</td>
<td>${user.company.name}</td>
<td>${user.office.name}</td>
<td>${user.position.name}</td>
</tr>
</c:forEach>
</c:if> </c:if>
</tbody> </div>
</table> <li class="btns">
<span id="chooseItem"></span> <label style="width:auto;"><input id="btnConfirm" class="btn btn-primary" type="button" value="确定"/>&nbsp;&nbsp;
<c:if test="${page.list.size()=='0'}"> <input id="btnClose" class="btn btn-primary" type="button" value="关闭"/></label>
<span style="color: #999999;margin: 20px 0 70px 20px;display: block;">未查询到相关内容</span> </li>
</c:if>
<c:if test="${page.list.size()>0}">
<div class="pagination">${page}</div>
</c:if>
</div> </div>
<li class="btns">
<label style="width:auto;"><input id="btnConfirm" class="btn btn-primary" type="button" value="确定"/>&nbsp;&nbsp;
<input id="btnClose" class="btn btn-primary" type="button" value="关闭"/></label>
</li>
</div> </div>
</div>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment