anxiao_web/pages/newIndex/js/orgApi/getAlarmEventDiff.js

23 lines
730 B
JavaScript
Raw Normal View History

2024-07-24 09:22:32 +08:00
import { stationurl,brigade } from "../../../../public/js/url.js";
import { timestampFormatTime } from "../../../../public/js/timestamp.js";
function getAlarmEventDiff(){
var endTimestamp=new Date().getTime();
var startTimestamp=endTimestamp-1*24*3600*1000;
var startTime=timestampFormatTime(startTimestamp)
var endTime=timestampFormatTime(endTimestamp)
var data={
"brigade":brigade,
"pageindex":0,
"pagesize":5000,
"start":startTime,
"end":endTime,
"readState":"unread"
}
var loginurl=stationurl+"/firectrl/skynet/facealarm/getlist";
return axios({
method: 'post',
url:loginurl,
data: data
})
}
export {getAlarmEventDiff}