Platform batch show: add spot-check reset link

This commit is contained in:
萝卜
2026-03-18 10:04:17 +08:00
parent 7ac001c1b8
commit 291cf0c8d0
2 changed files with 132 additions and 0 deletions

View File

@@ -140,6 +140,20 @@
$spotPickNextUrl = \App\Support\BackUrl::withBack($spotPickNextUrl, $safeBackForLinks);
@endphp
<a class="link muted-xs" data-role="batch-spot-check-next" href="{{ $spotPickNextUrl }}">换一单</a>
@php
$spotAfterId = (int) request()->query('spot_after_id', 0);
@endphp
@if($spotAfterId > 0)
@php
$spotPickResetUrl = '/admin/platform-batches/show?' . \Illuminate\Support\Arr::query([
'type' => $type,
'run_id' => $runId,
]);
$spotPickResetUrl = \App\Support\BackUrl::withBack($spotPickResetUrl, $safeBackForLinks);
@endphp
<span class="muted muted-xs"></span>
<a class="link muted-xs" data-role="batch-spot-check-reset" href="{{ $spotPickResetUrl }}">回到最新</a>
@endif
@endif
</div>
@else