From 53a024ae4c7477ac0e4e5e1cc692cacc437c735c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 17 Mar 2026 12:46:55 +0800 Subject: [PATCH] ui(platform-orders): show batch activation scope in list --- resources/views/admin/platform_orders/index.blade.php | 5 ++++- ...PlatformOrderIndexBatchActivationModeShouldRenderTest.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 70c865f..4914e24 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1394,10 +1394,13 @@ @php $batchMode = (string) (data_get($batchActivation, 'mode') ?? ''); $batchModeText = $batchMode === 'queue' ? '队列' : ($batchMode !== '' ? $batchMode : '同步'); + + $batchScope = (string) (data_get($batchActivation, 'scope') ?? ''); + $batchScopeText = $batchScope === 'all' ? '全量' : ($batchScope === 'filtered' ? '筛选' : ($batchScope !== '' ? $batchScope : '-')); @endphp
{{ $batchAt }}
管理员:{{ $batchAdminId ?: '-' }}
-
方式:{{ $batchModeText }}
+
范围:{{ $batchScopeText }};方式:{{ $batchModeText }}
@else - @endif diff --git a/tests/Feature/AdminPlatformOrderIndexBatchActivationModeShouldRenderTest.php b/tests/Feature/AdminPlatformOrderIndexBatchActivationModeShouldRenderTest.php index 19479bd..13a9730 100644 --- a/tests/Feature/AdminPlatformOrderIndexBatchActivationModeShouldRenderTest.php +++ b/tests/Feature/AdminPlatformOrderIndexBatchActivationModeShouldRenderTest.php @@ -66,6 +66,6 @@ class AdminPlatformOrderIndexBatchActivationModeShouldRenderTest extends TestCas $this->get('/admin/platform-orders') ->assertOk() - ->assertSee('方式:队列'); + ->assertSee('范围:筛选;方式:队列'); } }