style: 修改kpi表头提示,关闭排序
This commit is contained in:
@@ -247,7 +247,6 @@ const statsColumns: TableColumnType<any>[] = [
|
||||
dataIndex: 'avg',
|
||||
key: 'avg',
|
||||
width: '24%',
|
||||
sorter: (a: any, b: any) => a.avg - b.avg,
|
||||
sortDirections: ['ascend', 'descend'],
|
||||
},
|
||||
{
|
||||
@@ -255,7 +254,6 @@ const statsColumns: TableColumnType<any>[] = [
|
||||
dataIndex: 'max',
|
||||
key: 'max',
|
||||
width: '17%',
|
||||
sorter: (a: any, b: any) => a.max - b.max, // 添加排序函数
|
||||
sortDirections: ['ascend', 'descend'],
|
||||
},
|
||||
{
|
||||
@@ -263,7 +261,6 @@ const statsColumns: TableColumnType<any>[] = [
|
||||
dataIndex: 'min',
|
||||
key: 'min',
|
||||
width: '17%',
|
||||
sorter: (a: any, b: any) => a.min - b.min, // 添加排序函数
|
||||
sortDirections: ['ascend', 'descend'],
|
||||
},
|
||||
];
|
||||
@@ -453,7 +450,8 @@ function fnGetList() {
|
||||
);
|
||||
|
||||
// 计算平均值
|
||||
const avg = values.length > 0 ? Number((total / values.length).toFixed(2)) : 0;
|
||||
const avg =
|
||||
values.length > 0 ? Number((total / values.length).toFixed(2)) : 0;
|
||||
kpiStats.value.push({
|
||||
kpiId: columns.key,
|
||||
title: columns.title,
|
||||
@@ -1123,7 +1121,9 @@ onBeforeUnmount(() => {
|
||||
{{ t('views.perfManage.kpiOverView.totalValue') }}
|
||||
<a-tooltip placement="bottom">
|
||||
<template #title>
|
||||
<span>Sum within Time Range</span>
|
||||
<span>
|
||||
{{ t('views.perfManage.kpiOverView.totalValueTip') }}
|
||||
</span>
|
||||
</template>
|
||||
<InfoCircleOutlined />
|
||||
</a-tooltip>
|
||||
@@ -1134,7 +1134,9 @@ onBeforeUnmount(() => {
|
||||
{{ t('views.perfManage.kpiOverView.avgValue') }}
|
||||
<a-tooltip placement="bottom">
|
||||
<template #title>
|
||||
<span>Average value over the time range</span>
|
||||
<span>
|
||||
{{ t('views.perfManage.kpiOverView.avgValueTip') }}
|
||||
</span>
|
||||
</template>
|
||||
<InfoCircleOutlined />
|
||||
</a-tooltip>
|
||||
@@ -1145,7 +1147,9 @@ onBeforeUnmount(() => {
|
||||
{{ t('views.perfManage.kpiOverView.maxValue') }}
|
||||
<a-tooltip placement="bottom">
|
||||
<template #title>
|
||||
<span>Maximum value in time range</span>
|
||||
<span>
|
||||
{{ t('views.perfManage.kpiOverView.maxValueTip') }}
|
||||
</span>
|
||||
</template>
|
||||
<InfoCircleOutlined />
|
||||
</a-tooltip>
|
||||
@@ -1156,7 +1160,9 @@ onBeforeUnmount(() => {
|
||||
{{ t('views.perfManage.kpiOverView.minValue') }}
|
||||
<a-tooltip placement="bottom">
|
||||
<template #title>
|
||||
<span>Minimum value in the time range</span>
|
||||
<span>
|
||||
{{ t('views.perfManage.kpiOverView.minValueTip') }}
|
||||
</span>
|
||||
</template>
|
||||
<InfoCircleOutlined />
|
||||
</a-tooltip>
|
||||
|
||||
Reference in New Issue
Block a user