0
点赞
收藏
分享

微信扫一扫

springboot+thymeleaf+pageHelper带条件分页查询

千行 2021-09-25 阅读 71

<div class="modal-footer no-margin-top">

    <ul class="pagination pull-right no-margin">

  •             <a>共[[${page.total}]]条

  •             <a><input type="number" value="" id="toGoPage" style="width:50px;height:18px;text-align:center;float:left" placeholder="页码"/>

            <li th:if="${page.hasPreviousPage}">

                <a th:href="@{'/log/logList?pageNum=1'+'&starttime='+${query.starttime}+'&endtime='+${query.endtime}+'&opntype='+${query.opntype}}">首页

            <li class="prev" th:if="${page.hasPreviousPage}">

                <a th:href="@{'/log/logList?pageNum='+${page.prePage}+'&starttime='+${query.starttime}+'&endtime='+${query.endtime}+'&opntype='+${query.opntype}}">

                    <i class="ace-icon fa fa-angle-double-left">


            <li th:each="nav:${page.navigatepageNums}">

                <a th:href="@{'/log/logList?pageNum='+${nav}+'&starttime='+${query.starttime}+'&endtime='+${query.endtime}+'&opntype='+${query.opntype}}" th:text="${nav}" th:if="${nav != page.pageNum}">

                <span style="font-weight:bold;background:#6faed9;" th:if="${nav == page.pageNum}" th:text="${nav}" >

            <li class="next" th:if="${page.hasNextPage}">

                <a th:href="@{'/log/logList?pageNum='+${page.nextPage}+'&starttime='+${query.starttime}+'&endtime='+${query.endtime}+'&opntype='+${query.opntype}}">

                    <i class="ace-icon fa fa-angle-double-right">

  •             <a th:href="@{'/log/logList?pageNum='+${page.pages}+'&starttime='+${query.starttime}+'&endtime='+${query.endtime}+'&opntype='+${query.opntype}}">尾页

  •             <a>当前第[[${page.pageNum}]]页

                <a>共 [[${page.pages}]] 页

    </div>

  • 举报

    相关推荐

    0 条评论