30 lines
676 B
HTML
30 lines
676 B
HTML
<!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>
|