30 lines
958 B
JavaScript
30 lines
958 B
JavaScript
|
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}
|