feat(batch): add success governance links and filters for batch run review

This commit is contained in:
萝卜
2026-03-18 03:25:52 +08:00
parent 1550a0a650
commit f585256536
4 changed files with 111 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ class PlatformBatchController extends Controller
];
}
// 治理入口:全部/失败/按Top原因/可重试
// 治理入口:全部/成功/失败/按Top原因/可重试
$governanceLinks = [];
if ($type === 'bas') {
@@ -101,6 +101,11 @@ class PlatformBatchController extends Controller
'batch_activation_run_id' => $runId,
]), $safeBackForLinks, 'filters');
$governanceLinks['success'] = BackUrl::withBackAndFragment('/admin/platform-orders?' . \Illuminate\Support\Arr::query([
'batch_activation_run_id' => $runId,
'sync_status' => 'synced',
]), $safeBackForLinks, 'filters');
$governanceLinks['failed'] = BackUrl::withBackAndFragment('/admin/platform-orders?' . \Illuminate\Support\Arr::query([
'batch_activation_run_id' => $runId,
'sync_status' => 'failed',
@@ -129,6 +134,11 @@ class PlatformBatchController extends Controller
'batch_bmpa_run_id' => $runId,
]), $safeBackForLinks, 'filters');
$governanceLinks['success'] = BackUrl::withBackAndFragment('/admin/platform-orders?' . \Illuminate\Support\Arr::query([
'batch_bmpa_run_id' => $runId,
'bmpa_success_only' => '1',
]), $safeBackForLinks, 'filters');
$governanceLinks['failed'] = BackUrl::withBackAndFragment('/admin/platform-orders?' . \Illuminate\Support\Arr::query([
'batch_bmpa_run_id' => $runId,
'bmpa_failed_only' => '1',