|
@@ -7,7 +7,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
extend: {
|
|
|
index_url: 'report/index' + location.search,
|
|
|
add_url: 'report/add',
|
|
|
- edit_url: 'report/edit',
|
|
|
+// edit_url: 'report/edit',
|
|
|
del_url: 'report/del',
|
|
|
multi_url: 'report/multi',
|
|
|
import_url: 'report/import',
|
|
@@ -26,14 +26,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
- /*{field: 'type_id', title: __('Type_id')},
|
|
|
- {field: 'user_id', title: __('User_id')},*/
|
|
|
+ {field: 'type', title: __('Type'), operate: 'LIKE'},
|
|
|
+ {field: 'user_id', title: __('User_id')},
|
|
|
+ {field: 'usera.username', title: __('Usera.username'), operate: 'LIKE'},
|
|
|
+
|
|
|
+ {field: 'to_user_id', title: __('To_user_id')},
|
|
|
+ {field: 'userb.username', title: __('Userb.username'), operate: 'LIKE'},
|
|
|
+
|
|
|
{field: 'content', title: __('Content'), operate: 'LIKE'},
|
|
|
{field: 'images', title: __('Images'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
- {field: 'reporttype.name', title: __('Reporttype.name'), operate: 'LIKE'},
|
|
|
- {field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|