提交优化

This commit is contained in:
qinzexin 2025-05-30 18:33:23 +08:00
parent 92631844ce
commit 1b77f361a3
3 changed files with 4 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class Log extends Backend
foreach ($list as $row) {
$row->getRelation('scoreevent')->visible(['name']);
$row->getRelation('scoreevent')->visible(['name',"desc"]);
$row->getRelation('employee')->visible(['name']);
$row->getRelation('user')->visible(['nickname','mobile','avatar']);
$row->getRelation('team')->visible(['name']);

View File

@ -26,5 +26,6 @@ return [
'User.nickname' => '昵称',
'User.mobile' => '手机号',
'User.avatar' => '头像',
'Team.name' => '队伍名'
'Team.name' => '队伍名',
'Event.desc' => '积分说明'
];

View File

@ -39,6 +39,7 @@ define(['jquery', 'bootstrap', 'backend', 'csmtable', 'form'], function ($, unde
{field: 'score_team_id', title: __('Score_team_id'),visible: false},
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'score', title: __('Score'), operate: false},
{field: 'scoreevent.desc', title: __('Event.desc'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'images', title: __('Images'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},
{field: 'desc', title: __('Desc'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1'),"2":__('Status 2')}, formatter: Table.api.formatter.status},