import {stationInfoTableList,layuiObj} from "./index.js"; import { showSchoolBaseInfo } from "./schoolBaseInfo.js"; import { showMoveDeviceInfoWindow } from "./marker/moveDeviceMarker.js"; var schoolTreeData=[]; function createSchoolTree(){ schoolTreeData=[]; for(var i=0;i${text}` if (node.children){ s += `(${node.children.length})` } return s; }, animate:true, checkbox:true, onClick: function(node){//显示对应的设备总数跟在线 var id=node["id"]; switch(id){ case 3: var name=node["text"]; getNameSchoolInfo(name) break; case 4: showMoveDeviceInfoWindow(node) break; default: break; } } }) } function getNameSchoolInfo(name){ for(var i=0;i${name}` } return options; } //监听select变化 function schoolSearchSelectChange(){ layuiObj.layuiForm.on('select(orgboxSelect)', function(data){ var name=data["value"]; getNameSchoolInfo(name) }) } export { createSchoolTree, getSchoolOptions, getNameSchoolInfo }