diff --git a/UI/Controls/Charts/Model/ChartsDataModel.cs b/UI/Controls/Charts/Model/ChartsDataModel.cs index d15629c70982e7f2422ae3aaed67073c50d2e9a3..0a534889d7d03002a5e637aa8c0debaf3b7e12aa 100644 --- a/UI/Controls/Charts/Model/ChartsDataModel.cs +++ b/UI/Controls/Charts/Model/ChartsDataModel.cs @@ -38,5 +38,10 @@ namespace UI.Controls.Charts.Model /// 时间(仅在类型为Month样式时有效) /// public DateTime DateTime { get; set; } + + /// + /// 数据模型 + /// + public object Data { get; set; } } } diff --git a/UI/ViewModels/DataPageVM.cs b/UI/ViewModels/DataPageVM.cs index 92e0b04d25c9a82cc9a5830c86c9439613d3f30d..8bdf3e6be259b8ab2a705c735139b471da201ea4 100644 --- a/UI/ViewModels/DataPageVM.cs +++ b/UI/ViewModels/DataPageVM.cs @@ -174,6 +174,7 @@ namespace UI.ViewModels foreach (var item in list) { var bindModel = new ChartsDataModel(); + bindModel.Data = item; bindModel.Name = string.IsNullOrEmpty(item.ProcessDescription) ? item.ProcessName : item.ProcessDescription; bindModel.Value = item.Time; bindModel.Tag = Timer.Fromat(item.Time); diff --git a/UI/ViewModels/IndexPageVM.cs b/UI/ViewModels/IndexPageVM.cs index fd689fd1739dae7a0eb92f7fdd972a4a06215fa4..1643ebb0970d948e23539e074f882aa7c5c055ce 100644 --- a/UI/ViewModels/IndexPageVM.cs +++ b/UI/ViewModels/IndexPageVM.cs @@ -129,6 +129,7 @@ namespace UI.ViewModels foreach (var item in list) { var bindModel = new ChartsDataModel(); + bindModel.Data = item; bindModel.Name = string.IsNullOrEmpty(item.ProcessDescription) ? item.ProcessName : item.ProcessDescription; bindModel.Value = item.Time; bindModel.Tag = Timer.Fromat(item.Time);