|
@ -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`, |
|
|