feat: 看板IMS会话数

This commit is contained in:
TsMask
2024-01-31 12:11:20 +08:00
parent 1b41e245a2
commit f8e6d6060c
2 changed files with 44 additions and 20 deletions

View File

@@ -64,6 +64,9 @@ export const graphNodeStateNum = computed(() => {
return [normal, abnormal];
});
/**网元状态请求标记 */
export const neStateRequestMap = ref<Map<string, boolean>>(new Map());
/**neStateParse 网元状态 数据解析 */
export function neStateParse(neType: string, data: Record<string, any>) {
const { combos, edges, nodes } = graphState.data;
@@ -151,4 +154,7 @@ export function neStateParse(neType: string, data: Record<string, any>) {
graphG6.value.setItemState(edge.id, 'line-path', neT.neState.online);
}
}
// 请求标记复位
neStateRequestMap.value.set(neType, false);
}