提交记录修改UI/Controls/Charts/Model/ChartsDataModel.cs+5 −0看文件
修改UI/ViewModels/DataPageVM.cs+1 −0看文件
修改UI/ViewModels/IndexPageVM.cs+1 −0看文件
| @@ -38,5 +38,10 @@ namespace UI.Controls.Charts.Model | ||
| 38 | 38 | /// 时间(仅在类型为Month样式时有效) |
| 39 | 39 | /// </summary> |
| 40 | 40 | public DateTime DateTime { get; set; } |
| 41 | 新增: | |
| 42 | 新增: /// <summary> | |
| 43 | 新增: /// 数据模型 | |
| 44 | 新增: /// </summary> | |
| 45 | 新增: public object Data { get; set; } | |
| 41 | 46 | } |
| 42 | 47 | } |
| @@ -174,6 +174,7 @@ namespace UI.ViewModels | ||
| 174 | 174 | foreach (var item in list) |
| 175 | 175 | { |
| 176 | 176 | var bindModel = new ChartsDataModel(); |
| 177 | 新增: bindModel.Data = item; | |
| 177 | 178 | bindModel.Name = string.IsNullOrEmpty(item.ProcessDescription) ? item.ProcessName : item.ProcessDescription; |
| 178 | 179 | bindModel.Value = item.Time; |
| 179 | 180 | bindModel.Tag = Timer.Fromat(item.Time); |
| @@ -129,6 +129,7 @@ namespace UI.ViewModels | ||
| 129 | 129 | foreach (var item in list) |
| 130 | 130 | { |
| 131 | 131 | var bindModel = new ChartsDataModel(); |
| 132 | 新增: bindModel.Data = item; | |
| 132 | 133 | bindModel.Name = string.IsNullOrEmpty(item.ProcessDescription) ? item.ProcessName : item.ProcessDescription; |
| 133 | 134 | bindModel.Value = item.Time; |
| 134 | 135 | bindModel.Tag = Timer.Fromat(item.Time); |

