Browse Source

fix: 历史记录逻辑重构2

master
guoapeng 3 months ago
parent
commit
20746a4dc5
  1. 9
      src/pages/Index/History.vue
  2. 2
      src/services/Index/history.ts

9
src/pages/Index/History.vue

@ -364,7 +364,6 @@ const handleConfirm = async () => {
}
}
const handleWarnClose = () => {
getTableData()
showWarn.value = false
}
@ -400,10 +399,6 @@ const handlePrint = async () => {
warnIcon = new URL('@/assets/Index/History/success.svg', import.meta.url)
.href
showWarn.value = true
//
selectedItems.value = []
selectedIds.value = []
} else {
eMessage.error(res.message || '打印失败')
}
@ -424,10 +419,6 @@ const handleExport = async () => {
warnIcon = new URL('@/assets/Index/History/success.svg', import.meta.url)
.href
showWarn.value = true
//
selectedItems.value = []
selectedIds.value = []
} else {
eMessage.error(res.message || '导出失败')
}

2
src/services/Index/history.ts

@ -20,7 +20,7 @@ export const getHistoryInfo = async (params: paramsType) => {
export const deleteHistoryInfo = async (ids: string) => {
try {
const res = await apiClient.post(
`/api/v1/app/reactionResult/deleteRecordByIds?id=${ids}`,
`/api/v1/app/reactionResult/deleteRecordByIds?ids=${ids}`,
)
return res.data
} catch (error) {

Loading…
Cancel
Save