diff --git a/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/AppVisitAnalysis.razor b/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/AppVisitAnalysis.razor
index e83fe001..2a7049e4 100644
--- a/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/AppVisitAnalysis.razor
+++ b/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/AppVisitAnalysis.razor
@@ -1,11 +1,12 @@
@page "/analysis/appvisit"
+@inherits TscComponentBase
- 每@(_interval)分钟刷新一次,上次刷新时间:@_lastRefreshTime.ToString("HH:mm:ss")
+ 每@(_interval)分钟刷新一次,上次刷新时间:@_lastRefreshTime.Add(CurrentTimeZone.BaseUtcOffset).ToString("HH:mm:ss")
@@ -25,53 +26,50 @@
Loading="@_loading"
OnClick="@ReloadAll"/>
-
- @GenAppVisitCard(UvTitle, _uva)
+
+
+
+ @GenAppVisitCard(UvTitle, _uva)
+
+
+ @GenAppVisitCard(UvTitle, _uvta)
+
+
+ @GenAppVisitCard(PvTitle, _pva)
+
+
+ @GenAliveRate(_aliverate)
+
+
-
- @GenAppVisitCard(UvTitle, _uvta)
-
-
- @GenAppVisitCard(PvTitle, _pva)
-
-
- @GenAliveRate(_aliverate)
-
-
+
+ MinHeight="616">
+ Height="@("100%")">
-
+
-
+
-
+
-
+
@@ -82,7 +80,7 @@
-
+
@@ -93,7 +91,7 @@
-
+
diff --git a/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/AppVisitAnalysis.razor.cs b/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/AppVisitAnalysis.razor.cs
index 6abacfb5..f5d6e360 100644
--- a/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/AppVisitAnalysis.razor.cs
+++ b/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/AppVisitAnalysis.razor.cs
@@ -9,7 +9,7 @@
namespace Masa.Tsc.Web.Admin.Rcl.Pages.Analysis
{
- public partial class AppVisitAnalysis : IDisposable
+ public partial class AppVisitAnalysis : TscComponentBase
{
[Inject] private IHttpClientFactory HttpClientFactory { get; set; } = null!;
@@ -120,10 +120,10 @@ private void OnIgnoreHomeChanged(bool val)
private async Task RefreshMapDataAsync()
{
- var response = await _graphClient.SendQueryAsync>(GetMapDataQuery());
+ var response = await _graphClient.SendQueryAsync>(GetMapDataQuery());
var data = response.Data.Items.Select(x => new
{
- name = ADCodeName[x.AreaVisit.ADCode],
+ name = TerminalAnalysisData.ADCodeName[x.AreaVisit.ADCode],
value = x.AreaVisit.Pv,
uv = x.AreaVisit.Uv,
uvt = x.AreaVisit.Uvt
@@ -135,7 +135,7 @@ private async Task RefreshMapDataAsync()
private async Task RefreshAppVisitHourAsync()
{
- var response = await _graphClient.SendQueryAsync>(GetAppVisitHourQuery());
+ var response = await _graphClient.SendQueryAsync>(GetAppVisitHourQuery());
var x = response.Data.Items.Select(u => u.AppVisitHour.TimeKey).ToArray();
var tuv = response.Data.Items.Select(u => u.AppVisitHour.Tuv).ToArray();
@@ -164,7 +164,7 @@ private async Task RefreshAppVisitPageAsync2()
private async Task
diff --git a/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/TerminalAnalysis.razor.cs b/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/TerminalAnalysis.razor.cs
index ce32f660..106f55b2 100644
--- a/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/TerminalAnalysis.razor.cs
+++ b/src/Web/Masa.Tsc.Web.Admin.Rcl/Pages/Analysis/TerminalAnalysis.razor.cs
@@ -69,12 +69,12 @@ private async Task RefreshBrandECharts()
await InvokeAsync(StateHasChanged);
}
- private async Task> QueryAsync(string type)
+ private async Task> QueryAsync(string type)
{
try
{
var query = GetQuery(type);
- var result = await _graphClient.SendQueryAsync(query);
+ var result = await _graphClient.SendQueryAsync>(query);
return result.Data.Items;
}
catch (Exception e)
@@ -208,10 +208,6 @@ private static object GetPieOption(string name, IEnumerable