diff --git a/src/api/perfManage/goldTarget.ts b/src/api/perfManage/goldTarget.ts index e35e1a3c..3ecf5af9 100644 --- a/src/api/perfManage/goldTarget.ts +++ b/src/api/perfManage/goldTarget.ts @@ -1,9 +1,9 @@ import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; import { request } from '@/plugins/http-fetch'; -import { parseDateToStr } from '@/utils/date-utils'; import { parseObjLineToHump } from '@/utils/parse-utils'; /** + * Todo 废弃 * 查询黄金指标数据 * @param query 查询参数 * @returns object @@ -110,6 +110,7 @@ export async function getKPITitle(neType: string) { } /** + * Todo 废弃 * 查询UPF上下行速率数据 * @param query 查询参数 * @returns object diff --git a/src/utils/parse-utils.ts b/src/utils/parse-utils.ts index b04a2cad..63dc1c68 100644 --- a/src/utils/parse-utils.ts +++ b/src/utils/parse-utils.ts @@ -122,9 +122,11 @@ export function parseSizeFromKBs(size: number): string { /** * 字节数转换速率 * @param sizeByte 数值大小 - * @returns + * @returns [值,单位] */ export function parseSizeFromKbs(sizeByte: number, timeInterval: number): any { + sizeByte = Number(sizeByte) || 0; + timeInterval = Number(timeInterval) || 1; // let realBit:any=((sizeByte * 8) / timeInterval); // if (realBit >= 0 && realBit < 1000) { // return [realBit.toFixed(2),' bits/sec']; diff --git a/src/views/dashboard/overview/components/UPFFlow/index.vue b/src/views/dashboard/overview/components/UPFFlow/index.vue index 9a010db1..903f7545 100644 --- a/src/views/dashboard/overview/components/UPFFlow/index.vue +++ b/src/views/dashboard/overview/components/UPFFlow/index.vue @@ -1,10 +1,6 @@ - + +