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