修改system
This commit is contained in:
@ -21,10 +21,13 @@ namespace HT.Cloud.Web.Areas.SystemSecurity.Controllers
|
||||
{
|
||||
public ServerStateService _serverStateService { get; set; }
|
||||
|
||||
public RealTimeIOStateService _realTimeIOState { get; set; }
|
||||
public RealTimeIOStateService _realTimeIOState { get; set; }
|
||||
|
||||
|
||||
[HttpGet]
|
||||
/// <summary>
|
||||
/// 绑定数据仓库的数据库ID
|
||||
/// </summary>
|
||||
private string systemDescription = GlobalContext.SystemConfig.SystemDescription;
|
||||
[HttpGet]
|
||||
public async Task<ActionResult> GetServerDataJson()
|
||||
{
|
||||
return await Task.Run(() =>
|
||||
@ -68,7 +71,7 @@ namespace HT.Cloud.Web.Areas.SystemSecurity.Controllers
|
||||
[HttpGet]
|
||||
public async Task<ActionResult> GetRealIOGroup()
|
||||
{
|
||||
var listgroup = _realTimeIOState.GetIOGroup("喷煤系统");
|
||||
var listgroup = _realTimeIOState.GetIOGroup(systemDescription);
|
||||
|
||||
return Content(listgroup.ToJson());
|
||||
}
|
||||
@ -76,15 +79,15 @@ namespace HT.Cloud.Web.Areas.SystemSecurity.Controllers
|
||||
public async Task<ActionResult> GetRealIOInfo()
|
||||
{
|
||||
|
||||
var listinfo = _realTimeIOState.GetIOInfo("喷煤系统");
|
||||
var listinfo = _realTimeIOState.GetIOInfo(systemDescription);
|
||||
|
||||
return Content(listinfo.ToJson());
|
||||
}
|
||||
[HttpGet]
|
||||
public async Task<ActionResult> GetRealIOState()
|
||||
{
|
||||
var listgroup = _realTimeIOState.GetIOGroup("喷煤系统");
|
||||
var listinfo = _realTimeIOState.GetIOInfo("喷煤系统");
|
||||
var listgroup = _realTimeIOState.GetIOGroup(systemDescription);
|
||||
var listinfo = _realTimeIOState.GetIOInfo(systemDescription);
|
||||
var data = _realTimeIOState.GetRtData();
|
||||
return Content(data.Result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user