重构: 收口失败原因治理文案链接组件

This commit is contained in:
萝卜
2026-03-18 19:38:20 +08:00
parent f19f9a38eb
commit 5d377d16c3

View File

@@ -921,14 +921,23 @@
<span class="muted"></span>
<span class="muted">原因过长,请复制到筛选框</span>
<span class="muted"></span>
<a class="link" href="{!! $safeFullUrlWithQuery(['sync_status' => 'failed', 'page' => null]) !!}">进入同步失败集合</a>
@include('admin.platform_orders._summary_text_link', [
'href' => $safeFullUrlWithQuery(['sync_status' => 'failed', 'page' => null]),
'label' => '进入同步失败集合',
])
@else
<a class="link" title="{{ $reason }}" href="{!! $safeFullUrlWithQuery(['sync_error_keyword' => $reason, 'sync_status' => 'failed', 'page' => null]) !!}">{{ $reasonText }}</a>
<span class="muted">{{ $count }}</span>
<span class="muted"></span>
<a class="link" href="{!! $safeFullUrlWithQuery(['sync_error_keyword' => $reason, 'sync_status' => 'unsynced', 'syncable_only' => '1', 'fail_only' => null, 'page' => null]) !!}">切到可同步重试</a>
@include('admin.platform_orders._summary_text_link', [
'href' => $safeFullUrlWithQuery(['sync_error_keyword' => $reason, 'sync_status' => 'unsynced', 'syncable_only' => '1', 'fail_only' => null, 'page' => null]),
'label' => '切到可同步重试',
])
<span class="muted"></span>
<a class="link" href="{!! $safeFullUrlWithQuery(['sync_error_keyword' => $reason, 'sync_status' => 'failed', 'page' => null]) !!}">进入失败集合</a>
@include('admin.platform_orders._summary_text_link', [
'href' => $safeFullUrlWithQuery(['sync_error_keyword' => $reason, 'sync_status' => 'failed', 'page' => null]),
'label' => '进入失败集合',
])
@endif
@else
<span class="muted">(空原因)</span>
@@ -965,14 +974,23 @@
<span class="muted"></span>
<span class="muted">原因过长,请复制到筛选框</span>
<span class="muted"></span>
<a class="link" href="{!! $safeFullUrlWithQuery(['bmpa_failed_only' => '1', 'bmpa_error_keyword' => null, 'page' => null]) !!}">进入失败集合</a>
@include('admin.platform_orders._summary_text_link', [
'href' => $safeFullUrlWithQuery(['bmpa_failed_only' => '1', 'bmpa_error_keyword' => null, 'page' => null]),
'label' => '进入失败集合',
])
@else
<a class="link" title="{{ $reason }}" href="{!! $safeFullUrlWithQuery(['bmpa_failed_only' => '1', 'bmpa_error_keyword' => $reason, 'page' => null]) !!}">{{ $reasonText }}</a>
<span class="muted">{{ $count }}</span>
<span class="muted"></span>
<a class="link" href="{!! $safeFullUrlWithQuery(['bmpa_error_keyword' => $reason, 'bmpa_processable_only' => '1', 'bmpa_failed_only' => null, 'page' => null]) !!}">切到可处理集合重试</a>
@include('admin.platform_orders._summary_text_link', [
'href' => $safeFullUrlWithQuery(['bmpa_error_keyword' => $reason, 'bmpa_processable_only' => '1', 'bmpa_failed_only' => null, 'page' => null]),
'label' => '切到可处理集合重试',
])
<span class="muted"></span>
<a class="link" href="{!! $safeFullUrlWithQuery(['bmpa_failed_only' => '1', 'bmpa_error_keyword' => $reason, 'page' => null]) !!}">进入失败集合</a>
@include('admin.platform_orders._summary_text_link', [
'href' => $safeFullUrlWithQuery(['bmpa_failed_only' => '1', 'bmpa_error_keyword' => $reason, 'page' => null]),
'label' => '进入失败集合',
])
@endif
@else
<span class="muted">(空原因)</span>