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 @@