保存进度!

This commit is contained in:
2023-08-30 20:15:31 +08:00
parent 08ea359cd1
commit 4d03abde27
4 changed files with 58 additions and 7 deletions

View File

@@ -136,7 +136,7 @@ export default {
setup()
{
const monthIndex = new Date();
const thisMonth: number = monthIndex.getMonth();
const thisMonth: number = monthIndex.getMonth() + 1; // getMonth返回值从0开始。
const thisMonthString = thisMonth > 10 ? String( thisMonth ): "0" + String( thisMonth );
const thisYear: number = monthIndex.getFullYear();
const thisYearString: string = String( thisYear );
@@ -235,10 +235,11 @@ export default {
return;
}
ui.chartData = data.mensual_archievement_list.slice( 0, thisMonth-1 );
ui.chartData = data.mensual_archievement_list.slice( 0, thisMonth );
ui.totalArchievement = data.total_archievement;
console.log( "业绩清单", ui.chartData );
console.log( "当月", data.mensual_archievement_list );
ui.showUI = false;
setTimeout(() =>