feat: refine operations UI and transport limits
This commit is contained in:
@@ -18,7 +18,10 @@ export function normalizeCarrierTag(value?: string | null): CarrierTagValue | nu
|
||||
|
||||
export function CarrierTag({ carrier, className = '', ...props }: HTMLAttributes<HTMLSpanElement> & { carrier: string }) {
|
||||
const normalized = normalizeCarrierTag(carrier);
|
||||
if (!normalized) return <span className={['ui-carrier-tag', 'ui-carrier-tag--neutral', className].filter(Boolean).join(' ')} {...props}>{carrier || '未知'}</span>;
|
||||
if (!normalized) {
|
||||
const fallbackLabel = ['all', '三网'].includes(String(carrier ?? '').trim().toLowerCase()) ? '三网' : carrier || '未知';
|
||||
return <span className={['ui-carrier-tag', 'ui-carrier-tag--neutral', className].filter(Boolean).join(' ')} {...props}>{fallbackLabel}</span>;
|
||||
}
|
||||
const meta = carrierMeta[normalized];
|
||||
return <span className={['ui-carrier-tag', meta.className, className].filter(Boolean).join(' ')} {...props}>{meta.label}</span>;
|
||||
}
|
||||
|
||||
@@ -93,6 +93,10 @@ export function RechargeReceiptDialog({
|
||||
<dt>交易状态</dt>
|
||||
<dd>{isCorrection ? '冲正完成' : '充值完成'}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>操作人员</dt>
|
||||
<dd>{record.operatorName || (record.operatorId ? '未知操作人员' : '系统')}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
|
||||
<section className="recharge-receipt__remark">
|
||||
|
||||
Reference in New Issue
Block a user