refactor: 实时数据页面去除变量值筛选

This commit is contained in:
Diego2098
2024-07-06 17:03:58 +08:00
parent 3b7c107e8f
commit a2e8741517
2 changed files with 6 additions and 6 deletions

View File

@@ -140,19 +140,19 @@ public class VariableRunTime : Variable, IVariable
/// <summary>
/// 上次值
/// </summary>
[AutoGenerateColumn(Visible = false, Filterable = true, Order = 6)]
[AutoGenerateColumn(Visible = false, Order = 6)]
public object? LastSetValue { get; internal set; }
/// <summary>
/// 原始值
/// </summary>
[AutoGenerateColumn(Visible = false, Filterable = true, Order = 6)]
[AutoGenerateColumn(Visible = false, Order = 6)]
public object? RawValue { get; internal set; }
/// <summary>
/// 实时值
/// </summary>
[AutoGenerateColumn(Visible = true, Filterable = true, Order = 6)]
[AutoGenerateColumn(Visible = true, Order = 6)]
public object? Value { get => _value; internal set => _value = value; }
/// <summary>

View File

@@ -39,10 +39,10 @@
<TableColumn Field="@context.IsOnline" FieldExpression=@(()=>context.IsOnline) Filterable Sortable Visible />
<TableColumn Field="@context.LastErrorMessage" ShowTips FieldExpression=@(()=>context.LastErrorMessage) Filterable Sortable Visible />
<TableColumn Field="@context.LastSetValue" FieldExpression=@(()=>context.LastSetValue) Filterable Visible ShowTips Formatter=@(JsonFormatter) />
<TableColumn Field="@context.LastSetValue" FieldExpression=@(()=>context.LastSetValue) Visible ShowTips Formatter=@(JsonFormatter) />
<TableColumn Field="@context.RawValue" FieldExpression=@(()=>context.RawValue) Filterable Visible ShowTips Formatter=@(JsonFormatter) />
<TableColumn Field="@context.Value" FieldExpression=@(()=>context.Value) Filterable Visible ShowTips Formatter=@(JsonFormatter) />
<TableColumn Field="@context.RawValue" FieldExpression=@(()=>context.RawValue) Visible ShowTips Formatter=@(JsonFormatter) />
<TableColumn Field="@context.Value" FieldExpression=@(()=>context.Value) Visible ShowTips Formatter=@(JsonFormatter) />
<TableColumn @bind-Field="@context.DataType" Filterable Sortable Visible />