generated-scene: add scheduled monitoring runtime and helper lifecycle hardening
This commit is contained in:
50
tests/fixtures/generated_scene/g2_mixed_linked_workflow/index.html
vendored
Normal file
50
tests/fixtures/generated_scene/g2_mixed_linked_workflow/index.html
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>G2 Mixed Linked Workflow Fixture</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
const sourceUrl = "http://20.76.57.61:18080/gsllys";
|
||||
|
||||
async function queryMainRank(formDate) {
|
||||
return $.ajax({
|
||||
url: "http://20.76.57.61:18080/gsllys/tqLinelossStatis/getTqLinelossInfoListRank",
|
||||
type: "POST",
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
data: JSON.stringify(formDate)
|
||||
});
|
||||
}
|
||||
|
||||
async function queryUserElectric(query) {
|
||||
return $.ajax({
|
||||
url: "http://20.76.57.61:18080/gsllys/tqLinelossStatis/getUserElectricList",
|
||||
type: "POST",
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
data: JSON.stringify(query)
|
||||
});
|
||||
}
|
||||
|
||||
async function queryPeerSystemToken(dlMesage) {
|
||||
return $.ajax({
|
||||
url: "http://10.4.39.180/xsgl/syncLineLoss/rest/syncLineLossService/workbench",
|
||||
type: "POST",
|
||||
contentType: "application/json;charset=UTF-8",
|
||||
data: JSON.stringify({
|
||||
userName: dlMesage.userName,
|
||||
loginName: dlMesage.loginName,
|
||||
urlType: "WORKBENCH",
|
||||
url: "/loginInfo/getToken"
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
function bootScene() {
|
||||
return sgBrowserExcuteJsCode(
|
||||
"http://20.76.57.61:18080/gsllys/tqLinelossStatis/tqQualifyRateMonitor",
|
||||
"run"
|
||||
);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user