|
|
@ -28,24 +28,31 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
[ |
|
|
|
[ |
|
|
|
{checkbox: true}, |
|
|
|
{checkbox: true}, |
|
|
|
{field: 'id', title: __('Id')}, |
|
|
|
{field: 'id', title: __('Id')}, |
|
|
|
{field: 'user_id', title: __('User_id')}, |
|
|
|
{field: 'user.nickname', title: '用户昵称',operate: 'LIKE'}, |
|
|
|
{field: 'type', title: __('Type'), operate: 'LIKE'}, |
|
|
|
{field: 'user.agent.level_info.name', title: '用户等级', searchList: Config.levelList}, |
|
|
|
{field: 'event', title: __('Event'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
|
{field: 'user.mobile', title: '手机号',operate: 'LIKE'}, |
|
|
|
{field: 'amount', title: __('Amount'), operate:'BETWEEN'}, |
|
|
|
{field: 'amount', title: '积分变动额度',operate:'BETWEEN'}, |
|
|
|
{field: 'before', title: __('Before'), operate:'BETWEEN'}, |
|
|
|
{field: 'memo', title: '积分变动类型'}, |
|
|
|
{field: 'after', title: __('After'), operate:'BETWEEN'}, |
|
|
|
{field: 'after', title: '当前积分'}, |
|
|
|
{field: 'memo', title: __('Memo'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
|
{field: 'createtime', title: '变动时间',operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, |
|
|
|
{field: 'ext', title: __('Ext'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content}, |
|
|
|
// // {field: 'type', title: __('Type'), operate: 'LIKE'},
|
|
|
|
{field: 'oper_type', title: __('Oper_type'), operate: 'LIKE'}, |
|
|
|
// {field: 'event', title: __('Event'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
|
{field: 'oper_id', title: __('Oper_id')}, |
|
|
|
// {field: 'amount', title: __('Amount'), operate:'BETWEEN'},
|
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, |
|
|
|
// {field: 'before', title: __('Before'), operate:'BETWEEN'},
|
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} |
|
|
|
// {field: 'after', title: __('After'), operate:'BETWEEN'},
|
|
|
|
|
|
|
|
// {field: 'memo', title: __('Memo'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
|
|
|
|
|
// {field: 'ext', title: __('Ext'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
|
|
|
|
|
// {field: 'oper_type', title: __('Oper_type'), operate: 'LIKE'},
|
|
|
|
|
|
|
|
// {field: 'oper_id', title: __('Oper_id')},
|
|
|
|
|
|
|
|
// {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
|
|
|
|
|
// {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
|
] |
|
|
|
] |
|
|
|
] |
|
|
|
] |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// 为表格绑定事件
|
|
|
|
// 为表格绑定事件
|
|
|
|
Table.api.bindevent(table); |
|
|
|
Table.api.bindevent(table); |
|
|
|
|
|
|
|
console.log(Config.levelList) |
|
|
|
}, |
|
|
|
}, |
|
|
|
add: function () { |
|
|
|
add: function () { |
|
|
|
Controller.api.bindevent(); |
|
|
|
Controller.api.bindevent(); |
|
|
|