This commit is contained in:
chenbo 2024-02-28 11:56:48 +08:00
parent ddd3f648c5
commit ed5032ad9e

View File

@ -56,7 +56,7 @@ class JianliProjectProgressReportLogic extends BaseLogic
'djr' => $params['djr'],
'apptime' => $params['apptime'],
'jdms' => $params['jdms'],
'datas' => $params['datas'],
'annex' => json_encode($params['annex']),
'fd_23' => $params['fd_23'],
]);
@ -95,7 +95,7 @@ class JianliProjectProgressReportLogic extends BaseLogic
'djr' => $params['djr'],
'apptime' => $params['apptime'],
'jdms' => $params['jdms'],
'datas' => $params['datas'],
'annex' => json_encode($params['annex']),
'fd_23' => $params['fd_23'],
]);
@ -131,6 +131,8 @@ class JianliProjectProgressReportLogic extends BaseLogic
*/
public static function detail($params): array
{
return JianliProjectProgressReport::with(['projectInfo'])->findOrEmpty($params['id'])->toArray();
$data = JianliProjectProgressReport::with(['projectInfo'])->findOrEmpty($params['id'])->toArray();
$data['annex'] = json_decode($data['annex'], true);
return $data;
}
}