Browse Source

事件列表-告警事件

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

16
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.getData();
this.getData(activeName);
},
getStateCardBind(item) {
const { state, textColor, text } = tabMap[this.activeName];
@ -140,6 +140,18 @@ export default {
};
},
getData() {
if (this.activeName == '-1') {
request({
url: `/perceivedEvents/warning/perceivedEventsList`,
method: "post",
data: this.searchData,
}).then((result) => {
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",
@ -149,6 +161,8 @@ export default {
this.data = result.rows;
this.total = result.total;
});
}
// request({
// url: `/dc/system/event/count`,

Loading…
Cancel
Save