refactor(dashboard): reuse mini bar row component for ops exception
This commit is contained in:
@@ -723,21 +723,29 @@
|
|||||||
<summary class="muted"><strong>更多异常积压(少用)</strong></summary>
|
<summary class="muted"><strong>更多异常积压(少用)</strong></summary>
|
||||||
<div class="muted muted-xs mt-6">异常型治理:批量失败 / 续费缺订阅等。</div>
|
<div class="muted muted-xs mt-6">异常型治理:批量失败 / 续费缺订阅等。</div>
|
||||||
|
|
||||||
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="ops-exception-bmpa-failed-row" href="{!! $platformOrdersQuickLinks['bmpa_failed'] !!}" aria-label="进入BMPA失败订单集合">
|
@include('admin.components.mini_bar_row', [
|
||||||
<div class="adm-mini-bar-label">BMPA失败</div>
|
'class' => 'mt-6',
|
||||||
<div class="adm-mini-bar" data-role="ops-exception-bmpa-failed-bar" title="{{ $exBmpaFailed }} / {{ $poTotalForOps }}({{ $pctExBmpaFailed }}%)">
|
'rowRole' => 'ops-exception-bmpa-failed-row',
|
||||||
<span class="adm-mini-bar-fill" style="width: {{ $pctExBmpaFailed }}%"></span>
|
'barRole' => 'ops-exception-bmpa-failed-bar',
|
||||||
</div>
|
'href' => $platformOrdersQuickLinks['bmpa_failed'],
|
||||||
<div class="adm-mini-bar-value">{{ $pctExBmpaFailed }}%({{ $exBmpaFailed }})</div>
|
'ariaLabel' => '进入BMPA失败订单集合',
|
||||||
</a>
|
'label' => 'BMPA失败',
|
||||||
|
'pct' => $pctExBmpaFailed,
|
||||||
|
'title' => $exBmpaFailed . ' / ' . $poTotalForOps . '(' . $pctExBmpaFailed . '%)',
|
||||||
|
'value' => $pctExBmpaFailed . '%(' . $exBmpaFailed . ')',
|
||||||
|
])
|
||||||
|
|
||||||
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="ops-exception-renewal-missing-row" href="{!! $platformOrdersQuickLinks['renewal_missing_subscription'] !!}" aria-label="进入续费缺订阅订单集合">
|
@include('admin.components.mini_bar_row', [
|
||||||
<div class="adm-mini-bar-label">续费缺订阅</div>
|
'class' => 'mt-6',
|
||||||
<div class="adm-mini-bar" data-role="ops-exception-renewal-missing-bar" title="{{ $exRenewalMissing }} / {{ $poTotalForOps }}({{ $pctExRenewalMissing }}%)">
|
'rowRole' => 'ops-exception-renewal-missing-row',
|
||||||
<span class="adm-mini-bar-fill" style="width: {{ $pctExRenewalMissing }}%"></span>
|
'barRole' => 'ops-exception-renewal-missing-bar',
|
||||||
</div>
|
'href' => $platformOrdersQuickLinks['renewal_missing_subscription'],
|
||||||
<div class="adm-mini-bar-value">{{ $pctExRenewalMissing }}%({{ $exRenewalMissing }})</div>
|
'ariaLabel' => '进入续费缺订阅订单集合',
|
||||||
</a>
|
'label' => '续费缺订阅',
|
||||||
|
'pct' => $pctExRenewalMissing,
|
||||||
|
'title' => $exRenewalMissing . ' / ' . $poTotalForOps . '(' . $pctExRenewalMissing . '%)',
|
||||||
|
'value' => $pctExRenewalMissing . '%(' . $exRenewalMissing . ')',
|
||||||
|
])
|
||||||
</details>
|
</details>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user