This commit is contained in:
yangsy
2025-08-22 01:22:14 +08:00
parent 4ea5bfa515
commit 0fd9f17366
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import type { NdmDeviceAlarmLogResultVO } from '@/apis/models';
import { defaultExportByTemplate, postNdmDeviceAlarmLogPage } from '@/apis/requests';
import { ndmDeviceAlarmLogDefaultExportByTemplate, postNdmDeviceAlarmLogPage } from '@/apis/requests';
import { JAVA_INTEGER_MAX_VALUE } from '@/constants';
import { DeviceType, DeviceTypeName, type DeviceTypeCode } from '@/enums/device-type';
import { useStationStore } from '@/stores/station';
@@ -137,7 +137,7 @@ const onClickQuery = () => getAlarmList();
const { mutate: downloadTableData, isPending: isDownloading } = useMutation({
mutationFn: async () => {
const data = await defaultExportByTemplate('', {
const data = await ndmDeviceAlarmLogDefaultExportByTemplate('', {
model: {},
extra: {
stationCode_in: [...searchFields.stationCode_in],
@@ -148,8 +148,8 @@ const { mutate: downloadTableData, isPending: isDownloading } = useMutation({
},
current: 1,
size: JAVA_INTEGER_MAX_VALUE,
order: 'descending',
sort: 'id',
order: 'descending',
});
return data;
},