[UI.Client]

优化显示格式,优化数据实时刷新问题
This commit is contained in:
hanqiangqiang 2023-07-17 16:30:42 +08:00
parent 37d18a439d
commit 97fe557575
2 changed files with 10 additions and 3 deletions

View File

@ -2174,7 +2174,7 @@
BorderThickness="1" BorderThickness="1"
CornerRadius="3" CornerRadius="3"
BorderBrush="#91b0cd" > BorderBrush="#91b0cd" >
<TextBlock Text="{Binding Name}" FontSize="18" FontFamily="Bold" /> <TextBlock Text="{Binding Name}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" FontFamily="Bold" />
</Border> </Border>

View File

@ -1649,8 +1649,12 @@ namespace MECF.Framework.UI.Client.CenterViews.Modules.PM
get => _gasNameList; get => _gasNameList;
set set
{ {
if (_gasNameList != value) if (_gasNameList == null)
{
_gasNameList = value; _gasNameList = value;
SelectGasName= _gasNameList[0];
}
//_gasNameList = value;
} }
} }
@ -1661,8 +1665,11 @@ namespace MECF.Framework.UI.Client.CenterViews.Modules.PM
get => _gasFlowSumList; get => _gasFlowSumList;
set set
{ {
if (_gasFlowSumList != value) if (_gasFlowSumList == null)
_gasFlowSumList = value; _gasFlowSumList = value;
if (JsonConvert.SerializeObject(_gasFlowSumList) != JsonConvert.SerializeObject(value))
_gasFlowSumList = value;
} }
} }