index.blade.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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="c.contract_sn" value="{{$contractSn}}">
  17. </div>
  18. <div class="form-group">
  19. <label for="name" class="label-css"> 收款地址:</label>
  20. <input class="form-control" type="text" name="cb.to_address">
  21. </div>
  22. &ensp;&ensp;<div class="form-group">
  23. <label for="is_sys_add" class="label-css"> 清分状态:</label>
  24. <select class="form-control" name="cb.status" style="margin-top: -8px;">
  25. <option value="">全部</option>
  26. <option value="0">失败</option>
  27. <option value="1">成功</option>
  28. <option value="2">广播失败</option>
  29. </select>
  30. </div>
  31. &ensp;<div class="form-group">
  32. <label for="is_sys_add" class="label-css"> 清分类型:</label>
  33. <select class="form-control" name="cb.type" style="margin-top: -8px;">
  34. <option value="">全部</option>
  35. @foreach($typeArr as $key=>$type)
  36. <option value="{{$key}}">{{$type}}</option>
  37. @endforeach
  38. </select>
  39. </div>
  40. <button type="button" class="btn btn-primary">查询</button>
  41. </div>
  42. </form>
  43. <hr class="hr-css">
  44. <div>
  45. <div id="toolbar">
  46. <div class="columns columns-left btn-group pull-left">
  47. </div>
  48. </div>
  49. <table id="ContentTable"></table>
  50. </div>
  51. @endsection
  52. @section('plug-js')
  53. <script src="{{ asset('js/bootstrap-table/dist/bootstrap-table.js') }}"></script>
  54. <script src="{{ asset('js/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js') }}"></script>
  55. <script src="{{ asset('js/jquery-validation1.16/dist/jquery.validate.min.js') }}"></script>
  56. <script src="{{ asset('js/jquery-validation1.16/dist/additional-methods.min.js') }}"></script>
  57. <script src="{{ asset('js/jquery-validation1.16/src/localization/messages_zh.js') }}"></script>
  58. @endsection
  59. @section('scripts')
  60. <script>
  61. $(function(){
  62. BootStrapInit.init('tableContractDistribution','ContentTable',{
  63. searchForm: 'searchForm', // 表单搜索id 省略默认 'searchForm'
  64. url: "{{ route('admin.contractDistribution.ajax.index') }}",
  65. method: 'post',
  66. toolbar: '#toolbar',
  67. idField: '', // 指定主键列
  68. uniqueId: "id", // 这里需要指定当前查询表唯一主键字段
  69. columns: [
  70. {
  71. checkbox: true,
  72. align: 'center',
  73. valign: 'middle'
  74. },
  75. {
  76. field: 'id',
  77. title: 'ID',
  78. align: 'center',
  79. valign: 'middle',
  80. },
  81. {
  82. field: 'contract_sn',
  83. title: '合约编号',
  84. align: 'center',
  85. valign: 'middle',
  86. },
  87. {
  88. field: 'nbn_money',
  89. title: 'BNB数量',
  90. align: 'center',
  91. valign: 'middle',
  92. },
  93. {
  94. field: 'db_money',
  95. title: '代币数量',
  96. align: 'center',
  97. valign: 'middle',
  98. },
  99. {
  100. field: 'type',
  101. title: '清分类型',
  102. align: 'center',
  103. valign: 'middle',
  104. },
  105. {
  106. field: 'status',
  107. title: '状态',
  108. align: 'center',
  109. valign: 'middle',
  110. },
  111. {
  112. field: 'to_address',
  113. title: '收款地址',
  114. align: 'center',
  115. valign: 'middle',
  116. formatter:aHttpAddress,
  117. },
  118. {
  119. field: 'hash',
  120. title: '广播哈希',
  121. align: 'center',
  122. valign: 'middle',
  123. formatter:aHttpHash,
  124. },
  125. {
  126. field: 'remark',
  127. title: '说明',
  128. align: 'center',
  129. valign: 'middle',
  130. },
  131. {
  132. field: 'created_at',
  133. title: '创建时间',
  134. align: 'center',
  135. valign: 'middle',
  136. },
  137. {
  138. field: 'updated_at',
  139. title: '更新时间',
  140. align: 'center',
  141. valign: 'middle',
  142. }
  143. ]
  144. });
  145. });
  146. </script>
  147. @endsection