generated-scene: add scheduled monitoring runtime and helper lifecycle hardening
This commit is contained in:
42
tests/fixtures/generated_scene/g2_weekly_single_mode/index.html
vendored
Normal file
42
tests/fixtures/generated_scene/g2_weekly_single_mode/index.html
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>G2 Weekly Single Mode Fixture</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
const sourceUrl = "http://20.76.57.61:18080/gsllys";
|
||||
|
||||
async function queryWeeklyLineloss(orgno, weekSfdate, weekEfdate) {
|
||||
const params = {
|
||||
orgno,
|
||||
tjzq: "week",
|
||||
level: "02",
|
||||
rows: 20,
|
||||
page: 1,
|
||||
weekSfdate,
|
||||
weekEfdate
|
||||
};
|
||||
return $.ajax({
|
||||
url: "http://20.76.57.61:18080/gsllys/tqLinelossStatis/getYearMonWeekLinelossAnalysisList",
|
||||
type: "POST",
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
data: JSON.stringify(params)
|
||||
});
|
||||
}
|
||||
|
||||
async function queryWeeklyRank(orgno) {
|
||||
return $.ajax({
|
||||
url: "http://20.76.57.61:18080/gsllys/tqLinelossStatis/getTqLinelossInfoListRank",
|
||||
type: "POST",
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
data: JSON.stringify({ orgno, page: 1, rows: 20 })
|
||||
});
|
||||
}
|
||||
|
||||
function runWeeklyReport() {
|
||||
return queryWeeklyLineloss("6201001", "2026-04-01", "2026-04-07");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user