fix: 看板拓扑点击改变资源显示

This commit is contained in:
TsMask
2024-01-25 16:32:15 +08:00
parent a85579f730
commit 31651f8786
4 changed files with 221 additions and 208 deletions

View File

@@ -0,0 +1,26 @@
import { computed, reactive, ref } from 'vue';
/**图状态 */
export const graphState = reactive<Record<string, any>>({
/**当前图组名 */
group: '5GC System Architecture2',
/**图数据 */
data: {
combos: [],
edges: [],
nodes: [],
},
});
/**图点击选择 */
export const graphNodeClickID = ref<string>('UPF');
/**图节点网元信息状态 */
export const graphNodeState = computed(() =>
graphState.data.nodes.map((item: any) => ({
id: item.id,
label: item.label,
neInfo: item.neInfo,
neState: item.neState,
}))
);