fix(打卡列表): 调整展示信息
parent
47e369f6bd
commit
2c7ed3de1a
|
@ -264,7 +264,7 @@ class Manager extends Base
|
|||
if ($total > 0) {
|
||||
$res['list'] = $query->page($page, $size)->order('cl.id', 'desc')->select();
|
||||
$res['list']->each(function ($item) {
|
||||
$item->type_text = $item->type == 'in' ? '上班' : '下班';
|
||||
$item->type_text = ClockLog::typeText()[$item->type] ?? '';
|
||||
switch ($item->status) {
|
||||
case 0:
|
||||
$item->status_text = '待确认';
|
||||
|
|
Loading…
Reference in New Issue