|
|
@ -267,13 +267,13 @@ export function getProduct(productId) { |
|
|
|
* 交通事件 列表 根据类型获取 |
|
|
|
* @param {number} eventType |
|
|
|
*/ |
|
|
|
export function getEventTopicList(eventType) { |
|
|
|
export function getEventTopicList(eventType, options) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
if (!eventType) { |
|
|
|
Message.error(`事件加载失败!`); |
|
|
|
return reject(); |
|
|
|
} |
|
|
|
|
|
|
|
// console.log(options, "options xxxx");
|
|
|
|
request({ |
|
|
|
url: `/business/trafficIncidents/getEventList?eventType=${eventType}`, |
|
|
|
method: "post", |
|
|
@ -300,7 +300,7 @@ export function getEventTopicList(eventType) { |
|
|
|
export function getPerceiveEventList(data = {}) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
request({ |
|
|
|
url: `/perceivedEvents/warning/perceivedEventsList`, |
|
|
|
url: `/perceivedEvents/warning/warningList`, |
|
|
|
method: "POST", |
|
|
|
data: { ...data }, |
|
|
|
}) |
|
|
|