ui(platform-orders): add run_id badge quick governance links
This commit is contained in:
@@ -503,7 +503,25 @@
|
||||
$batchActivationRunId = trim((string) ($filters['batch_activation_run_id'] ?? ''));
|
||||
@endphp
|
||||
@if($batchActivationRunId !== '')
|
||||
<div class="card mb-20 governance-block">
|
||||
@php
|
||||
$runGoFailedUrl = $buildQuickFilterUrl([
|
||||
'batch_activation_run_id' => $batchActivationRunId,
|
||||
'sync_status' => 'failed',
|
||||
'page' => null,
|
||||
]);
|
||||
$runGoUnsyncedUrl = $buildQuickFilterUrl([
|
||||
'batch_activation_run_id' => $batchActivationRunId,
|
||||
'sync_status' => 'unsynced',
|
||||
'page' => null,
|
||||
]);
|
||||
$runGoSyncableUrl = $buildQuickFilterUrl([
|
||||
'batch_activation_run_id' => $batchActivationRunId,
|
||||
'sync_status' => 'unsynced',
|
||||
'syncable_only' => '1',
|
||||
'page' => null,
|
||||
]);
|
||||
@endphp
|
||||
<div class="card mb-20 governance-block" data-role="batch-activation-run-id-badge">
|
||||
<div class="muted governance-block-title"><strong>当前批次筛选</strong></div>
|
||||
<div class="muted governance-block-body">
|
||||
<div>
|
||||
@@ -511,6 +529,14 @@
|
||||
<span class="muted">|</span>
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $safeFullUrlWithQuery(['batch_activation_run_id' => null, 'page' => null]) !!}">清除批次筛选</a>
|
||||
</div>
|
||||
<div class="mt-6">
|
||||
<span class="muted">快速查看:</span>
|
||||
<a class="link" href="{!! $runGoFailedUrl !!}">本批次失败</a>
|
||||
<span class="muted">|</span>
|
||||
<a class="link" href="{!! $runGoUnsyncedUrl !!}">本批次未同步</a>
|
||||
<span class="muted">|</span>
|
||||
<a class="link" href="{!! $runGoSyncableUrl !!}">本批次可同步重试</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user