|
|
|
@ -3,6 +3,7 @@ |
|
|
|
namespace App\Http\Controllers\Admin; |
|
|
|
|
|
|
|
use App\Exceptions\CustomException; |
|
|
|
use App\Models\Parking; |
|
|
|
use App\Models\ParkingAbnormal; |
|
|
|
use App\Services\ApiResponseService; |
|
|
|
use App\Services\ParkingAbnormalService; |
|
|
|
@ -128,6 +129,30 @@ class ParkingAbnormalController extends BaseController |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public function search(): JsonResponse |
|
|
|
{ |
|
|
|
try { |
|
|
|
$data = [ |
|
|
|
'parking_list' => Parking::getData(), |
|
|
|
'date_list' => get_select_data( |
|
|
|
$this->service->getDateArr() |
|
|
|
), |
|
|
|
'status_list' => get_select_data( |
|
|
|
$this->service->getStatus() |
|
|
|
), |
|
|
|
'operation_list' => get_select_data( |
|
|
|
$this->service->getOperationType() |
|
|
|
) |
|
|
|
]; |
|
|
|
return $this->responseService->success($data); |
|
|
|
} catch (Exception $e) { |
|
|
|
$m_prefix = __('exception.exception_handler.resource'); |
|
|
|
return $this->responseService->systemError( |
|
|
|
$m_prefix . ':' . $e->getMessage() |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public function handle(Request $request): JsonResponse |
|
|
|
{ |
|
|
|
try { |
|
|
|
|