anxiao_web/pages/information/dailyInspection/js/event.js

30 lines
958 B
JavaScript
Raw Normal View History

2024-07-24 09:22:32 +08:00
import { selectSchoolCheckList,schoolCheckList } from "./index.js";
import { showSchoolCheckList } from "./showSchoolCheckList.js";
import { exportSchoolExcel,exportPoliceExcel } from "./exportTable.js";
function addEvent(){
//查询历史打卡
$(".selectClockHistoryBtn").on('click',async function(){
var obj={
start:$("#clockHistoryStart").val(),
end:$("#clockHistoryEnd").val(),
}
var borough=$("#mainContentC_boroughSelect").find("option:selected").val();
if(borough!="000"){
obj["borough"]=borough
}
await selectSchoolCheckList(obj)
showSchoolCheckList();
})
//导出学校数据
$(".exportSchoolHistoryBtn").on('click',function(){
exportSchoolExcel(schoolCheckList);
})
//导出派出所数据
$(".exportPoliceHistoryBtn").on('click',function(){
exportPoliceExcel(schoolCheckList);
})
}
export {addEvent}