37 lines
929 B
HTML
37 lines
929 B
HTML
<!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>
|