anxiao_web/pages/cmddispatch/js/showPushButtonInfo.js

26 lines
636 B
JavaScript
Raw Normal View History

2024-07-24 09:22:32 +08:00
import { getPushButtonInfo } from "./orgApi/getPushButtonInfo.js";
import { drawPushButtonMarker } from "./marker/pushButtonMarker.js";
var schoolPushButtonList=[];
function showPushButtonInfo(){
getPushButtonInfo().then(res=>{
var code=res["data"]["code"];
if(code==0){
var data=res["data"]["data"];
if(data!=null){
schoolPushButtonList=res["data"]["data"];
}
}
$(".pushbutton_number").html(schoolPushButtonList.length);
//画marker
drawPushButtonMarker();
})
}
export {
showPushButtonInfo,
schoolPushButtonList
}