From a19427e95325913410035e9acf32e2005a2d23c9 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 18 Jul 2025 21:24:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=87=E6=A0=87=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96=E5=BC=82=E5=B8=B8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/perfManage/customData.ts | 2 +- src/api/perfManage/customTarget.ts | 26 +--- .../components/NeResources/index.vue | 142 ++++++++++-------- .../overview2/components/UPFFlow/index.vue | 5 +- src/views/perfManage/customTarget/index.vue | 5 +- src/views/perfManage/kpiCReport/index.vue | 21 +-- src/views/perfManage/overview/index.vue | 4 +- 7 files changed, 102 insertions(+), 103 deletions(-) diff --git a/src/api/perfManage/customData.ts b/src/api/perfManage/customData.ts index d398044b..f35fb27f 100644 --- a/src/api/perfManage/customData.ts +++ b/src/api/perfManage/customData.ts @@ -8,7 +8,7 @@ import { request } from '@/plugins/http-fetch'; export async function listCustomData(query: Record) { // 发起请求 const result = await request({ - url: `/pm/kpiC/report`, + url: `/neData/kpic/data`, method: 'GET', params: query, timeout: 60_000, diff --git a/src/api/perfManage/customTarget.ts b/src/api/perfManage/customTarget.ts index be5c6d05..5e6b5824 100644 --- a/src/api/perfManage/customTarget.ts +++ b/src/api/perfManage/customTarget.ts @@ -1,30 +1,16 @@ import { request } from '@/plugins/http-fetch'; /** - * 新 查询自定义指标 + * 查询自定义指标 * @param query 查询参数 * @returns object */ export async function listCustom(query?: Record) { - // 发起请求 - const result = await request({ - url: `/pm/kpiC/title/totalList`, + return await request({ + url: `/neData/kpic/title/list`, method: 'GET', params: query, }); - return result; -} - -/** - * 查询自定义指标详细 - * @param id 网元ID - * @returns object - */ -export async function getCustom(id: string | number) { - return request({ - url: `/pm/kpiC/title/${id}`, - method: 'GET', - }); } /** @@ -34,7 +20,7 @@ export async function getCustom(id: string | number) { */ export function addCustom(data: Record) { return request({ - url: `/pm/kpiC/title`, + url: `/neData/kpic/title`, method: 'POST', data: data, }); @@ -47,7 +33,7 @@ export function addCustom(data: Record) { */ export function updateCustom(data: Record) { return request({ - url: `/pm/kpiC/title/${data.id}`, + url: `/neData/kpic/title`, method: 'PUT', data: data, }); @@ -59,7 +45,7 @@ export function updateCustom(data: Record) { */ export async function delCustom(data: Record) { return request({ - url: `/pm/kpiC/title/${data.id}`, + url: `/neData/kpic/title?id=${data.id}`, method: 'DELETE', }); } diff --git a/src/views/dashboard/overview2/components/NeResources/index.vue b/src/views/dashboard/overview2/components/NeResources/index.vue index 669214c8..518325e6 100644 --- a/src/views/dashboard/overview2/components/NeResources/index.vue +++ b/src/views/dashboard/overview2/components/NeResources/index.vue @@ -1,7 +1,7 @@