index.blade.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. @extends('layouts.admin.app')
  2. @section('plug-css')
  3. <link href="{{ asset('js/bootstrap-table/dist/bootstrap-table.css') }}" rel="stylesheet">
  4. @endsection
  5. @section('crumbs')
  6. <ol class="breadcrumb crumbs">
  7. <li><a href="{{ route('admin.index') }}#">后台导航</a></li>
  8. <li class="active">报单列表</li>
  9. </ol>
  10. @endsection
  11. @section('content')
  12. <form id="searchForm" class="form-inline">
  13. <div class="">
  14. <div class="form-group">
  15. <label for="name" class="label-css"> 合约编号:</label>
  16. <input class="form-control" type="text" name="contract_sn">
  17. </div>
  18. <div class="form-group">
  19. <label for="name" class="label-css"> 用户地址:</label>
  20. <input class="form-control" type="text" name="address">
  21. </div>
  22. <div class="form-group">
  23. <label for="name" class="label-css"> 交易哈希:</label>
  24. <input class="form-control" type="text" name="hash">
  25. </div>
  26. <div class="form-group">
  27. <label for="is_sys_add" class="label-css"> 状态:</label>
  28. <select class="form-control" name="c.status" style="margin-top: -8px;">
  29. <option value="">全部</option>
  30. <option value="1">广播中</option>
  31. <option value="2">交易成功</option>
  32. <option value="3">交易失败</option>
  33. <option value="4">公排出局</option>
  34. </select>
  35. </div>
  36. <button type="button" class="btn btn-primary">查询</button>
  37. </div>
  38. </form>
  39. <hr class="hr-css">
  40. <div>
  41. <div id="toolbar">
  42. <div class="columns columns-left btn-group pull-left">
  43. </div>
  44. </div>
  45. <table id="ContentTable"></table>
  46. </div>
  47. @endsection
  48. @section('plug-js')
  49. <script src="{{ asset('js/bootstrap-table/dist/bootstrap-table.js') }}"></script>
  50. <script src="{{ asset('js/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js') }}"></script>
  51. <script src="{{ asset('js/jquery-validation1.16/dist/jquery.validate.min.js') }}"></script>
  52. <script src="{{ asset('js/jquery-validation1.16/dist/additional-methods.min.js') }}"></script>
  53. <script src="{{ asset('js/jquery-validation1.16/src/localization/messages_zh.js') }}"></script>
  54. @endsection
  55. @section('scripts')
  56. <script>
  57. $(function () {
  58. BootStrapInit.init('tableContract', 'ContentTable', {
  59. searchForm: 'searchForm', // 表单搜索id 省略默认 'searchForm'
  60. url: "{{ route('admin.contract.ajax.index') }}",
  61. method: 'post',
  62. toolbar: '#toolbar',
  63. idField: '', // 指定主键列
  64. uniqueId: "id", // 这里需要指定当前查询表唯一主键字段
  65. columns: [
  66. {
  67. checkbox: true,
  68. align: 'center',
  69. valign: 'middle'
  70. },
  71. {
  72. field: 'id',
  73. title: 'ID',
  74. align: 'center',
  75. valign: 'middle',
  76. },
  77. {
  78. field: 'address',
  79. title: '用户地址',
  80. align: 'center',
  81. valign: 'middle',
  82. formatter:aHttpAddress,
  83. },
  84. {
  85. field: 'contract_sn',
  86. title: '合约编号',
  87. align: 'center',
  88. valign: 'middle',
  89. },
  90. {
  91. field: 'money',
  92. title: '报单金额',
  93. align: 'center',
  94. valign: 'middle',
  95. },
  96. {
  97. field: 'hash',
  98. title: '交易哈希',
  99. align: 'center',
  100. valign: 'middle',
  101. formatter:aHttpHash,
  102. },
  103. {
  104. field: 'status',
  105. title: '状态',
  106. align: 'center',
  107. valign: 'middle',
  108. },
  109. {
  110. field: 'error_msg',
  111. title: '错误描述',
  112. align: 'center',
  113. valign: 'middle',
  114. },
  115. {
  116. field: 'is_out',
  117. title: '公排统计',
  118. align: 'center',
  119. valign: 'middle',
  120. formatter:yesOrNoTwo,
  121. bool_data:{
  122. 'class' : 'cursor',
  123. 'table' : 'members'
  124. }
  125. },
  126. {
  127. field: 'created_at',
  128. title: '创建时间',
  129. align: 'center',
  130. valign: 'middle',
  131. },
  132. {
  133. field: 'updated_at',
  134. title: '更新时间',
  135. align: 'center',
  136. valign: 'middle',
  137. },
  138. {
  139. pkId: 'id', // 当前主键id 兼容排序 field='id' 默认值id
  140. title: '操作',
  141. align: 'center',
  142. valign: 'middle',
  143. width: '185px',
  144. formatter: operateFormatter,
  145. btn_group: [
  146. {
  147. 'name': '清分记录',
  148. 'class': 'btn-primary',
  149. 'url': '{{ route('admin.contractDistribution.index', ['contractId'=>'-val-'])}}'
  150. },
  151. ]
  152. }
  153. ]
  154. });
  155. });
  156. </script>
  157. @endsection