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