search.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <th:block th:include="include :: header('表格搜索')" />
  5. <th:block th:include="include :: bootstrap-select-css" />
  6. </head>
  7. <body class="gray-bg">
  8. <div class="container-div">
  9. <div class="row">
  10. <div class="col-sm-12 search-collapse">
  11. <p class="select-title">普通条件查询</p>
  12. <form id="ordinary-form">
  13. <div class="select-list">
  14. <ul>
  15. <li>
  16. 商户编号:<input type="text" name="userId"/>
  17. </li>
  18. <li>
  19. 终端编号:<input type="text" name="termId"/>
  20. </li>
  21. <li>
  22. 处理状态:<select name="status">
  23. <option value="">所有</option>
  24. <option value="0">初始</option>
  25. <option value="1">处理中</option>
  26. <option value="2">交易成功</option>
  27. <option value="3">交易失败</option>
  28. </select>
  29. </li>
  30. <li>
  31. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  32. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  33. </li>
  34. </ul>
  35. </div>
  36. </form>
  37. </div>
  38. <div class="col-sm-12 search-collapse">
  39. <p class="select-title">时间条件查询</p>
  40. <form id="time-form">
  41. <div class="select-list">
  42. <ul>
  43. <li>
  44. 商户编号:<input type="text" name="userId"/>
  45. </li>
  46. <li>
  47. 终端编号:<input type="text" name="termId"/>
  48. </li>
  49. <li class="select-time">
  50. <label>创建时间: </label>
  51. <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
  52. <span>-</span>
  53. <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
  54. </li>
  55. <li>
  56. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  57. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('time-form')"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  58. </li>
  59. </ul>
  60. </div>
  61. </form>
  62. </div>
  63. <div class="col-sm-12 search-collapse">
  64. <p class="select-title">多级联动下拉查询</p>
  65. <form id="cxselect-form">
  66. <div class="select-list">
  67. <ul id="element">
  68. <li>
  69. 商户编号:<input type="text" name="userId"/>
  70. </li>
  71. <li>
  72. 充值类型:<select class="type"></select>
  73. </li>
  74. <li>
  75. 充值路由:<select class="router"></select>
  76. </li>
  77. <li>
  78. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  79. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('cxselect-form')"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  80. </li>
  81. </ul>
  82. </div>
  83. </form>
  84. </div>
  85. <div class="col-sm-12 search-collapse">
  86. <p class="select-title">下拉多选条件查询</p>
  87. <form id="select-form">
  88. <div class="select-list">
  89. <ul>
  90. <li>
  91. 商户编号:<input type="text" name="userId"/>
  92. </li>
  93. <li>
  94. 终端编号:<input type="text" name="termId"/>
  95. </li>
  96. <li class="select-selectpicker">
  97. <label>操作类型: </label><select class="selectpicker" data-none-selected-text="请选择" multiple>
  98. <option value="">所有</option>
  99. <option value="0">初始</option>
  100. <option value="1">处理中</option>
  101. <option value="2">交易成功</option>
  102. <option value="3">交易失败</option>
  103. </select>
  104. </li>
  105. <li>
  106. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  107. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('select-form')"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  108. </li>
  109. </ul>
  110. </div>
  111. </form>
  112. </div>
  113. <div class="col-sm-12 search-collapse">
  114. <p class="select-title">复杂条件查询</p>
  115. <form id="complex-form">
  116. <div class="select-list">
  117. <ul>
  118. <li>
  119. <label style="width: 80px">商户编号:</label>
  120. <input type="text" name="userId"/>
  121. </li>
  122. <li>
  123. <label style="width: 80px">订单号:</label>
  124. <input type="text" name="orderNo"/>
  125. </li>
  126. <li>
  127. <label style="width: 80px">日期:</label>
  128. <input type="text" class="time-input" placeholder="日期"/>
  129. </li>
  130. <li class="select-selectpicker">
  131. <label style="width: 80px">状态:</label>
  132. <select class="selectpicker" data-none-selected-text="请选择" multiple>
  133. <option value="">所有</option>
  134. <option value="0">初始</option>
  135. <option value="1">处理中</option>
  136. <option value="2">交易成功</option>
  137. <option value="3">交易失败</option>
  138. </select>
  139. </li>
  140. <li>
  141. <label style="width: 80px">供货商通道:</label>
  142. <select>
  143. <option value="">所有</option>
  144. <option value="0">腾讯</option>
  145. <option value="1">天猫</option>
  146. <option value="2">京东</option>
  147. </select>
  148. </li>
  149. <li>
  150. <label style="width: 80px">来源:</label>
  151. <select>
  152. <option value="">所有</option>
  153. <option value="0">手机</option>
  154. <option value="1">电脑</option>
  155. <option value="2">第三方</option>
  156. </select>
  157. </li>
  158. <li>
  159. <label style="width: 80px">运营商:</label>
  160. <select>
  161. <option value="">所有</option>
  162. <option value="0">移动</option>
  163. <option value="1">电信</option>
  164. <option value="2">联通</option>
  165. </select>
  166. </li>
  167. <li class="select-time">
  168. <label style="width: 80px">回调时间:</label>
  169. <input type="text" class="time-input" placeholder="开始时间"/>
  170. <span>-</span>
  171. <input type="text" class="time-input" placeholder="结束时间"/>
  172. </li>
  173. <li>
  174. <a class="btn btn-primary btn-rounded btn-sm m50" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  175. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('complex-form')"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  176. </li>
  177. </ul>
  178. </div>
  179. </form>
  180. </div>
  181. </div>
  182. </div>
  183. <th:block th:include="include :: footer" />
  184. <th:block th:include="include :: bootstrap-select-js" />
  185. <th:block th:include="include :: jquery-cxselect-js" />
  186. <script th:inline="javascript">
  187. // 直接返回获取
  188. var data = [{"v":"taobao","n":"淘宝","s":[{"v":"tm","n":"天猫"},{"v":"jhs","n":"聚划算"}]},{"v":"jd","n":"京东","s":[{"v":"jdcs","n":"京东超市"},{"v":"jdsx","n":"京东生鲜"}]}];
  189. $('#element').cxSelect({
  190. selects: ['type', 'router'],
  191. jsonValue: 'v',
  192. data: data
  193. });
  194. </script>
  195. </body>
  196. </html>