fix(打卡列表): 调整展示信息

master
yin5th 2023-01-16 14:50:48 +08:00
parent 47e369f6bd
commit 2c7ed3de1a
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ class Manager extends Base
if ($total > 0) { if ($total > 0) {
$res['list'] = $query->page($page, $size)->order('cl.id', 'desc')->select(); $res['list'] = $query->page($page, $size)->order('cl.id', 'desc')->select();
$res['list']->each(function ($item) { $res['list']->each(function ($item) {
$item->type_text = $item->type == 'in' ? '上班' : '下班'; $item->type_text = ClockLog::typeText()[$item->type] ?? '';
switch ($item->status) { switch ($item->status) {
case 0: case 0:
$item->status_text = '待确认'; $item->status_text = '待确认';