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