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

Loading…
Cancel
Save