support changing sorting type in statistics page

This commit is contained in:
MaysWind
2021-02-06 00:37:26 +08:00
parent 0b20b8858e
commit 6c04adbd06
6 changed files with 83 additions and 4 deletions
+10
View File
@@ -44,10 +44,20 @@ const allChartDataTypes = {
const defaultChartDataType = allChartDataTypes.ExpenseByPrimaryCategory;
const allSortingTypes = {
ByAmount: 0,
ByDisplayOrder: 1,
ByName: 2
};
const defaultSortingType = allSortingTypes.ByAmount;
export default {
allChartTypes: allChartTypes,
defaultChartType: defaultChartType,
allChartDataTypes: allChartDataTypes,
defaultChartDataType: defaultChartDataType,
defaultDataRangeType: datetime.allDateRanges.ThisMonth.type,
allSortingTypes: allSortingTypes,
defaultSortingType: defaultSortingType,
};