Browse Source

首页感知事件

wangqin
zhoule 7 months ago
parent
commit
95f8c1c28d
  1. 36
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js

36
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js

@ -371,24 +371,24 @@ export function getEventTopicList(eventType, options = {}) {
*/
export function getPerceiveEventList(data = {}, options = {}) {
return new Promise((resolve, reject) => {
const completeTime = moment().add(1, "d").format("YYYY-MM-DD");
const startTime = moment().add(-7, "d").format("YYYY-MM-DD");
data.startTime = startTime;
data.completeTime = completeTime;
const { endStakeMark, startStakeMark } = options;
if (endStakeMark) {
let formatEndStakeMark = `K${padZero(endStakeMark[0])}+${padZero(
endStakeMark[1]
)}`;
data.endStakeMark = formatEndStakeMark;
}
if (startStakeMark) {
let formatStartStakeMark = `K${padZero(startStakeMark[0])}+${padZero(
startStakeMark[1]
)}`;
data.startStakeMark = formatStartStakeMark;
}
// const completeTime = moment().add(1, "d").format("YYYY-MM-DD");
// const startTime = moment().add(-7, "d").format("YYYY-MM-DD");
// data.startTime = startTime;
// data.completeTime = completeTime;
// const { endStakeMark, startStakeMark } = options;
// if (endStakeMark) {
// let formatEndStakeMark = `K${padZero(endStakeMark[0])}+${padZero(
// endStakeMark[1]
// )}`;
// data.endStakeMark = formatEndStakeMark;
// }
// if (startStakeMark) {
// let formatStartStakeMark = `K${padZero(startStakeMark[0])}+${padZero(
// startStakeMark[1]
// )}`;
// data.startStakeMark = formatStartStakeMark;
// }
request({
url: `/perceivedEvents/warning/warningList`,

Loading…
Cancel
Save