import { boroughInfoArr,layuiObj,skynetIpcInfo ,schoolStarRatinglistArr} from "./index.js"; import { getEntranceStaffSign,showEntranceStaffSign } from "./orgApi/getEntranceStaffSign.js"; import {showSchoolMarkerInfo} from "./marker/schoolMarker.js"; import { iframeVideoUrl } from "../../../public/js/url.js"; function showSchoolBaseInfo(obj){ var div=getSchoolInfoDiv(obj); $(".schoolBaseInfo").html(div); $(".schoolName").html(obj["name"]); for(var i=0;i3){ break; }else{ var token=tempArr[j]["pointCode"] div+=`
${getIframeUrl(token)}
`; } } $(".videoMonitor").html(div); setVideoSize(tempArr.length) } window.addEventListener('message', function(e) { var data=e.data var cmd=data["cmd"]; var deviceid=data["deviceid"] if(cmd=="closePage"){ closeIpcVideoPage(deviceid); } }) function closeIpcVideoPage(token){ var vdiv=$(".videoMonitor>div"); for(var i=0;i ` } function setVideoSize(value){ switch(value){ case 1: $(".videoMonitor>div").css("width","100%").css("height","100%"); break; case 2: // $(".videoMonitor>div").css("width","220px").css("height","100%"); // break; case 3: // $(".videoMonitor>div").css("width","220px").css("height","50%"); // $(".videoMonitor>div:last-child").css("width","100%") //break; case 4: $(".videoMonitor>div").css("width","220px").css("height","50%"); break; default: $(".videoMonitor>div").css("width","220px").css("height","50%"); break; } } function getSchoolInfoDiv(obj){ var station=obj["name"]; var scoreInsideManage=0; var scoreOutsideManage=0; var scoreRiskManage=0; var scoreLawEducation=0; var scoreEmcManage=0; var scoreBonus=0; for(var i=0;i

校园名称: ${obj["name"]}

校园地址: ${obj["address"]}

派出所: ${obj["borough"]}

警务区: ${obj["detachment"]}

校长: ${obj["legal_person"]}(${obj["legal_person_phone"]})

综治专干:

职工数量: 0

学生数量: 0

安保人员: 0

校车数量: 0

登记车辆: 0

校外监控: 0

校内监控: 0

安装率: 80%

校内安全

${scoreInsideManage}

周边安全

${scoreOutsideManage}

隐患整改

${scoreRiskManage}

法治宣传

${scoreInsideManage}

应急处置

${scoreEmcManage}

加分项

${scoreBonus}

` } function getGradeValue(score_total){ var value=0; if(score_total<=20){ value=1; }else if(score_total<=40){ value=2; }else if(score_total<=60){ value=3; }else if(score_total<=80){ value=4; }else if(score_total<=100){ value=5; } return value; } function showBoroughInfo(obj){ var borough=obj["borough"]; var div=``; for(var i=0;i

派出所: ${boroughInfoArr[i]["legal_person"]}(${boroughInfoArr[i]["phone"]})

派出所地址: ${boroughInfoArr[i]["address"]}

`; } } $(".policeBaseInfo").html(div); getEntranceStaffSign(obj).then(res=>{ var code=res["data"]["code"]; if(code==0){ var data=res["data"]["data"]; showEntranceStaffSign(data) } }) } export { showSchoolBaseInfo, getSchoolInfoDiv, getGradeValue, getIframeUrl, showStationIpcRightVideo, }