Przeglądaj źródła

wesmiler ECY 画画交易平台

APPLE 3 lat temu
rodzic
commit
dcc121f904
1 zmienionych plików z 31 dodań i 0 usunięć
  1. 31 0
      public/assets/js/backend/bonus/detailedbonus.js

+ 31 - 0
public/assets/js/backend/bonus/detailedbonus.js

@@ -33,6 +33,37 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
             // 为表格绑定事件
             Table.api.bindevent(table);
         },
+        usdt: function () {
+            // 初始化表格参数配置
+            Table.api.init({
+                extend: {
+                    index_url: 'bonus/detailedbonus/usdt' + location.search,
+                    table: 'detailed_usdt',
+                }
+            });
+            var table = $("#table");
+            // 初始化表格
+            table.bootstrapTable({
+                url: $.fn.bootstrapTable.defaults.extend.index_url,
+                pk: 'id',
+                sortName: 'id',
+                columns: [
+                    [
+                        {checkbox: true},
+                        {field: 'id', title: __('Id')},
+                        {field: 'user_name', title: __('User_name')},
+                        {field: 'relevant_name', title: __('Relevant_name')},
+                        {field: 'money', title: __('Money'), operate:'BETWEEN'},
+                        {field: 'balance', title: __('Balance'), operate:'BETWEEN'},
+                        {field: 'remark', title: __('Remark')},
+                        {field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
+                    ]
+                ]
+            });
+
+            // 为表格绑定事件
+            Table.api.bindevent(table);
+        },
         cash: function () {
             // 初始化表格参数配置
             Table.api.init({