fix:错误日志 bug修复
parent
e6485be5a7
commit
7ff037a390
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue