|
|
@ -9,7 +9,7 @@ |
|
|
|
$(function () { |
|
|
|
$(function () { |
|
|
|
$("#pageButton button").click(function () { |
|
|
|
$("#pageButton button").click(function () { |
|
|
|
$("[name=firstResult]").val($(this).val()); |
|
|
|
$("[name=firstResult]").val($(this).val()); |
|
|
|
$('#command').submit(); |
|
|
|
$('#pageForm').submit(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
@ -17,6 +17,9 @@ |
|
|
|
<body> |
|
|
|
<body> |
|
|
|
<c:choose> |
|
|
|
<c:choose> |
|
|
|
<c:when test="${datas.type=='success'}"> |
|
|
|
<c:when test="${datas.type=='success'}"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<table class="table"> |
|
|
|
<table class="table"> |
|
|
|
<thead> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
@ -43,7 +46,7 @@ |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
|
|
<form:form action="/data/table"> |
|
|
|
<form:form id="pageForm" action="/data/table"> |
|
|
|
<input type="hidden" name="firstResult" value="0"/> |
|
|
|
<input type="hidden" name="firstResult" value="0"/> |
|
|
|
<input type="hidden" name="maxResults" value="${datas.pageSize}"/> |
|
|
|
<input type="hidden" name="maxResults" value="${datas.pageSize}"/> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
@ -54,7 +57,7 @@ |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-sm-6"> |
|
|
|
<div class="col-sm-6"> |
|
|
|
<div id="pageButton" class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups"> |
|
|
|
<div id="pageButton" class="btn-toolbar justify-content-end" role="toolbar" aria-label="Toolbar with button groups"> |
|
|
|
<div class="btn-group mr-2" role="group"> |
|
|
|
<div class="btn-group mr-2" role="group"> |
|
|
|
<button value="0" type="button" class="btn btn-secondary">首页</button> |
|
|
|
<button value="0" type="button" class="btn btn-secondary">首页</button> |
|
|
|
<button value="${datas.currentPage-2}" type="button" class="btn btn-secondary" |
|
|
|
<button value="${datas.currentPage-2}" type="button" class="btn btn-secondary" |
|
|
@ -79,7 +82,7 @@ |
|
|
|
</c:when> |
|
|
|
</c:when> |
|
|
|
<c:otherwise> |
|
|
|
<c:otherwise> |
|
|
|
<div class="alert alert-danger text-center" role="alert"> |
|
|
|
<div class="alert alert-danger text-center" role="alert"> |
|
|
|
请求数据失败 |
|
|
|
${datas.errorMsg} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</c:otherwise> |
|
|
|
</c:otherwise> |
|
|
|
</c:choose> |
|
|
|
</c:choose> |
|
|
|