ui(platform-orders): show batch activation scope in list
This commit is contained in:
@@ -1394,10 +1394,13 @@
|
|||||||
@php
|
@php
|
||||||
$batchMode = (string) (data_get($batchActivation, 'mode') ?? '');
|
$batchMode = (string) (data_get($batchActivation, 'mode') ?? '');
|
||||||
$batchModeText = $batchMode === 'queue' ? '队列' : ($batchMode !== '' ? $batchMode : '同步');
|
$batchModeText = $batchMode === 'queue' ? '队列' : ($batchMode !== '' ? $batchMode : '同步');
|
||||||
|
|
||||||
|
$batchScope = (string) (data_get($batchActivation, 'scope') ?? '');
|
||||||
|
$batchScopeText = $batchScope === 'all' ? '全量' : ($batchScope === 'filtered' ? '筛选' : ($batchScope !== '' ? $batchScope : '-'));
|
||||||
@endphp
|
@endphp
|
||||||
<div>{{ $batchAt }}</div>
|
<div>{{ $batchAt }}</div>
|
||||||
<div class="muted">管理员:{{ $batchAdminId ?: '-' }}</div>
|
<div class="muted">管理员:{{ $batchAdminId ?: '-' }}</div>
|
||||||
<div class="muted muted-xs">方式:{{ $batchModeText }}</div>
|
<div class="muted muted-xs">范围:{{ $batchScopeText }};方式:{{ $batchModeText }}</div>
|
||||||
@else
|
@else
|
||||||
<span class="muted">-</span>
|
<span class="muted">-</span>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@@ -66,6 +66,6 @@ class AdminPlatformOrderIndexBatchActivationModeShouldRenderTest extends TestCas
|
|||||||
|
|
||||||
$this->get('/admin/platform-orders')
|
$this->get('/admin/platform-orders')
|
||||||
->assertOk()
|
->assertOk()
|
||||||
->assertSee('方式:队列');
|
->assertSee('范围:筛选;方式:队列');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user