refactor(largeScreen): 调整图表样式和数据

- 修改 getLineOption 函数中的 axisLabel textStyle 颜色为白色
- 更新 ProgressComponent 组件的 percentageChange 值为 98.11%
- 固定 month 数组为 12
This commit is contained in:
tcy
2025-08-22 17:26:18 +08:00
parent 678f10c96b
commit 291a5eca02
2 changed files with 3 additions and 3 deletions

View File

@ -312,7 +312,7 @@ export const getLineOption = (lineData: any) => {
axisLabel: { axisLabel: {
textStyle: { textStyle: {
color: '#fff' color: '#fff'
} },
} }
}, },
yAxis: { yAxis: {

View File

@ -33,7 +33,7 @@
<div class="title">项目进度</div> <div class="title">项目进度</div>
<div class="number">100%</div> <div class="number">100%</div>
</div> --> </div> -->
<ProgressComponent title="现金比率" value="123,456.78" percentageChange="3479.61%" :progressPercentage="100" <ProgressComponent title="现金比率" value="123,456.78" percentageChange="98.11%" :progressPercentage="100"
progressColor="rgba(29, 214, 255, 1)" :isShowPrice="false" class="progress_text" /> progressColor="rgba(29, 214, 255, 1)" :isShowPrice="false" class="progress_text" />
</div> </div>
</div> </div>
@ -53,7 +53,7 @@ const bigDataObj = ref<any>({});
const getCapitalData = async () => { const getCapitalData = async () => {
const { data } = await monthMoney() const { data } = await monthMoney()
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 profit = data.map((item: any) => item.profitAmount); const profit = data.map((item: any) => item.profitAmount);