index.blade.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. </form>
  14. <hr class="hr-css">
  15. <div>
  16. <div id="toolbar">
  17. </div>
  18. <table id="ContentTable"></table>
  19. </div>
  20. @endsection
  21. @section('plug-js')
  22. <script src="{{ asset('js/bootstrap-table/dist/bootstrap-table.js') }}"></script>
  23. <script src="{{ asset('js/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js') }}"></script>
  24. <script src="{{ asset('js/jquery-validation1.16/dist/jquery.validate.min.js') }}"></script>
  25. <script src="{{ asset('js/jquery-validation1.16/dist/additional-methods.min.js') }}"></script>
  26. <script src="{{ asset('js/jquery-validation1.16/src/localization/messages_zh.js') }}"></script>
  27. @endsection
  28. @section('scripts')
  29. <script>
  30. $(function(){
  31. BootStrapInit.init('tableWithdrawConfig','ContentTable',{
  32. searchForm: 'searchForm', // 表单搜索id 省略默认 'searchForm'
  33. url: "{{ route('admin.withdrawConfig.ajax.index') }}",
  34. method: 'post',
  35. toolbar: '#toolbar',
  36. idField: '', // 指定主键列
  37. uniqueId: "id", // 这里需要指定当前查询表唯一主键字段
  38. columns: [
  39. {
  40. checkbox: true,
  41. align: 'center',
  42. valign: 'middle'
  43. },
  44. {
  45. field: 'id',
  46. title: 'ID',
  47. align: 'center',
  48. valign: 'middle',
  49. },
  50. {
  51. field: 'name',
  52. title: '使用端',
  53. align: 'center',
  54. valign: 'middle',
  55. },
  56. {
  57. field: 'mix_money',
  58. title: '最低提现金额',
  59. align: 'center',
  60. valign: 'middle',
  61. },
  62. {
  63. field: 'proportion',
  64. title: '手续费数量',
  65. align: 'center',
  66. valign: 'middle',
  67. },
  68. {
  69. field: 'type',
  70. title: '比列类型',
  71. align: 'center',
  72. valign: 'middle',
  73. },
  74. {
  75. field: 'auto_money',
  76. title: '自动审核金额',
  77. align: 'center',
  78. valign: 'middle',
  79. },
  80. {
  81. field: 'auto_day',
  82. title: '自动审核天数',
  83. align: 'center',
  84. valign: 'middle',
  85. },
  86. {
  87. field: 'auto_num',
  88. title: '自动审核次数',
  89. align: 'center',
  90. valign: 'middle',
  91. },
  92. {
  93. field: 'created_at',
  94. title: '创建时间',
  95. align: 'center',
  96. valign: 'middle',
  97. },
  98. {
  99. field: 'updated_at',
  100. title: '更新时间',
  101. align: 'center',
  102. valign: 'middle',
  103. },
  104. {
  105. pkId: 'id', // 当前主键id 兼容排序 field='id' 默认值id
  106. title: '操作',
  107. align: 'center',
  108. valign: 'middle',
  109. width: '185px',
  110. formatter:operateFormatter,
  111. btn_group:[
  112. {
  113. 'name' : '编辑',
  114. 'class' : 'btn-primary createForm',
  115. 'url' : 'javascript:;',
  116. 'confirm_url': '{{ route('admin.withdrawConfig.edit', ['id'=>'-val-'])}}'
  117. },
  118. ]
  119. }
  120. ]
  121. });
  122. });
  123. </script>
  124. @endsection