ref: 重构黄金指标数据列表,图表切换显示优化
This commit is contained in:
@@ -82,19 +82,11 @@ export async function listgoldData(query: Record<string, any>) {
|
|||||||
* @param query 查询参数
|
* @param query 查询参数
|
||||||
* @returns object
|
* @returns object
|
||||||
*/
|
*/
|
||||||
export async function goldData(query: Record<string, any>) {
|
export async function listKPIData(query: Record<string, any>) {
|
||||||
const result = await request({
|
const result = await request({
|
||||||
url: `/neData/kpi/data`,
|
url: `/neData/kpi/data`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: query,
|
||||||
neType: query.neType[0],
|
|
||||||
neId: query.neType[1],
|
|
||||||
startTime: query.beginTime,
|
|
||||||
endTime: query.endTime,
|
|
||||||
interval: query.particle,
|
|
||||||
sortField: query.sortField,
|
|
||||||
sortOrder: query.sortOrder,
|
|
||||||
},
|
|
||||||
timeout: 60_000,
|
timeout: 60_000,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -102,14 +94,14 @@ export async function goldData(query: Record<string, any>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询网元可用黄金指标
|
* 查询黄金指标数据kpi.id转换title
|
||||||
* @param neType 网元类型
|
* @param neType 网元类型
|
||||||
* @returns object
|
* @returns object
|
||||||
*/
|
*/
|
||||||
export async function getGoldTitleByNE(neType: string) {
|
export async function getKPITitle(neType: string) {
|
||||||
// 发起请求
|
// 发起请求
|
||||||
const result = await request({
|
const result = await request({
|
||||||
url: `/ne/kpi/title`,
|
url: `/neData/kpi/title`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: { neType },
|
params: { neType },
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
newChart.dispose();
|
newChart?.dispose();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -708,14 +708,14 @@ export default {
|
|||||||
value:'Value',
|
value:'Value',
|
||||||
startTime:'Start Time',
|
startTime:'Start Time',
|
||||||
endTime:'End Time',
|
endTime:'End Time',
|
||||||
particle: 'Granularity',
|
interval: 'Granularity',
|
||||||
timeFrame: 'Time Range',
|
timeFrame: 'Time Range',
|
||||||
nullTip:'There are no statistical data within this time range',
|
nullTip:'There are no statistical data within this time range',
|
||||||
kpiTitle:'KPI Statistics Chart',
|
kpiChartTitle:'KPI Statistics Chart',
|
||||||
allData:'Complete Data',
|
kpiTableTitle:'KPI Statistics Data',
|
||||||
makeLine:'Statistical Chart',
|
|
||||||
time:'Time',
|
time:'Time',
|
||||||
exportSure:'Confirm whether to export all statistical data',
|
exportSure:'Confirm whether to export all statistical data',
|
||||||
|
exportEmpty: "Export data is empty",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
traceManage: {
|
traceManage: {
|
||||||
|
|||||||
@@ -708,14 +708,14 @@ export default {
|
|||||||
value:'值',
|
value:'值',
|
||||||
startTime:'开始时间',
|
startTime:'开始时间',
|
||||||
endTime:'结束时间',
|
endTime:'结束时间',
|
||||||
particle:'颗粒度',
|
interval:'颗粒度',
|
||||||
timeFrame:'时间范围',
|
timeFrame:'时间范围',
|
||||||
nullTip:'此时间范围内没有统计数据',
|
nullTip:'此时间范围内没有统计数据',
|
||||||
kpiTitle:'KPI统计图表',
|
kpiChartTitle:'KPI统计图表',
|
||||||
allData:'完整统计数据',
|
kpiTableTitle:'KPI统计数据',
|
||||||
makeLine:'统计图',
|
|
||||||
time:'时间',
|
time:'时间',
|
||||||
exportSure:'确认是否导出全部统计数据',
|
exportSure:'确认是否导出全部统计数据',
|
||||||
|
exportEmpty: "导出数据为空",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
traceManage: {
|
traceManage: {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user