approve_select_page.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{admin/common/common}">
  5. <head>
  6. <title>存量用地审核列表</title>
  7. <style>
  8. .textColor{background-color: transparent;color: #333;font-size:12px;font-weight: initial}
  9. .detail{
  10. color:blue;
  11. text-decoration: underline;
  12. }
  13. </style>
  14. </head>
  15. <body layout:fragment="content">
  16. <nav class="breadcrumb">
  17. <i class="Hui-iconfont">&#xe67f;</i>
  18. 首页
  19. <span class="c-gray en">&gt;</span>存量土地
  20. <span class="c-gray en">&gt;</span>存量土地查询
  21. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
  22. href="javascript:location.replace(location.href);" title="刷新">
  23. <i class="Hui-iconfont">&#xe68f;</i>
  24. </a>
  25. </nav>
  26. <form id="myForm" th:method="get"><!-- th:action="@{/stockLand/approveList/{isPendingAudit}(isPendingAudit=${isPendingAudit})}" -->
  27. <div class="page-container">
  28. <!-- <div class="text-c">
  29. <span class="select-box" style="width:250px">
  30. <select id="searchApplyType" class="select" name="apply_type">
  31. <option value="">--全部--</option>
  32. <option value="" th:each="item : ${itemList}" th:value="${item.value}" th:text="${item.name}"
  33. th:selected = "${apply_type == item.value}">
  34. </option>
  35. </select>
  36. </span>
  37. <input type="text" class="input-text" style="width:250px" placeholder="请输入编号进行查询" name="keyword" th:value="${keyword}"/>
  38. <button type="submit" class="btn btn-primary">
  39. 搜索
  40. </button>
  41. </div> -->
  42. <div class="cl pd-5 bg-1 bk-gray mt-20">
  43. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">54</strong> 条</span><!-- -->
  44. </div>
  45. <table class="table table-border table-bordered table-bg table-hover">
  46. <thead>
  47. <tr class="text-c j-theadtr" >
  48. <th width="100">属地名称</th>
  49. <th th:each="model,iterStat:${itemList}" th:object="${model}"
  50. th:text="*{name}" th:value="*{value}" class="headerVal"></th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. <tr class="text-cc j-tbody" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  55. <input type="hidden" name="street_id" th:value="*{street_id}" class="inputValue" />
  56. <td th:text="*{street_name}"></td>
  57. <td><a th:text="*{amount_one}" class="detail"></a> 条</td>
  58. <td><a th:text="*{amount_two}" class="detail"></a> 条</td>
  59. <td><a th:text="*{amount_three}" class="detail"></a> 条</td>
  60. <td><a th:text="*{amount_four}" class="detail"></a> 条</td>
  61. </tr>
  62. </tbody>
  63. </table>
  64. <div th:replace="admin/common/page :: page"></div>
  65. </div>
  66. </form>
  67. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  68. <script type="text/javascript" th:src="@{/js/company/stock_land/approve_pass_list.js}"></script>
  69. <script th:inline="javascript">
  70. $(function(){
  71. $(document).on("click",".detail", function () {
  72. var index = $(this).parents("tr").find("td").index($(this).parent());//获取当前td在tr种得索引
  73. var thAry = $('.j-theadtr th');//获取thead tr th,也就是头标的th
  74. var itemId = $(thAry[index]).attr("value");//因为头标与body都一样的索引,因此可以取到
  75. var street_id = $(this).parents("tr").find(".inputValue").attr("value");
  76. if(!street_id){
  77. //for ie8
  78. street_id = $(this).parents("tr").children().find(".inputValue").attr("value");
  79. }
  80. //window.open(pagePath + "/stockLand/passList?" +"itemId="+itemId+"&street_id="+street_id);
  81. window.location.href= pagePath + "/stockLand/selectList?" +"itemId="+itemId+"&street_id="+street_id;
  82. })
  83. })
  84. </script>
  85. </body>
  86. </html>