generated-scene: add scheduled monitoring runtime and helper lifecycle hardening
This commit is contained in:
36
tests/fixtures/generated_scene/multi_mode/index.html
vendored
Normal file
36
tests/fixtures/generated_scene/multi_mode/index.html
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Multi Mode Fixture</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
const sourceUrl = "http://20.76.57.61:18080/gsllys";
|
||||
|
||||
function queryReport(period_mode, orgno) {
|
||||
if (period_mode === "month") {
|
||||
return $.ajax({
|
||||
url: "http://20.76.57.61:18080/gsllys/monthReport",
|
||||
type: "POST",
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
data: { orgno, rows: 1000, page: 1, tjzq: "month" }
|
||||
});
|
||||
}
|
||||
if (period_mode === "week") {
|
||||
return $.ajax({
|
||||
url: "http://20.76.57.61:18080/gsllys/weekReport",
|
||||
type: "POST",
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
data: { orgno, rows: 1000, page: 1, tjzq: "week" }
|
||||
});
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
function renderTable(response) {
|
||||
return response.content || [];
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user