diff --git a/src/views/perfManage/kpiOverView/index.vue b/src/views/perfManage/kpiOverView/index.vue
index c76bdb5b..660c355d 100644
--- a/src/views/perfManage/kpiOverView/index.vue
+++ b/src/views/perfManage/kpiOverView/index.vue
@@ -3,30 +3,17 @@ import { ref, onMounted, onUnmounted, nextTick, computed } from 'vue';
import * as echarts from 'echarts/core';
import { LegendComponent } from 'echarts/components';
import { LineChart, BarChart } from 'echarts/charts';
-import {
- GridComponent,
- TooltipComponent,
- TitleComponent,
-} from 'echarts/components';
+import { GridComponent, TooltipComponent, TitleComponent, } from 'echarts/components';
import { CanvasRenderer } from 'echarts/renderers';
import { getKPITitle, listKPIData } from '@/api/perfManage/goldTarget';
import useI18n from '@/hooks/useI18n';
import { message } from 'ant-design-vue';
-import {
- RESULT_CODE_ERROR,
- RESULT_CODE_SUCCESS,
-} from '@/constants/result-constants';
+import { RESULT_CODE_ERROR, RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import type { Dayjs } from 'dayjs';
import dayjs from 'dayjs';
import { OptionsType, WS } from '@/plugins/ws-websocket';
import { generateColorRGBA } from '@/utils/generate-utils';
-import {
- BarChartOutlined,
- LineChartOutlined,
- UnorderedListOutlined,
- DownOutlined,
- MoreOutlined,
-} from '@ant-design/icons-vue';
+import { BarChartOutlined, LineChartOutlined, UnorderedListOutlined, DownOutlined, MoreOutlined } from '@ant-design/icons-vue';
// 在这里定义 ChartDataItem 接口
interface ChartDataItem {
@@ -315,9 +302,9 @@ const updateChart = () => {
data:
chartData.value.length > 0
? chartData.value.map(item => {
- // 将时间戳转换为包含时分秒的格式
- return dayjs(Number(item.date)).format('YYYY-MM-DD HH:mm:ss');
- })
+ // 将时间戳转换为包含时分秒的格式
+ return dayjs(Number(item.date)).format('YYYY-MM-DD HH:mm:ss');
+ })
: [''],
axisLabel: {
formatter: (value: string) => {
@@ -325,7 +312,7 @@ const updateChart = () => {
return dayjs(value).format('YYYY-MM-DD HH:mm:ss');
},
rotate: 0,
- interval: 'auto', // 自动计算显示间隔
+ interval: 'auto', // 自动计算显示��隔
align: 'right',
},
},
@@ -337,7 +324,7 @@ const updateChart = () => {
},
// 添加自动计算的分割段数
splitNumber: 5,
- // 添加自动计算的最小/最大值围
+ // 添加自动计算的最小/最大值范围
scale: true,
},
series: series, //配置数据
@@ -511,7 +498,7 @@ const fetchSpecificKPI = async () => {
if (validSavedKPIs.length > 0) {
selectedKPIs.value = validSavedKPIs;
} else {
- // 如果没有有效的保存选择,则默认选择��要指标
+ // 如果没有有效的保存选择,则默认选择其他指标
selectedKPIs.value = Object.values(TARGET_KPI_IDS).flat();
}
} else {
@@ -653,26 +640,24 @@ const handleSecondaryKPIChange = (kpiId: string, checked: boolean) => {
{{
chartType === 'line'
- ? t('views.perfManage.kpiOverView.changeLine')
- : t('views.perfManage.kpiOverView.changeBar')
+ ? t('views.perfManage.kpiOverView.changeBar')
+ : t('views.perfManage.kpiOverView.changeLine')
}}