From 97fe557575f6ae4676cdca4f76ed7ec227e8852c Mon Sep 17 00:00:00 2001 From: hanqiangqiang <1364346467@qq.com> Date: Mon, 17 Jul 2023 16:30:42 +0800 Subject: [PATCH] =?UTF-8?q?[UI.Client]=20=E4=BC=98=E5=8C=96=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=A0=BC=E5=BC=8F=EF=BC=8C=E4=BC=98=E5=8C=96=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AE=9E=E6=97=B6=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CenterViews/Modules/PM/PMProcessView.xaml | 2 +- .../CenterViews/Modules/PM/PMProcessViewModel.cs | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/MECF.Framework.UI.Client/CenterViews/Modules/PM/PMProcessView.xaml b/MECF.Framework.UI.Client/CenterViews/Modules/PM/PMProcessView.xaml index 55474e6..fda4d8d 100644 --- a/MECF.Framework.UI.Client/CenterViews/Modules/PM/PMProcessView.xaml +++ b/MECF.Framework.UI.Client/CenterViews/Modules/PM/PMProcessView.xaml @@ -2174,7 +2174,7 @@ BorderThickness="1" CornerRadius="3" BorderBrush="#91b0cd" > - + diff --git a/MECF.Framework.UI.Client/CenterViews/Modules/PM/PMProcessViewModel.cs b/MECF.Framework.UI.Client/CenterViews/Modules/PM/PMProcessViewModel.cs index 32ee5b5..5c0ff79 100644 --- a/MECF.Framework.UI.Client/CenterViews/Modules/PM/PMProcessViewModel.cs +++ b/MECF.Framework.UI.Client/CenterViews/Modules/PM/PMProcessViewModel.cs @@ -1649,8 +1649,12 @@ namespace MECF.Framework.UI.Client.CenterViews.Modules.PM get => _gasNameList; set { - if (_gasNameList != value) + if (_gasNameList == null) + { _gasNameList = value; + SelectGasName= _gasNameList[0]; + } + //_gasNameList = value; } } @@ -1661,8 +1665,11 @@ namespace MECF.Framework.UI.Client.CenterViews.Modules.PM get => _gasFlowSumList; set { - if (_gasFlowSumList != value) + if (_gasFlowSumList == null) _gasFlowSumList = value; + if (JsonConvert.SerializeObject(_gasFlowSumList) != JsonConvert.SerializeObject(value)) + _gasFlowSumList = value; + } }