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

@@ -224,7 +224,6 @@ const statsColumns: TableColumnType<any>[] = [
dataIndex: 'total',
key: 'total',
width: '24%',
sorter: (a: any, b: any) => a.total - b.total,
sortDirections: ['ascend', 'descend'],
},
{
@@ -232,7 +231,6 @@ const statsColumns: TableColumnType<any>[] = [
dataIndex: 'avg',
key: 'avg',
width: '24%',
sorter: (a: any, b: any) => a.avg - b.avg,
sortDirections: ['ascend', 'descend'],
},
{
@@ -240,7 +238,6 @@ const statsColumns: TableColumnType<any>[] = [
dataIndex: 'max',
key: 'max',
width: '17%',
sorter: (a: any, b: any) => a.max - b.max, // 添加排序函数
sortDirections: ['ascend', 'descend'],
},
{
@@ -248,7 +245,6 @@ const statsColumns: TableColumnType<any>[] = [
dataIndex: 'min',
key: 'min',
width: '17%',
sorter: (a: any, b: any) => a.min - b.min, // 添加排序函数
sortDirections: ['ascend', 'descend'],
},
];
@@ -1100,7 +1096,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>
@@ -1111,7 +1109,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>
@@ -1122,7 +1122,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>
@@ -1133,7 +1135,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>