style: 修改kpi表头提示,关闭排序

This commit is contained in:
TsMask
2025-01-20 20:22:02 +08:00
parent 721ec4a5da
commit 80b9cd83fb
6 changed files with 59 additions and 31 deletions

View File

@@ -815,7 +815,6 @@ const statsColumns: TableColumnType<KPIStats>[] = [
dataIndex: 'total',
key: 'total',
width: '12%',
sorter: (a: KPIStats, b: KPIStats) => a.total - b.total,
sortDirections: ['ascend', 'descend'],
},
{
@@ -823,7 +822,6 @@ const statsColumns: TableColumnType<KPIStats>[] = [
dataIndex: 'avg',
key: 'avg',
width: '12%',
sorter: (a: KPIStats, b: KPIStats) => a.avg - b.avg,
sortDirections: ['ascend', 'descend'],
},
{
@@ -831,7 +829,6 @@ const statsColumns: TableColumnType<KPIStats>[] = [
dataIndex: 'max',
key: 'max',
width: '12%',
sorter: (a: KPIStats, b: KPIStats) => a.max - b.max, // 添加排序函数
sortDirections: ['ascend', 'descend'],
},
{
@@ -839,7 +836,6 @@ const statsColumns: TableColumnType<KPIStats>[] = [
dataIndex: 'min',
key: 'min',
width: '12%',
sorter: (a: KPIStats, b: KPIStats) => a.min - b.min,
sortDirections: ['ascend', 'descend'],
},
];
@@ -930,7 +926,9 @@ const tableRowConfig = computed(() => {
{{ 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>
@@ -941,7 +939,9 @@ const tableRowConfig = computed(() => {
{{ 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>
@@ -952,7 +952,9 @@ const tableRowConfig = computed(() => {
{{ 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>
@@ -963,7 +965,9 @@ const tableRowConfig = computed(() => {
{{ 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>