作者 wangzhi

222

... ... @@ -10,6 +10,6 @@ return [
'Status 1' => '已同意',
'Status 2' => '已拒绝',
'Status 3' => '待审核',
'User.username' => '用户名',
'User.username' => '成员用户名',
'Company.company_name' => '公司名称'
];
... ...
... ... @@ -3,13 +3,13 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="">
<input id="c-company_id" data-rule="required" data-field="company_name" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
<input id="c-user_id" data-rule="required" data-source="user/index" data-field="user_name" class="form-control selectpage" name="row[user_id]" type="text" value="">
</div>
</div>
<div class="form-group">
... ...
... ... @@ -24,14 +24,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
columns: [
[
{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: 'id', title: __('Id')},
// {field: 'company_id', title: __('Company_id')},
// {field: 'user_id', title: __('User_id')},
{field: 'company.company_name', title: __('Company.company_name'),operate: 'LIKE'},
{field: 'status', title: __('Status'), searchList: {"1":__('Status 1'),"2":__('Status 2'),"3":__('Status 3')}, formatter: Table.api.formatter.status},
{field: 'user.username', title: __('User.username')},
{field: 'company.company_name', title: __('Company.company_name')},
{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}
]
]
... ...