Browse Source

fix: 历史记录逻辑重构2

master
guoapeng 4 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 = () => { const handleWarnClose = () => {
getTableData()
showWarn.value = false showWarn.value = false
} }
@ -400,10 +399,6 @@ const handlePrint = async () => {
warnIcon = new URL('@/assets/Index/History/success.svg', import.meta.url) warnIcon = new URL('@/assets/Index/History/success.svg', import.meta.url)
.href .href
showWarn.value = true showWarn.value = true
//
selectedItems.value = []
selectedIds.value = []
} else { } else {
eMessage.error(res.message || '打印失败') eMessage.error(res.message || '打印失败')
} }
@ -424,10 +419,6 @@ const handleExport = async () => {
warnIcon = new URL('@/assets/Index/History/success.svg', import.meta.url) warnIcon = new URL('@/assets/Index/History/success.svg', import.meta.url)
.href .href
showWarn.value = true showWarn.value = true
//
selectedItems.value = []
selectedIds.value = []
} else { } else {
eMessage.error(res.message || '导出失败') 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) => { export const deleteHistoryInfo = async (ids: string) => {
try { try {
const res = await apiClient.post( const res = await apiClient.post(
`/api/v1/app/reactionResult/deleteRecordByIds?id=${ids}`,
`/api/v1/app/reactionResult/deleteRecordByIds?ids=${ids}`,
) )
return res.data return res.data
} catch (error) { } catch (error) {

Loading…
Cancel
Save