feat(platform): expose coverage service status
This commit is contained in:
@@ -7,6 +7,12 @@ import { PageHeader } from '../components/PageHeader';
|
||||
import { StatusTag } from '../components/StatusTag';
|
||||
|
||||
function vehicleServiceStatus(row: VehicleCoverageRow) {
|
||||
if (row.serviceStatus) {
|
||||
return {
|
||||
label: row.serviceStatus.title,
|
||||
color: row.serviceStatus.severity === 'ok' ? 'green' as const : row.serviceStatus.severity === 'error' ? 'red' as const : 'orange' as const
|
||||
};
|
||||
}
|
||||
if (row.bindingStatus !== 'bound') {
|
||||
return { label: '身份未绑定', color: 'orange' as const };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user