feat: 网元主机操作Hooks包

This commit is contained in:
TsMask
2024-03-06 19:57:32 +08:00
parent 7339f45193
commit f5544c66bd
6 changed files with 55 additions and 144 deletions

View File

@@ -21,7 +21,7 @@ import {
nodeImageAnimateState,
nodeRectAnimateState,
} from '../topologyBuild/hooks/registerNode';
import useNeOptions from './useNeOptions';
import useNeOptions from '@/views/ne/neInfo/hooks/useNeOptions';
import useI18n from '@/hooks/useI18n';
import { OptionsType, WS } from '@/plugins/ws-websocket';
const { t } = useI18n();
@@ -97,7 +97,7 @@ const graphNodeMenu = new Menu({
> ${t('views.configManage.neManage.stop')}
</div>
<div id="log" style="cursor: pointer; margin-bottom: 4px;">
> ${t('views.monitor.topology.viewLogFile')}
> ${t('views.configManage.neManage.log')}
</div>
</div>
`;
@@ -450,7 +450,7 @@ function wsMessage(res: Record<string, any>) {
);
}
if (neS && notNeNodes.includes(edgeTarget)) {
graphG6.value.setItemState(edge.id, 'line-dash', neS.neState.online);
graphG6.value.setItemState(edge.id, 'line-dash', neS.neState.online);
}
if (neT && notNeNodes.includes(edgeSource)) {
graphG6.value.setItemState(edge.id, 'line-dash', neT.neState.online);