generated-scene: add scheduled monitoring runtime and helper lifecycle hardening
This commit is contained in:
29
tests/fixtures/generated_scene/single_request_table/index.html
vendored
Normal file
29
tests/fixtures/generated_scene/single_request_table/index.html
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Single Request Table Fixture</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
const sourceUrl = "http://yx.gs.sgcc.com.cn/report";
|
||||
|
||||
async function queryReport(orgCode, periodValue) {
|
||||
return $.ajax({
|
||||
url: "http://yx.gs.sgcc.com.cn/report/list",
|
||||
type: "POST",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify({ orgCode, periodValue })
|
||||
});
|
||||
}
|
||||
|
||||
function normalizeRows(response) {
|
||||
return (response.rows || []).map((item) => ({
|
||||
org_code: item.orgCode,
|
||||
org_name: item.orgName,
|
||||
total: item.total
|
||||
}));
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user