ui(platform-orders): add governance links for batch activation last_result
This commit is contained in:
@@ -1431,6 +1431,31 @@
|
||||
<a class="link" href="{!! $safeFullUrlWithQuery(['batch_activation_run_id' => $lrRunId, 'page' => null]) !!}">{{ $lrRunId }}</a>
|
||||
</div>
|
||||
<div class="muted muted-xs">结果:成功{{ $lrSuccess }} / 失败{{ $lrFailed }}</div>
|
||||
@php
|
||||
// 本批次一键治理入口:快速跳转到“同批次失败集合/按原因筛选”
|
||||
$lrGoFailedUrl = $buildQuickFilterUrl([
|
||||
'batch_activation_run_id' => $lrRunId,
|
||||
'sync_status' => 'failed',
|
||||
'page' => null,
|
||||
]);
|
||||
|
||||
$lrGoTopReasonUrl = '';
|
||||
if ($lrTopReason !== '' && mb_strlen($lrTopReason) <= $SYNC_ERROR_KEYWORD_LINK_MAX_LEN) {
|
||||
$lrGoTopReasonUrl = $buildQuickFilterUrl([
|
||||
'batch_activation_run_id' => $lrRunId,
|
||||
'sync_status' => 'failed',
|
||||
'sync_error_keyword' => $lrTopReason,
|
||||
'page' => null,
|
||||
]);
|
||||
}
|
||||
@endphp
|
||||
<div class="muted muted-xs">治理:
|
||||
<a class="link" href="{!! $lrGoFailedUrl !!}">本批次失败</a>
|
||||
@if($lrGoTopReasonUrl !== '')
|
||||
<span class="muted">|</span>
|
||||
<a class="link" href="{!! $lrGoTopReasonUrl !!}">按Top原因</a>
|
||||
@endif
|
||||
</div>
|
||||
@if($lrTopReason !== '')
|
||||
<div class="muted muted-xs">Top:{{ mb_substr($lrTopReason, 0, 40) }}({{ $lrTopReasonCount }})</div>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user