diff --git a/BPASmartClient.IoT/DataVClient.cs b/BPASmartClient.IoT/DataVClient.cs index b3f1063a..c4ca8862 100644 --- a/BPASmartClient.IoT/DataVClient.cs +++ b/BPASmartClient.IoT/DataVClient.cs @@ -91,6 +91,23 @@ namespace BPASmartClient.IoT #region API调用 /// + /// 刷新店铺列表 + /// + public void RefreshTheListOfStores() + { + try + { + if (DeviceDataV != null && DeviceDataV.GetIsConnected() && DeviceDataV.deviceTable != null) + { + DeviceDataV.IOT_Publish(BroadcastPubTopic, Tools.JsonConvertTools("刷新店铺列表")); + } + } + catch (Exception ex) + { + MessageLog.GetInstance.Show(ex.Message); + } + } + /// /// 增加告警信息 /// /// diff --git a/BPASmartClient/Control/DataVView.xaml b/BPASmartClient/Control/DataVView.xaml index f630ba73..e5667a76 100644 --- a/BPASmartClient/Control/DataVView.xaml +++ b/BPASmartClient/Control/DataVView.xaml @@ -85,7 +85,9 @@ - + + + diff --git a/BPASmartClient/Control/DataVView.xaml.cs b/BPASmartClient/Control/DataVView.xaml.cs index d0067c42..9b09729b 100644 --- a/BPASmartClient/Control/DataVView.xaml.cs +++ b/BPASmartClient/Control/DataVView.xaml.cs @@ -134,6 +134,9 @@ namespace BPASmartClient.Control else NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, MainViewModel.GetInstance().window, "提示", $"密码输入错误!"); break; + case "刷新": + DataVClient.GetInstance().RefreshTheListOfStores(); + break; } } }