refactor(largeScreen): 修改月度数据图表的月份标签
- 用固定的中文月份标签替换从 API 获取的月份数据 - 提高了图表的可读性和一致性
This commit is contained in:
@ -78,7 +78,9 @@ const getTurnoverList = async () => {
|
|||||||
// return isNaN(num) ? 0 : Number(num.toFixed(2));
|
// return isNaN(num) ? 0 : Number(num.toFixed(2));
|
||||||
// });
|
// });
|
||||||
const { data } = await monthCash()
|
const { data } = await monthCash()
|
||||||
const month = data.map((item: any) => item.month);
|
// const month = data.map((item: any) => item.month);
|
||||||
|
const month = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'];
|
||||||
|
|
||||||
const income = data.map((item: any) => item.incomeAmount);
|
const income = data.map((item: any) => item.incomeAmount);
|
||||||
const expenses = data.map((item: any) => item.expensesAmount);
|
const expenses = data.map((item: any) => item.expensesAmount);
|
||||||
const barData = {
|
const barData = {
|
||||||
|
Reference in New Issue
Block a user