import { selectSchoolPolicemanSummary,schoolClockInList } from "./index.js"; import { showSchoolPolicemanSummaryInfo } from "./showPoliceSummary.js"; import { exportSchoolExcel,exportPoliceExcel,exportStationClockExcel } 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 selectSchoolPolicemanSummary(obj) showSchoolPolicemanSummaryInfo(); }) //导出学校数据 $(".exportSchoolHistoryBtn").on('click',function(){ exportSchoolExcel(schoolClockInList); }) //导出派出所数据 $(".exportPoliceHistoryBtn").on('click',function(){ exportPoliceExcel(schoolClockInList); }) //导出学校打卡报表 $(".exportStationClockBtn").on('click',function(){ exportStationClockExcel(schoolClockInList); }) } export {addEvent}