feat: add success and failure statistics display to AiProvidersPage, refactor data retrieval methods for better clarity and consistency

This commit is contained in:
Supra4E8C
2025-12-11 12:34:05 +08:00
parent d425332eb0
commit ad92f0c2ed
2 changed files with 156 additions and 47 deletions

View File

@@ -1,3 +1,6 @@
@use '../styles/variables' as *;
@use '../styles/mixins' as *;
.container {
width: 100%;
}
@@ -44,3 +47,37 @@
grid-template-columns: 1fr;
}
}
// 成功失败次数统计样式
.cardStats {
display: flex;
gap: 8px;
padding: 8px 0 0;
margin-top: 8px;
}
.statSuccess {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
color: #fff;
background-color: #22c55e;
padding: 4px 12px;
border-radius: 14px;
white-space: nowrap;
}
.statFailure {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
color: #fff;
background-color: #ef4444;
padding: 4px 12px;
border-radius: 14px;
white-space: nowrap;
}