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