From 48f8f13bf33393eeb8ab5daccd796dbdf79b667a Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 18 Apr 2025 15:47:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E4=BF=A1=E4=BB=A4?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/neinfo.ts | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/store/modules/neinfo.ts b/src/store/modules/neinfo.ts index 16a2bcce..13bab5ee 100644 --- a/src/store/modules/neinfo.ts +++ b/src/store/modules/neinfo.ts @@ -2,7 +2,6 @@ import { defineStore } from 'pinia'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; import { listAllNeInfo } from '@/api/ne/neInfo'; import { parseDataToOptions } from '@/utils/parse-tree-utils'; -import { getNeTraceInterfaceAll } from '@/api/trace/task'; import { getNePerformanceList } from '@/api/perfManage/taskManage'; /**网元信息类型 */ @@ -13,8 +12,6 @@ type NeInfo = { neCascaderOptions: Record[]; /**选择器单级父类型 */ neSelectOtions: Record[]; - /**跟踪接口列表 */ - traceInterfaceList: Record[]; /**性能测量数据集 */ perMeasurementList: Record[]; }; @@ -24,7 +21,6 @@ const useNeInfoStore = defineStore('neinfo', { neList: [], neCascaderOptions: [], neSelectOtions: [], - traceInterfaceList: [], perMeasurementList: [], }), getters: { @@ -79,24 +75,6 @@ const useNeInfoStore = defineStore('neinfo', { } return res; }, - // 刷新跟踪接口列表 - async fnRefreshNeTraceInterface() { - this.traceInterfaceList = []; - const res = await this.fnNeTraceInterface(); - return res; - }, - // 获取跟踪接口列表 - async fnNeTraceInterface() { - // 有数据不请求 - if (this.traceInterfaceList.length > 0) { - return { code: 1, data: this.traceInterfaceList, msg: 'success' }; - } - const res = await getNeTraceInterfaceAll(); - if (res.code === RESULT_CODE_SUCCESS) { - this.traceInterfaceList = res.data; - } - return res; - }, // 获取性能测量数据集列表 async fnNeTaskPerformance() { // 有数据不请求