fix: 修改j网元信息接口

This commit is contained in:
TsMask
2024-02-29 20:55:29 +08:00
parent c2cc81fccf
commit 7dedbb927c
6 changed files with 53 additions and 39 deletions

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { onMounted, ref, onBeforeUnmount } from 'vue';
import { onMounted, ref } from 'vue';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { listNe } from '@/api/ne/ne';
import { listAllNeInfo } from '@/api/ne/neInfo';
import { message } from 'ant-design-vue/lib';
import { getGraphData } from '@/api/monitor/topology';
import { Graph, GraphData, Tooltip } from '@antv/g6';
@@ -149,7 +149,7 @@ function handleRanderGraph(
function fnGraphDataLoad(reload: boolean = false) {
Promise.all([
getGraphData(graphState.group),
listNe({
listAllNeInfo({
bandStatus: false,
}),
])

View File

@@ -3,7 +3,7 @@ import { reactive, onMounted, ref, onBeforeUnmount } from 'vue';
import { PageContainer } from 'antdv-pro-layout';
import useI18n from '@/hooks/useI18n';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { listNe, stateNe } from '@/api/ne/ne';
import { listAllNeInfo, stateNeInfo } from '@/api/ne/neInfo';
import { message } from 'ant-design-vue/lib';
import { randerGroph, switchLayout } from './graph';
import { parseDateToStr } from '@/utils/date-utils';
@@ -36,7 +36,7 @@ async function fnGetState() {
for (const node of graphG6Data.nodes) {
const ne = node.info;
// if (ne.neType === 'OMC') continue;
const result = await stateNe(ne.neType, ne.neId);
const result = await stateNeInfo(ne.neType, ne.neId);
if (result.code === RESULT_CODE_SUCCESS) {
ne.serverState = result.data;
ne.serverState.refreshTime = parseDateToStr(
@@ -53,7 +53,7 @@ async function fnGetState() {
/**查询全部网元数据列表 */
function fnGetList(refresh: boolean = false) {
listNe({
listAllNeInfo({
bandStatus: false,
})
.then(res => {

View File

@@ -5,7 +5,7 @@ import {
RESULT_CODE_ERROR,
RESULT_CODE_SUCCESS,
} from '@/constants/result-constants';
import { listNe } from '@/api/ne/ne';
import { listAllNeInfo } from '@/api/ne/neInfo';
import { message } from 'ant-design-vue/lib';
import { getGraphData } from '@/api/monitor/topology';
import { parseDateToStr } from '@/utils/date-utils';
@@ -240,7 +240,7 @@ function handleRanderGraph(
function fnGraphDataLoad(reload: boolean = false) {
Promise.all([
getGraphData(graphState.group),
listNe({
listAllNeInfo({
bandStatus: false,
}),
])

View File

@@ -4,7 +4,7 @@ import { message, Modal } from 'ant-design-vue/lib';
import { ColumnsType } from 'ant-design-vue/lib/table';
import { PageContainer } from 'antdv-pro-layout';
import { dumpStart, dumpStop, traceUPF } from '@/api/traceManage/pcap';
import { listNe } from '@/api/ne/ne';
import { listAllNeInfo } from '@/api/ne/neInfo';
import { getNeFile } from '@/api/tool/neFile';
import saveAs from 'file-saver';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
@@ -127,7 +127,7 @@ function fnTableSelectedRowKeys(keys: (string | number)[]) {
function fnGetList() {
if (tableState.loading) return;
tableState.loading = true;
listNe({
listAllNeInfo({
bandStatus: false,
}).then(res => {
if (