diff --git a/src/store/modules/neinfo.ts b/src/store/modules/neinfo.ts index 7c268afb..5b7f8314 100644 --- a/src/store/modules/neinfo.ts +++ b/src/store/modules/neinfo.ts @@ -1,6 +1,6 @@ import { defineStore } from 'pinia'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; -import { getNelistAll } from '@/api/configManage/neManage'; +import { listAllNeInfo } from '@/api/ne/neInfo'; import { parseDataToOptions } from '@/utils/parse-tree-utils'; import { getNeTraceInterfaceAll } from '@/api/traceManage/task'; import { getNePerformanceList } from '@/api/perfManage/taskManage'; @@ -58,10 +58,12 @@ const useNeInfoStore = defineStore('neinfo', { if (this.neList.length > 0) { return { code: 1, data: this.neList, msg: 'success' }; } - const res = await getNelistAll(); + const res = await listAllNeInfo({ + bandStatus: false, + }); if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) { // 原始列表 - this.neList = res.data; + this.neList = JSON.parse(JSON.stringify(res.data)); // 转级联数据 const options = parseDataToOptions(