Files
claw/tests/fixtures/generated_scene/g3_g8_mixed_boundary/index.html

67 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>G3 G8 Mixed Boundary</title>
</head>
<body>
<script>
const pagesDetail = {
loginPath: "http://south.95598.sgcc.com.cn/bs/bsp/jsp/login.jsp",
mainPath: "http://south.95598.sgcc.com.cn/bs/bsp/jsp/main1.jsp"
}
async function getDataCallBack1(targeturl, actionurl, responseText) {
let data = { TabTi: { rows: [{ cols: [] }, { cols: [] }] }, ColumnNames: ["appNo", "custNo"] }
data.TabTi.rows.shift()
let this_rows = data.TabTi.rows.map((e) => e["cols"])
return this_rows
}
function getDataCallBack2(targeturl, actionurl, responseText) {
return responseText
}
async function getTicketDetail(appNo) {
return axios.post("http://south.95598.sgcc.com.cn/bs/businessaccept/queryTicketDetail/query.so", {
appNo: appNo
})
}
function exportExcel(config) {
return docExport(config)
}
function runScene(mac, startHandleTime, endHandleTime) {
let path = moment(endHandleTime).diff(moment(), 'days') < -90
? '/bs/businessaccept/queryHisS95598WkstGrid/query.so'
: '/bs/businessaccept/newQueryS95598WkstGrid/query.so'
BrowserAction(
'sgBrowerserJsAjax2',
pagesDetail.mainPath,
`${path}?appNo=&custNo=&org.sotower.web.taglib.util.PAGEPOLITPAGESIZE_grid=15&org.sotower.web.taglib.util.PAGEPOLITCURRENTPAGEINDEX_grid=${mac.page1}&org.sotower.web.taglib.util.RESETPAGEINDEX_grid=false`,
"getDataCallBack1"
)
axios.post("http://localhost:13313/configServices/selectData", JSON.stringify({
tableName: "work_order_detail_for95598",
query: "WHERE appNo >= '20260101'"
}), {
headers: {
"Content-Type": "application/json"
}
})
let exportConfig = {
url: "http://localhost:13313/SurfaceServices/personalBread/export/faultYoYExportXLSX"
}
if (mac.page1 === mac.total1) {
exportExcel(exportConfig)
}
}
</script>
</body>
</html>