import { layuiObj } from "../index.js"; import { stationurl } from "../../../../public/js/url.js"; import {getCurrData} from "../../../../public/js/timestamp.js" function getEntranceStaffSign(data){ var obj={ "brigade":data["brigade"], "borough":data["borough"], "detachment":data["detachment"], "station":data["name"], "start":getCurrData()+" 00:00:00", "end":getCurrData()+" 23:59:59", } var loginurl=stationurl+"/firectrl/client/sensor/entrance/staff_sign_list"; return axios({ method: 'post', url:loginurl, data: obj }) } function showEntranceStaffSign(data){ var tempData=[]; var tempObj={}; if(data!=null){ for(var i=0;i
`, success: function(layero){ layuiObj.layuitable.render({ elem:'#clockInfTable', data:clockInfo, cols: [[ {field:'persionName', width:"24%", title: '姓名'}, {field:'post', width:"24%", title: '职务'}, {field:'time', width:"50%", title: '打卡时间'}, ]], limit:Number.MAX_VALUE // 数据表格默认全部显示 }); } }); } export { getEntranceStaffSign, showEntranceStaffSign, openClockInfo }