Pārlūkot izejas kodu

更新界面

样式分支
fyf pirms 2 gadiem
vecāks
revīzija
7594ae86e4
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. +4
    -2
      BPASmartClient.ViewModel/LogOrAlarmIOTViewModel.cs

+ 4
- 2
BPASmartClient.ViewModel/LogOrAlarmIOTViewModel.cs Parādīt failu

@@ -28,7 +28,7 @@ namespace BPASmartClient.ViewModel
#endregion
#region 变量
public string api = "https://bpa.black-pa.com:21527/datav/api/Log/QueryLogFile?DeviceName=";
public string DataVApiAddress { set; get; }
private ObservableCollection<FileModel> _LogModels; public ObservableCollection<FileModel> LogDataFile
{
get
@@ -51,6 +51,8 @@ namespace BPASmartClient.ViewModel
#region 函数
public void Init()
{
DataVApiAddress = System.Configuration.ConfigurationManager.AppSettings["DataVServiceUri"].ToString();

LogDataFile = new ObservableCollection<FileModel>();
//查询
QueryCommand = new RelayCommand(() =>
@@ -66,7 +68,7 @@ namespace BPASmartClient.ViewModel
try
{
LogDataFile.Clear();
api = $"https://bpa.black-pa.com:21527/datav/api/Log/QueryLogFile?DeviceName={DataVClient.GetInstance().DeviceDataV.deviceTable.devicename}"; ;
api = $"{DataVApiAddress}/api/Log/QueryLogFile?DeviceName={DataVClient.GetInstance().DeviceDataV.deviceTable.devicename}"; ;
string json = HttpRequestHelper.HttpGetRequest(api, 1000);
JsonMsg<List<FileModel>> jsonMsg = Tools.JsonToObjectTools<JsonMsg<List<FileModel>>>(json);
jsonMsg.obj?.data?.ForEach(file =>


Notiek ielāde…
Atcelt
Saglabāt