50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
![]() |
using Microsoft.AspNetCore.Mvc;
|
|||
|
using System;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using HT.Cloud.Service.ChartsManage;
|
|||
|
using HT.Cloud.Service.ReportManage;
|
|||
|
using HT.Cloud.Code;
|
|||
|
|
|||
|
namespace HT.Cloud.Web.Areas.ReportManage.Controllers
|
|||
|
{
|
|||
|
[Area("ReportManage")]
|
|||
|
public class MainPageController : BaseController
|
|||
|
{
|
|||
|
public MainPageService _mainPageService { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 绑定数据仓库的数据库ID
|
|||
|
/// </summary>
|
|||
|
private string groupDescription = GlobalContext.SystemConfig.GroupDescription;
|
|||
|
|
|||
|
[HttpGet]
|
|||
|
public async Task<ActionResult> GetMainPageInit()
|
|||
|
{
|
|||
|
var data = await _mainPageService.GetMainPageInit(groupDescription);
|
|||
|
return Content(data);
|
|||
|
}
|
|||
|
|
|||
|
[HttpGet]
|
|||
|
public async Task<ActionResult> GetMainPageChartInit()
|
|||
|
{
|
|||
|
var data = await _mainPageService.GetMainPageChartInit(groupDescription);
|
|||
|
return Content(data);
|
|||
|
}
|
|||
|
|
|||
|
[HttpGet]
|
|||
|
public async Task<ActionResult> GetRtData()
|
|||
|
{
|
|||
|
var data = await _mainPageService.GetRtData(groupDescription);
|
|||
|
return Content(data);
|
|||
|
}
|
|||
|
|
|||
|
[HttpGet]
|
|||
|
public async Task<ActionResult> GetRtChartData()
|
|||
|
{
|
|||
|
var data = await _mainPageService.GetRtChartData(groupDescription);
|
|||
|
return Content(data);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|