Browse Source

事件列表-告警事件

wangqin
zhoule 10 months ago
parent
commit
502802feaf
  1. 34
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue

34
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue

@ -128,7 +128,7 @@ export default {
this.searchData.eventState = activeName == "-1" ? null : activeName; this.searchData.eventState = activeName == "-1" ? null : activeName;
this.getData(); this.getData(activeName);
}, },
getStateCardBind(item) { getStateCardBind(item) {
const { state, textColor, text } = tabMap[this.activeName]; const { state, textColor, text } = tabMap[this.activeName];
@ -140,15 +140,29 @@ export default {
}; };
}, },
getData() { getData() {
request({
url: `/dc/system/event/list`, if (this.activeName == '-1') {
method: "get", request({
params: this.searchData, url: `/perceivedEvents/warning/perceivedEventsList`,
}).then((result) => { method: "post",
if (result.code != 200) return Message.error(result?.msg); data: this.searchData,
this.data = result.rows; }).then((result) => {
this.total = result.total; if (result.code != 200) return Message.error(result?.msg);
}); this.data = result.rows;
this.total = result.total;
});
} else {
request({
url: `/dc/system/event/list`,
method: "get",
params: this.searchData,
}).then((result) => {
if (result.code != 200) return Message.error(result?.msg);
this.data = result.rows;
this.total = result.total;
});
}
// request({ // request({
// url: `/dc/system/event/count`, // url: `/dc/system/event/count`,

Loading…
Cancel
Save