...
|
...
|
@@ -6,9 +6,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
Table.api.init({
|
|
|
extend: {
|
|
|
index_url: 'team/index' + location.search,
|
|
|
add_url: 'team/add',
|
|
|
edit_url: 'team/edit',
|
|
|
del_url: 'team/del',
|
|
|
// add_url: 'team/add',
|
|
|
// edit_url: 'team/edit',
|
|
|
// del_url: 'team/del',
|
|
|
multi_url: 'team/multi',
|
|
|
table: 'team',
|
|
|
}
|
...
|
...
|
@@ -25,13 +25,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'company_id', title: __('Company_id')},
|
|
|
{field: 'user_id', title: __('User_id')},
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
|
|
|
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
|
|
|
{field: 'status', title: __('Status'), searchList: {"1":__('Status 1'),"2":__('Status 2'),"3":__('Status 3')}, formatter: Table.api.formatter.status},
|
|
|
// {field: 'company_id', title: __('Company_id')},
|
|
|
// {field: 'user_id', title: __('User_id')},
|
|
|
{field: 'company.company_name', title: __('Company.company_name')},
|
|
|
{field: 'user.username', title: __('User.username')},
|
|
|
{field: 'status', title: __('Status'), searchList: {"1":__('Status 1'),"2":__('Status 2'),"3":__('Status 3')}, formatter: Table.api.formatter.status},
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
|
|
|
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
...
|
...
|
|