fix:错误日志 bug修复

pull/47/head
dtsz 2023-03-23 12:41:44 +08:00
parent e6485be5a7
commit 7ff037a390
1 changed files with 4 additions and 4 deletions

View File

@ -159,7 +159,7 @@ import { DICT_TYPE, getDictOptions } from '@/utils/dict'
import download from '@/utils/download' import download from '@/utils/download'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import * as ApiErrorLogApi from '@/api/infra/apiErrorLog' import * as ApiErrorLogApi from '@/api/infra/apiErrorLog'
import ApiErrorLogDetail from './detail.vue' import ApiErrorLogDetail from './ApiErrorLogDetail.vue'
import { InfraApiErrorLogProcessStatusEnum } from '@/utils/constants' import { InfraApiErrorLogProcessStatusEnum } from '@/utils/constants'
const message = useMessage() // const message = useMessage() //
@ -183,7 +183,7 @@ const exportLoading = ref(false) // 导出的加载中
const getList = async () => { const getList = async () => {
loading.value = true loading.value = true
try { try {
const data = await ApiErrorLogApi.getApiErrorLogPageApi(queryParams) const data = await ApiErrorLogApi.getApiErrorLogPage(queryParams)
list.value = data.list list.value = data.list
total.value = data.total total.value = data.total
} finally { } finally {
@ -214,7 +214,7 @@ const handleProcessClick = async (processStatus: number, type: string, id: numbe
// //
await message.confirm('确认标记为' + type + '?') await message.confirm('确认标记为' + type + '?')
// //
await ApiErrorLogApi.updateApiErrorLogPageApi(id, processStatus) await ApiErrorLogApi.updateApiErrorLogPage(id, processStatus)
await message.success(type) await message.success(type)
// //
await getList() await getList()
@ -228,7 +228,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await ApiErrorLogApi.exportApiErrorLogApi(queryParams) const data = await ApiErrorLogApi.exportApiErrorLog(queryParams)
download.excel(data, '错误日志.xls') download.excel(data, '错误日志.xls')
} catch { } catch {
} finally { } finally {