chore(admin): 平台订单 lead_id 筛选增加清除入口
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user