40 lines
1.0 KiB
HTML
40 lines
1.0 KiB
HTML
<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>
|