This commit is contained in:
2025-08-28 09:57:46 +08:00
parent 280c26983f
commit db0892f455
13 changed files with 395 additions and 9 deletions
+6 -1
View File
@@ -35,14 +35,19 @@ class SysDictController extends BaseController
return $data;
}
/**
* 列表页数据格式化
* 数据格式化
*
* @param array $data
* @return array
*/
protected function showFormat($data)
{
if (isset($data['created_at']))
$data['created_at'] = date('Y-m-d H:i:s', $data['created_at']);
if (isset($data['updated_at']))
$data['updated_at'] = date('Y-m-d H:i:s', $data['updated_at']);
$data['sysDictItem'] = SysDictItem::where('dict_id',$data['id'])->get();
return $data;
}