generated-scene: add scheduled monitoring runtime and helper lifecycle hardening

This commit is contained in:
木炎
2026-05-06 09:47:12 +08:00
parent 6cdd71b682
commit 8162118e6d
183 changed files with 103674 additions and 130 deletions

View File

@@ -0,0 +1,39 @@
<html>
<head>
<meta charset="utf-8">
<title>G2 Prediction Compute Fixture</title>
</head>
<body>
<script>
const sourceUrl = "http://20.76.57.61:18080/gsllys";
const reportType = "predictionCompute";
const period_mode = "prediction";
async function queryHighLossForecast(orgno, fdate) {
const params = {
orgno,
fdate,
tjzq: "month",
mode: "prediction",
page: 1,
rows: 60,
reportType: "predictionCompute"
};
return $.ajax({
url: "http://20.76.57.61:18080/gsllys/tqLinelossStatis/highLineLossForecast",
type: "POST",
contentType: "application/x-www-form-urlencoded",
data: JSON.stringify(params)
});
}
function runPredictionMode() {
return queryHighLossForecast("6201001", "2026-04");
}
function normalizePredictionRow(lineId, lineName, lineLossType, lineLossRate, powerLoss) {
return { lineId, lineName, lineLossType, lineLossRate, powerLoss };
}
</script>
</body>
</html>