diff --git a/src/components/station-page/device-alarm-detail-modal.vue b/src/components/station-page/device-alarm-detail-modal.vue index 76f566c..a10ec7f 100644 --- a/src/components/station-page/device-alarm-detail-modal.vue +++ b/src/components/station-page/device-alarm-detail-modal.vue @@ -10,12 +10,11 @@ import { type StationAlarmCounts, } from '@/apis'; import { AlarmType, DeviceType, DeviceTypeCode, DeviceTypeName, FaultLevel, type DeviceTypeVal } from '@/enums'; -import { useQueryControlStore } from '@/stores'; import { downloadByData } from '@/utils'; import { useMutation } from '@tanstack/vue-query'; import dayjs from 'dayjs'; import { NButton, NCol, NDataTable, NModal, NRow, NSpace, NStatistic, NTag, type DataTableColumns, type DataTableProps, type DataTableRowData, type PaginationProps } from 'naive-ui'; -import { computed, h, reactive, ref, toRefs, watch } from 'vue'; +import { computed, h, reactive, ref, toRefs } from 'vue'; import { renderAlarmDateCell, renderDeviceTypeCell, renderAlarmTypeCell, renderFaultLevelCell } from '../helper'; interface Props { @@ -27,17 +26,6 @@ const props = defineProps(); const { station, stationAlarmCounts } = toRefs(props); const show = defineModel('show', { required: true, default: false }); -watch(show, (newValue) => { - const queryControlStore = useQueryControlStore(); - if (newValue) { - console.log('对话框打开,停止轮询'); - queryControlStore.disablePolling(); - } else { - console.log('对话框关闭,开启轮询'); - queryControlStore.enablePolling(); - } -}); - const alarmCount = computed(() => stationAlarmCounts.value?.unclassified ?? 0); const classifiedAlarmCounts = computed(() => { diff --git a/src/components/station-page/device-params-config-modal.vue b/src/components/station-page/device-params-config-modal.vue index cb5c04e..3ce60ee 100644 --- a/src/components/station-page/device-params-config-modal.vue +++ b/src/components/station-page/device-params-config-modal.vue @@ -69,10 +69,9 @@ const getItemSuffix = (name: string) => {