diff --git a/.env.development b/.env.development index 86692991..82b71fc2 100644 --- a/.env.development +++ b/.env.development @@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network EMS" VITE_APP_CODE = "CN EMS" # 应用版本 -VITE_APP_VERSION = "2.2401.6" +VITE_APP_VERSION = "2.2402.5" # 接口基础URL地址-不带/后缀 VITE_API_BASE_URL = "/omc-api" diff --git a/.env.production b/.env.production index a547fde2..6903afa0 100644 --- a/.env.production +++ b/.env.production @@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network EMS" VITE_APP_CODE = "CN EMS" # 应用版本 -VITE_APP_VERSION = "2.240130.6" +VITE_APP_VERSION = "2.240201.5" # 接口基础URL地址-不带/后缀 VITE_API_BASE_URL = "/omc-api" diff --git a/src/api/perfManage/goldTarget.ts b/src/api/perfManage/goldTarget.ts index 0775618b..778fde99 100644 --- a/src/api/perfManage/goldTarget.ts +++ b/src/api/perfManage/goldTarget.ts @@ -82,19 +82,11 @@ export async function listgoldData(query: Record) { * @param query 查询参数 * @returns object */ -export async function goldData(query: Record) { +export async function listKPIData(query: Record) { const result = await request({ url: `/neData/kpi/data`, method: 'get', - params: { - neType: query.neType[0], - neId: query.neType[1], - startTime: query.beginTime, - endTime: query.endTime, - interval: query.particle, - sortField: query.sortField, - sortOrder: query.sortOrder, - }, + params: query, timeout: 60_000, }); @@ -102,14 +94,14 @@ export async function goldData(query: Record) { } /** - * 查询网元可用黄金指标 + * 查询黄金指标数据kpi.id转换title * @param neType 网元类型 * @returns object */ -export async function getGoldTitleByNE(neType: string) { +export async function getKPITitle(neType: string) { // 发起请求 const result = await request({ - url: `/ne/kpi/title`, + url: `/neData/kpi/title`, method: 'get', params: { neType }, }); diff --git a/src/components/ChartLine/index.vue b/src/components/ChartLine/index.vue index 1539da20..07e80573 100644 --- a/src/components/ChartLine/index.vue +++ b/src/components/ChartLine/index.vue @@ -252,7 +252,7 @@ onMounted(() => { }); onBeforeUnmount(() => { - newChart.dispose(); + newChart?.dispose(); }); diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index be91335c..d0eeb3c4 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -708,14 +708,14 @@ export default { value:'Value', startTime:'Start Time', endTime:'End Time', - particle: 'Granularity', + interval: 'Granularity', timeFrame: 'Time Range', nullTip:'There are no statistical data within this time range', - kpiTitle:'KPI Statistics Chart', - allData:'Complete Data', - makeLine:'Statistical Chart', + kpiChartTitle:'KPI Statistics Chart', + kpiTableTitle:'KPI Statistics Data', time:'Time', exportSure:'Confirm whether to export all statistical data', + exportEmpty: "Export data is empty", } }, traceManage: { diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index cafa2ddf..462d6cde 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -708,14 +708,14 @@ export default { value:'值', startTime:'开始时间', endTime:'结束时间', - particle:'颗粒度', + interval:'颗粒度', timeFrame:'时间范围', nullTip:'此时间范围内没有统计数据', - kpiTitle:'KPI统计图表', - allData:'完整统计数据', - makeLine:'统计图', + kpiChartTitle:'KPI统计图表', + kpiTableTitle:'KPI统计数据', time:'时间', exportSure:'确认是否导出全部统计数据', + exportEmpty: "导出数据为空", } }, traceManage: { diff --git a/src/views/perfManage/goldTarget/index.vue b/src/views/perfManage/goldTarget/index.vue index 4430abea..ed29770c 100644 --- a/src/views/perfManage/goldTarget/index.vue +++ b/src/views/perfManage/goldTarget/index.vue @@ -1,35 +1,99 @@