Fix display chart STATS che si pianta se chiamato troppo presto
This commit is contained in:
@@ -37,7 +37,11 @@ namespace MP_TAB3.Components
|
||||
{
|
||||
idxMaccSel = value;
|
||||
MsgServ.UserPrefSet(idxMaccCurr, value);
|
||||
E_MachSel.InvokeAsync(value).ConfigureAwait(false);
|
||||
var pUpd = Task.Run(async () =>
|
||||
{
|
||||
await E_MachSel.InvokeAsync(value);
|
||||
});
|
||||
pUpd.Wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,8 +180,6 @@ namespace MP.Data
|
||||
|
||||
modelBuilder.Entity<MacchineStatModel>(entity =>
|
||||
{
|
||||
//entity.HasNoKey();
|
||||
|
||||
entity.ToView("v_UI_MaccEnergy");
|
||||
});
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
[Parameter]
|
||||
public bool Horizontal { get; set; } = false;
|
||||
|
||||
|
||||
[Parameter]
|
||||
public List<double> Data { get; set; } = new List<double>();
|
||||
|
||||
@@ -120,6 +120,7 @@
|
||||
labels = Labels
|
||||
}
|
||||
};
|
||||
await Task.Delay(50);
|
||||
if (Horizontal)
|
||||
{
|
||||
await JSRuntime.InvokeVoidAsync("setup", Id, configHor);
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
labels = Labels
|
||||
}
|
||||
};
|
||||
await Task.Delay(50);
|
||||
await JSRuntime.InvokeVoidAsync("setup", Id, config);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
// await Task.Delay(100);
|
||||
await renderChart();
|
||||
}
|
||||
|
||||
@@ -116,6 +117,7 @@
|
||||
}
|
||||
}
|
||||
};
|
||||
await Task.Delay(50);
|
||||
await JSRuntime.InvokeVoidAsync("setup", Id, config);
|
||||
}
|
||||
}
|
||||
@@ -117,6 +117,7 @@
|
||||
datasets = dataSetsList
|
||||
}
|
||||
};
|
||||
await Task.Delay(50);
|
||||
await JSRuntime.InvokeVoidAsync("setup", Id, config);
|
||||
}
|
||||
}
|
||||
@@ -92,6 +92,7 @@
|
||||
}
|
||||
}
|
||||
};
|
||||
await Task.Delay(50);
|
||||
await JSRuntime.InvokeVoidAsync("setup", Id, config);
|
||||
}
|
||||
}
|
||||
@@ -88,6 +88,7 @@
|
||||
}
|
||||
}
|
||||
};
|
||||
await Task.Delay(50);
|
||||
await JSRuntime.InvokeVoidAsync("setup", Id, config);
|
||||
}
|
||||
}
|
||||
@@ -327,7 +327,7 @@ namespace MP.Stats.Data
|
||||
}
|
||||
else
|
||||
{
|
||||
result = dbController.MacchineEnergy().ToList();
|
||||
result = dbController.MacchineEnergy();
|
||||
// serializzp e salvo...
|
||||
rawData = JsonConvert.SerializeObject(result);
|
||||
redisDb.StringSet(currKey, rawData, FastCache);
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<RootNamespace>MP.Stats</RootNamespace>
|
||||
<UserSecretsId>826e877c-ba70-4253-84cb-d0b1cafd4440</UserSecretsId>
|
||||
<Version>6.16.2507.2411</Version>
|
||||
<Version>6.16.2507.2411</Version>
|
||||
<Version>6.16.2508.0515</Version>
|
||||
<Version>6.16.2508.0515</Version>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<NoWarn>$(NoWarn);1591</NoWarn>
|
||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo statistiche MAPO</i>
|
||||
<h4>Versione: 6.16.2507.2411</h4>
|
||||
<h4>Versione: 6.16.2508.0515</h4>
|
||||
<br />
|
||||
Note di rilascio:
|
||||
<ul>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2507.2411
|
||||
6.16.2508.0515
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2507.2411</version>
|
||||
<version>6.16.2508.0515</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-STATS/stable/LAST/MP.Stats.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-STATS/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
///Setup del chart desiderato con id univoco
|
||||
// Setup del chart desiderato con id univoco
|
||||
window.setup = (id, config) => {
|
||||
var ctx = document.getElementById(id).getContext('2d');
|
||||
//let currentDate = new Date();
|
||||
|
||||
Reference in New Issue
Block a user