add asset trends in statistics & analysis (#314)

This commit is contained in:
MaysWind
2025-11-09 22:51:46 +08:00
parent d3abb279e3
commit 4c8bb5a0b7
52 changed files with 1917 additions and 266 deletions
+14
View File
@@ -314,6 +314,18 @@ export const useSettingsStore = defineStore('settings', () => {
updateUserApplicationCloudSettingValue('statistics.defaultTrendChartDataRangeType', value);
}
function setStatisticsDefaultAssetTrendsChartType(value: number): void {
updateApplicationSettingsSubValue('statistics', 'defaultAssetTrendsChartType', value);
appSettings.value.statistics.defaultAssetTrendsChartType = value;
updateUserApplicationCloudSettingValue('statistics.defaultAssetTrendsChartType', value);
}
function setStatisticsDefaultAssetTrendsChartDateRange(value: number): void {
updateApplicationSettingsSubValue('statistics', 'defaultAssetTrendsChartDataRangeType', value);
appSettings.value.statistics.defaultAssetTrendsChartDataRangeType = value;
updateUserApplicationCloudSettingValue('statistics.defaultAssetTrendsChartDataRangeType', value);
}
function clearAppSettings(): void {
clearSettings();
appSettings.value = getApplicationSettings();
@@ -469,6 +481,8 @@ export const useSettingsStore = defineStore('settings', () => {
setStatisticsDefaultCategoricalChartDateRange,
setStatisticsDefaultTrendChartType,
setStatisticsDefaultTrendChartDateRange,
setStatisticsDefaultAssetTrendsChartType,
setStatisticsDefaultAssetTrendsChartDateRange,
clearAppSettings,
createApplicationCloudSettings,
setApplicationSettingsFromCloudSettings,