|
|
@ -87,14 +87,14 @@ const onDelHistory = () => { |
|
|
|
}) |
|
|
|
} |
|
|
|
const onExportHistory = () => { |
|
|
|
// if (!selectedRecords.value.length) { |
|
|
|
// FtMessage.warning('请选择要导出的数据') |
|
|
|
// return |
|
|
|
// } |
|
|
|
if (!selectedRecords.value.length) { |
|
|
|
FtMessage.warning('请选择要导出的数据') |
|
|
|
return |
|
|
|
} |
|
|
|
const exportParams = { |
|
|
|
className: 'DisinfectionLogsService', |
|
|
|
fnName: 'exportAllRecord', |
|
|
|
params: {}, |
|
|
|
fnName: 'exportRecord', |
|
|
|
params: selectedRecords.value.map(item => item.name), |
|
|
|
} |
|
|
|
syncSendCmd(exportParams) |
|
|
|
.then((res) => { |
|
|
@ -122,7 +122,7 @@ const deleteBtnVisible = computed(() => { |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="history-export"> |
|
|
|
<bt-button type="primary" button-text="全部导出" @click="onExportHistory" /> |
|
|
|
<bt-button type="primary" button-text="导出" @click="onExportHistory" /> |
|
|
|
<bt-button v-if="deleteBtnVisible" type="primary" button-text="删除" @click="onDelHistory" /> |
|
|
|
</div> |
|
|
|
<div class="history-table"> |
|
|
|