|
@ -1,7 +1,7 @@ |
|
|
<script lang="ts" setup> |
|
|
<script lang="ts" setup> |
|
|
// import { useSettingStore } from '@/stores/settingStore' |
|
|
// import { useSettingStore } from '@/stores/settingStore' |
|
|
import { syncSendCmd } from 'apis/system' |
|
|
import { syncSendCmd } from 'apis/system' |
|
|
import { ElMessageBox } from 'element-plus' |
|
|
|
|
|
|
|
|
import { ElLoading, ElMessageBox } from 'element-plus' |
|
|
import { FtMessage } from 'libs/message' |
|
|
import { FtMessage } from 'libs/message' |
|
|
import { useSystemStore } from 'stores/systemStore' |
|
|
import { useSystemStore } from 'stores/systemStore' |
|
|
import { computed, onMounted, ref } from 'vue' |
|
|
import { computed, onMounted, ref } from 'vue' |
|
@ -91,6 +91,11 @@ const onExportHistory = () => { |
|
|
FtMessage.warning('请选择要导出的数据') |
|
|
FtMessage.warning('请选择要导出的数据') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
const loading = ElLoading.service({ |
|
|
|
|
|
lock: true, |
|
|
|
|
|
text: '正在导出', |
|
|
|
|
|
background: 'rgba(255, 255, 255, 0.8)', |
|
|
|
|
|
}) |
|
|
const exportParams = { |
|
|
const exportParams = { |
|
|
className: 'DisinfectionLogsService', |
|
|
className: 'DisinfectionLogsService', |
|
|
fnName: 'exportRecord', |
|
|
fnName: 'exportRecord', |
|
@ -107,6 +112,9 @@ const onExportHistory = () => { |
|
|
.catch((error) => { |
|
|
.catch((error) => { |
|
|
console.error('导出记录失败:', error) |
|
|
console.error('导出记录失败:', error) |
|
|
}) |
|
|
}) |
|
|
|
|
|
.finally(() => { |
|
|
|
|
|
loading.close() |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const handleSelectionChange = (rows: Setting.History[]) => { |
|
|
const handleSelectionChange = (rows: Setting.History[]) => { |
|
|