diff --git a/BPASmartClient.ScreenLib/总监视大屏/ScreenALLControl.xaml b/BPASmartClient.ScreenLib/总监视大屏/ScreenALLControl.xaml index b2898059..be430e01 100644 --- a/BPASmartClient.ScreenLib/总监视大屏/ScreenALLControl.xaml +++ b/BPASmartClient.ScreenLib/总监视大屏/ScreenALLControl.xaml @@ -471,14 +471,14 @@ ItemsSource="{Binding StatsCountAll,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> - + - - - + + + - - + + diff --git a/BPASmartClient.ScreenLib/总监视大屏/ScreenALLControlViewModel.cs b/BPASmartClient.ScreenLib/总监视大屏/ScreenALLControlViewModel.cs index b4d7c1a5..6fae6bff 100644 --- a/BPASmartClient.ScreenLib/总监视大屏/ScreenALLControlViewModel.cs +++ b/BPASmartClient.ScreenLib/总监视大屏/ScreenALLControlViewModel.cs @@ -225,7 +225,7 @@ namespace BPASmartClient.ScreenLib _Stats?.ToList().ForEach(par => { _Statsall.Add(new StatsAllModel { Name = par.Key,Count = par.Value }); }); - int maxcount = Stats.Max(k => k.Count); + int maxcount = _Statsall.Max(k => k.Count); _Statsall?.ForEach(par => { par.bfb = (int)(((double)par.Count / (double)maxcount) * 100.0);