增加时间轴内容
This commit is contained in:
@@ -186,14 +186,15 @@ class ApprovalRecordsController extends BaseController
|
||||
|
||||
|
||||
protected function timelineFormat($data)
|
||||
{
|
||||
{
|
||||
$result = [];
|
||||
foreach ($data as $record) {
|
||||
$result[] = [
|
||||
'id' => $record['id'],
|
||||
'name' => $record['approver']['name'],
|
||||
'comment' => $record['comment'],
|
||||
'time' => $record['updated_at']
|
||||
'comment' => $record['comment'] ?? '',
|
||||
'time' => $record['updated_at'],
|
||||
'status_desc' => SysDictItem::where('item_value', $record['status'])->where('status', 1)->value('item_label'),
|
||||
];
|
||||
}
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user