style: 页面样式调整
This commit is contained in:
@@ -24,8 +24,9 @@ const graphG6Data = reactive<Record<string, any>>({
|
||||
|
||||
/**查询全部网元数据列表 */
|
||||
function fnRanderData() {
|
||||
if (!graphG6Dom.value) return;
|
||||
if (!graphG6Dom.value) return false;
|
||||
graphG6.value = randerGroph(t, graphG6Dom.value, graphG6Data);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**网元状态调度器 */
|
||||
@@ -140,17 +141,21 @@ function fnGetList(refresh: boolean = false) {
|
||||
}
|
||||
})
|
||||
.then(hasNeList => {
|
||||
if (!hasNeList) return;
|
||||
if (!hasNeList) return false;
|
||||
if (refresh) {
|
||||
// graphG6.value.get('canvas').set('localRefresh', true);
|
||||
graphG6.value.destroy();
|
||||
// graphG6.value.clear();
|
||||
}
|
||||
fnRanderData();
|
||||
fnGetState();
|
||||
interval10s.value = setInterval(() => {
|
||||
fnGetState(); // 获取网元状态
|
||||
}, 10_000);
|
||||
return fnRanderData();
|
||||
})
|
||||
.then(randerGroph => {
|
||||
if (!randerGroph) return;
|
||||
fnGetState().finally(() => {
|
||||
interval10s.value = setInterval(() => {
|
||||
fnGetState(); // 获取网元状态
|
||||
}, 10_000);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user