You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
|
2 months ago
|
using ReactiveUI;
|
||
|
|
|
||
|
|
namespace MyAvaloniaApp.ViewModels.Pages;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 报表统计页面ViewModel
|
||
|
|
/// </summary>
|
||
|
|
public class ReportsPageViewModel : ReactiveObject
|
||
|
|
{
|
||
|
|
private string _welcomeMessage = "欢迎使用报表统计功能!";
|
||
|
|
private int _totalReports = 156;
|
||
|
|
private int _monthlyReports = 23;
|
||
|
|
private double _averageScore = 87.5;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 欢迎消息
|
||
|
|
/// </summary>
|
||
|
|
public string WelcomeMessage
|
||
|
|
{
|
||
|
|
get => _welcomeMessage;
|
||
|
|
set => this.RaiseAndSetIfChanged(ref _welcomeMessage, value);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 总报表数
|
||
|
|
/// </summary>
|
||
|
|
public int TotalReports
|
||
|
|
{
|
||
|
|
get => _totalReports;
|
||
|
|
set => this.RaiseAndSetIfChanged(ref _totalReports, value);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 月度报表数
|
||
|
|
/// </summary>
|
||
|
|
public int MonthlyReports
|
||
|
|
{
|
||
|
|
get => _monthlyReports;
|
||
|
|
set => this.RaiseAndSetIfChanged(ref _monthlyReports, value);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 平均评分
|
||
|
|
/// </summary>
|
||
|
|
public double AverageScore
|
||
|
|
{
|
||
|
|
get => _averageScore;
|
||
|
|
set => this.RaiseAndSetIfChanged(ref _averageScore, value);
|
||
|
|
}
|
||
|
|
}
|