23 lines
730 B
JavaScript
23 lines
730 B
JavaScript
|
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}
|