fix bug
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 56s
Docker Build & Deploy / Deploy to Production (push) Successful in 13s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 3s
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 56s
Docker Build & Deploy / Deploy to Production (push) Successful in 13s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 3s
This commit is contained in:
@@ -19,29 +19,29 @@
|
|||||||
--section-gap: 160px;
|
--section-gap: 160px;
|
||||||
|
|
||||||
/* Chart Colors */
|
/* Chart Colors */
|
||||||
--chart-color-1: #FF6B6B;
|
--chart-color-1: #ff6b6b;
|
||||||
--chart-color-2: #4ECDC4;
|
--chart-color-2: #4ecdc4;
|
||||||
--chart-color-3: #45B7D1;
|
--chart-color-3: #45b7d1;
|
||||||
--chart-color-4: #FFA07A;
|
--chart-color-4: #ffa07a;
|
||||||
--chart-color-5: #98D8C8;
|
--chart-color-5: #98d8c8;
|
||||||
--chart-color-6: #F7DC6F;
|
--chart-color-6: #f7dc6f;
|
||||||
--chart-color-7: #BB8FCE;
|
--chart-color-7: #bb8fce;
|
||||||
--chart-color-8: #85C1E2;
|
--chart-color-8: #85c1e2;
|
||||||
--chart-color-9: #F8B88B;
|
--chart-color-9: #f8b88b;
|
||||||
--chart-color-10: #AAB7B8;
|
--chart-color-10: #aab7b8;
|
||||||
--chart-color-11: #FF8ED4;
|
--chart-color-11: #ff8ed4;
|
||||||
--chart-color-12: #67E6DC;
|
--chart-color-12: #67e6dc;
|
||||||
--chart-color-13: #FFAB73;
|
--chart-color-13: #ffab73;
|
||||||
--chart-color-14: #C9B1FF;
|
--chart-color-14: #c9b1ff;
|
||||||
--chart-color-15: #7BDFF2;
|
--chart-color-15: #7bdff2;
|
||||||
|
|
||||||
/* Status Colors for Charts */
|
/* Status Colors for Charts */
|
||||||
--chart-success: #52c41a;
|
--chart-success: #52c41a;
|
||||||
--chart-warning: #faad14;
|
--chart-warning: #faad14;
|
||||||
--chart-danger: #f5222d;
|
--chart-danger: #f5222d;
|
||||||
--chart-primary: #1890ff;
|
--chart-primary: #1890ff;
|
||||||
--chart-shadow: rgba(0,138,255,0.45);
|
--chart-shadow: rgba(0, 138, 255, 0.45);
|
||||||
--chart-axis: #E6EBF8;
|
--chart-axis: #e6ebf8;
|
||||||
--chart-split: #eee;
|
--chart-split: #eee;
|
||||||
--chart-text-muted: #999;
|
--chart-text-muted: #999;
|
||||||
|
|
||||||
@@ -58,13 +58,13 @@
|
|||||||
--chart-axis: #333;
|
--chart-axis: #333;
|
||||||
--chart-split: #333;
|
--chart-split: #333;
|
||||||
--chart-text-muted: #666;
|
--chart-text-muted: #666;
|
||||||
|
|
||||||
/* Heatmap Colors - Dark Mode (GitHub Style) */
|
/* Heatmap Colors - Dark Mode (GitHub Style) */
|
||||||
--heatmap-level-0: #161b22;
|
--heatmap-level-0: var(--van-gray-2);
|
||||||
--heatmap-level-1: #0e4429;
|
--heatmap-level-1: #9be9a8;
|
||||||
--heatmap-level-2: #006d32;
|
--heatmap-level-2: #40c463;
|
||||||
--heatmap-level-3: #26a641;
|
--heatmap-level-3: #30a14e;
|
||||||
--heatmap-level-4: #39d353;
|
--heatmap-level-4: #216e39;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,9 +96,10 @@ const fetchDailyStatistics = async (year, month) => {
|
|||||||
// 将数组转换为对象,key为日期
|
// 将数组转换为对象,key为日期
|
||||||
const statsMap = {}
|
const statsMap = {}
|
||||||
response.data.forEach((item) => {
|
response.data.forEach((item) => {
|
||||||
|
console.warn(item)
|
||||||
statsMap[item.date] = {
|
statsMap[item.date] = {
|
||||||
count: item.count,
|
count: item.count,
|
||||||
amount: item.amount
|
amount: (item.income - item.expense).toFixed(1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
dailyStatistics.value = {
|
dailyStatistics.value = {
|
||||||
@@ -262,7 +263,7 @@ const formatterCalendar = (day) => {
|
|||||||
|
|
||||||
if (stats) {
|
if (stats) {
|
||||||
dayCopy.topInfo = `${stats.count}笔` // 展示消费笔数
|
dayCopy.topInfo = `${stats.count}笔` // 展示消费笔数
|
||||||
dayCopy.bottomInfo = `${(stats.amount || 0).toFixed(1)}元` // 展示消费金额
|
dayCopy.bottomInfo = `${stats.amount}元` // 展示消费金额
|
||||||
}
|
}
|
||||||
|
|
||||||
return dayCopy
|
return dayCopy
|
||||||
|
|||||||
Reference in New Issue
Block a user