ui(platform-orders): show batch activation scope in list
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -66,6 +66,6 @@ class AdminPlatformOrderIndexBatchActivationModeShouldRenderTest extends TestCas
|
||||
|
||||
$this->get('/admin/platform-orders')
|
||||
->assertOk()
|
||||
->assertSee('方式:队列');
|
||||
->assertSee('范围:筛选;方式:队列');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user