chore(admin): 平台订单 lead_id 筛选增加清除入口

This commit is contained in:
萝卜
2026-03-14 04:15:02 +00:00
parent 7c0d70d49c
commit e2169d99a9
2 changed files with 76 additions and 1 deletions

View File

@@ -44,9 +44,20 @@
@endphp
@if($incomingLeadId > 0)
<div class="mt-10">
@php
// 清除 lead_id 筛选:保留其它筛选条件,但移除 lead_id/page。
$clearLeadQuery = $currentQuery;
unset($clearLeadQuery['lead_id'], $clearLeadQuery['page']);
$clearLeadUrl = '/admin/platform-orders';
if (count($clearLeadQuery) > 0) {
$clearLeadUrl .= '?' . \Illuminate\Support\Arr::query($clearLeadQuery);
}
@endphp
<div class="mt-10 actions">
<span class="badge">当前线索:#{{ $incomingLeadId }}</span>
<span class="muted muted-xs">(已按 lead_id 过滤订单集合)</span>
<a class="btn-secondary btn-sm" href="{!! $clearLeadUrl !!}">清除线索筛选</a>
</div>
@endif