diff --git a/src/pages/Index/History.vue b/src/pages/Index/History.vue index b67c0b8..b436646 100644 --- a/src/pages/Index/History.vue +++ b/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 || '导出失败') } diff --git a/src/services/Index/history.ts b/src/services/Index/history.ts index 220484d..bf67cf0 100644 --- a/src/services/Index/history.ts +++ b/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) {