作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

bug修改

... ... @@ -65,9 +65,9 @@ class CompanyUser extends Backend
->select();
foreach ($list as $row) {
$row->visible(['id','name','mobile','status','createtime']);
$row->visible(['id','name','phone','status','createtime']);
$row->visible(['user']);
$row->getRelation('user')->visible(['nickname']);
$row->getRelation('user')->visible(['mobile']);
}
$list = collection($list)->toArray();
$result = array("total" => $total, "rows" => $list);
... ...
... ... @@ -67,7 +67,7 @@ class CompanyUserLog extends Backend
foreach ($list as $row) {
$row->visible(['id','name','phone','type','createtime']);
$row->visible(['user']);
$row->getRelation('user')->visible(['nickname']);
$row->getRelation('user')->visible(['mobile']);
}
$list = collection($list)->toArray();
$result = array("total" => $total, "rows" => $list);
... ...
... ... @@ -12,5 +12,5 @@ return [
'Status 2' => '拒绝',
'Createtime' => '创建时间',
'Updatetime' => '更新时间',
'User.nickname' => '昵称'
'User.mobile' => '账号'
];
... ...
... ... @@ -10,5 +10,5 @@ return [
'Type 1' => '新增',
'Type 2' => '删除',
'Createtime' => '创建时间',
'User.nickname' => '昵称'
'User.mobile' => '账号'
];
... ...
... ... @@ -11,5 +11,5 @@ class CompanyUserLog extends Model
protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = 'false';
protected $updateTime = false;
}
\ No newline at end of file
... ...
... ... @@ -34,7 +34,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'salary', title: __('Salary')},
{field: 'address', title: __('Address')},
{field: 'house_number', title: __('House_number')},
{field: 'mobile', title: __('Mobile'), searchable: false},
{field: 'phone', title: __('Phone')},
{field: 'description', title: __('Description')},
{field: 'other_desc', title: __('Other_desc')},
{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.status},
... ...
... ... @@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'user.nickname', title: __('用户名')},
{field: 'user.mobile', title: __('User.mobile')},
{field: 'name', title: __('Name')},
{field: 'phone', title: __('Phone')},
{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1'),"2":__('Status 2')}, formatter: Table.api.formatter.status},
... ...
... ... @@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'user.nickname', title: __('用户名')},
{field: 'user.mobile', title: __('User.mobile')},
{field: 'name', title: __('Name')},
{field: 'phone', title: __('Phone')},
{field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('Type 2')}, formatter: Table.api.formatter.normal},
... ...