dclgzIndex.htm 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>待处理故障</title>
  5. <style type="text/css">
  6. .cotainer{
  7. display: flex;
  8. flex-direction: column;
  9. margin: 14px;
  10. }
  11. .dclgz{
  12. flex-direction: row;
  13. display: flex;
  14. height: 29px;
  15. color: #353a84;
  16. font-weight: bold;
  17. border-top: solid #c4c2c2 1px;
  18. border-bottom: solid #c4c2c2 1px;
  19. margin-bottom: 8px;
  20. }
  21. .dclgz>:first-child{
  22. flex:0.95;
  23. padding-top: 4px;
  24. }
  25. .dclgz>:last-child{
  26. background-color: #3a3d84;
  27. width: 23px;
  28. height: 23px;
  29. border-radius: 50%;
  30. margin-top: 2px;
  31. }
  32. .square{
  33. width: 15px;
  34. height: 15px;
  35. margin-top: 4px;
  36. margin-left: 4px;
  37. border: solid white 1px;
  38. }
  39. tbody>:nth-child(odd){
  40. background-color: #f3f3f3;
  41. }
  42. tbody>:first-child{
  43. border-top: 1px solid gainsboro;
  44. padding-top: 10px;
  45. }
  46. tr{
  47. line-height: 24px;
  48. }
  49. td{
  50. padding-left: 10px;
  51. }
  52. tr>:first-child{
  53. width: 63%;
  54. }
  55. .num{
  56. width: 15px;
  57. height: 10px;
  58. background-color: red;
  59. position: relative;
  60. left: 9px;
  61. top: -17px;
  62. border-radius: 26%;
  63. font-size: 9px;
  64. color: wheat;
  65. text-align: center;
  66. }
  67. .active{
  68. color: #353a84;
  69. font-weight: bold;
  70. }
  71. .gztitle{
  72. justify-content: space-around;
  73. display: flex;
  74. font-size: 0.22rem;
  75. margin: 5px;
  76. }
  77. table tr td{
  78. line-height: 0.5rem !important;
  79. }
  80. </style>
  81. <script type="text/javascript">
  82. var iscroll;
  83. /**
  84. * 初始化滚动条
  85. * */
  86. iscroll = new IScroll(".wsclIscroll",{
  87. scrollbars: true,
  88. fadeScrollbars:true,
  89. scrollbars: 'custom',
  90. shrinkScrollbars:'clip',
  91. click:true
  92. });
  93. setTimeout(function(){
  94. iscroll.refresh();
  95. }, 100);
  96. $(".gztitle > div").on("click" , function(){
  97. $(this).addClass("active").siblings().removeClass("active");
  98. if($(this).hasClass("ycl")) {
  99. $("#ycl").show();
  100. $("#dcl").hide();
  101. }else {
  102. $("#ycl").hide();
  103. $("#dcl").show();
  104. }
  105. })
  106. </script>
  107. </head>
  108. <body>
  109. <section class="wsclIscroll" style="background: #fff;">
  110. <div>
  111. <div class="gztitle">
  112. <div class="active dcl">待处理故障</div>
  113. <div class="ycl">已处理故障</div>
  114. </div>
  115. <div>
  116. <table id='dcl' style="width:100%;">
  117. #foreach($!obj in $!sbgzList)
  118. <tr>
  119. <td>$!obj.gzlx</td>
  120. <td>$!dateTool.format('yyyy-MM-dd HH:mm:ss', $!obj.fssj)</td>
  121. </tr>
  122. #end
  123. </table>
  124. <table id='ycl' style="width:100%;display:none;">
  125. #foreach($!obj in $!sbgzList1)
  126. <tr>
  127. <td>$!obj.gzlx</td>
  128. <td>$!dateTool.format('yyyy-MM-dd HH:mm:ss', $!obj.clsj)</td>
  129. </tr>
  130. #end
  131. </table>
  132. </div>
  133. </div>
  134. </section>
  135. </body>
  136. </html>