From 1516f6196cbef6bbe08078df6f8199394b95e3ca Mon Sep 17 00:00:00 2001 From: noberumotto Date: Sun, 6 Mar 2022 05:03:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9B=BE=E8=A1=A8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UI/Controls/Charts/Model/ChartsDataModel.cs | 5 +++++ UI/ViewModels/DataPageVM.cs | 1 + UI/ViewModels/IndexPageVM.cs | 1 + 3 files changed, 7 insertions(+) diff --git a/UI/Controls/Charts/Model/ChartsDataModel.cs b/UI/Controls/Charts/Model/ChartsDataModel.cs index d15629c..0a53488 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 92e0b04..8bdf3e6 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 fd689fd..1643ebb 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); -- GitLab