refactor(components): extract component helpers

This commit is contained in:
yangsy
2025-11-10 20:28:09 +08:00
parent f42bac77d9
commit 5aed01eb96
8 changed files with 127 additions and 126 deletions

View File

@@ -2,12 +2,12 @@
import type { NdmSwitchDiagInfo, NdmSwitchPortInfo } from '@/apis/domains';
import type { NdmSwitchResultVO, PageParams } from '@/apis/models';
import { postSnmpLogPage } from '@/apis/requests';
import { getPortStatusVal, transformPortSpeed } from '@/components/helper';
import { useMutation } from '@tanstack/vue-query';
import dayjs from 'dayjs';
import destr from 'destr';
import { NButton, NCard, NDataTable, NModal, type DataTableColumns, type DataTableRowData, type DatePickerProps, type PaginationProps } from 'naive-ui';
import { h, reactive, ref, toRefs } from 'vue';
import { getPortStatusVal, transformPortSpeed } from '../../helper';
const props = defineProps<{
stationCode: string;