Platform batch show: add spot-check reset link
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user