fix: 看板用户活动乱序问题
This commit is contained in:
@@ -97,10 +97,7 @@ export function eventListParse(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 有数据进行排序
|
// 激活选中
|
||||||
if (eventData.value.length > 5) {
|
|
||||||
eventData.value.sort((a, b) => b.eTime - a.eTime);
|
|
||||||
}
|
|
||||||
if (eventData.value.length > 0) {
|
if (eventData.value.length > 0) {
|
||||||
eventId.value = eventData.value[0].eId;
|
eventId.value = eventData.value[0].eId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { RESULT_CODE_ERROR } from '@/constants/result-constants';
|
|||||||
import { OptionsType, WS } from '@/plugins/ws-websocket';
|
import { OptionsType, WS } from '@/plugins/ws-websocket';
|
||||||
import { onBeforeUnmount, ref } from 'vue';
|
import { onBeforeUnmount, ref } from 'vue';
|
||||||
import {
|
import {
|
||||||
|
eventData,
|
||||||
eventListParse,
|
eventListParse,
|
||||||
eventItemParseAndPush,
|
eventItemParseAndPush,
|
||||||
userActivityReset,
|
userActivityReset,
|
||||||
@@ -52,18 +53,21 @@ export default function useWS() {
|
|||||||
case 'amf_1010_001':
|
case 'amf_1010_001':
|
||||||
if (Array.isArray(data.rows)) {
|
if (Array.isArray(data.rows)) {
|
||||||
eventListParse('amf_ue', data);
|
eventListParse('amf_ue', data);
|
||||||
|
eventData.value.sort((a, b) => b.eTime - a.eTime);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
// MME_UE会话事件
|
// MME_UE会话事件
|
||||||
case 'mme_1011_001':
|
case 'mme_1011_001':
|
||||||
if (Array.isArray(data.rows)) {
|
if (Array.isArray(data.rows)) {
|
||||||
eventListParse('mme_ue', data);
|
eventListParse('mme_ue', data);
|
||||||
|
eventData.value.sort((a, b) => b.eTime - a.eTime);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
// IMS_CDR会话事件
|
// IMS_CDR会话事件
|
||||||
case 'ims_1005_001':
|
case 'ims_1005_001':
|
||||||
if (Array.isArray(data.rows)) {
|
if (Array.isArray(data.rows)) {
|
||||||
eventListParse('ims_cdr', data);
|
eventListParse('ims_cdr', data);
|
||||||
|
eventData.value.sort((a, b) => b.eTime - a.eTime);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
//UPF-总流量数
|
//UPF-总流量数
|
||||||
|
|||||||
Reference in New Issue
Block a user