ui(platform-orders): show batch activation scope in list

This commit is contained in:
萝卜
2026-03-17 12:46:55 +08:00
parent 70700a5145
commit 53a024ae4c
2 changed files with 5 additions and 2 deletions

View File

@@ -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
<div>{{ $batchAt }}</div>
<div class="muted">管理员:{{ $batchAdminId ?: '-' }}</div>
<div class="muted muted-xs">方式:{{ $batchModeText }}</div>
<div class="muted muted-xs">范围:{{ $batchScopeText }}方式:{{ $batchModeText }}</div>
@else
<span class="muted">-</span>
@endif

View File

@@ -66,6 +66,6 @@ class AdminPlatformOrderIndexBatchActivationModeShouldRenderTest extends TestCas
$this->get('/admin/platform-orders')
->assertOk()
->assertSee('方式:队列');
->assertSee('范围:筛选;方式:队列');
}
}