|
|
|
|
@ -314,12 +314,16 @@ const handleCopy = async (id: number) => {
|
|
|
|
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
const handleExport = async () => {
|
|
|
|
|
if (!selectedIds.value.length) {
|
|
|
|
|
message.error('请选择需要导出的数据')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
// 导出的二次确认
|
|
|
|
|
await message.exportConfirm()
|
|
|
|
|
// 发起导出
|
|
|
|
|
exportLoading.value = true
|
|
|
|
|
const data = await DeviceApi.exportDevice(queryParams)
|
|
|
|
|
const data = await DeviceApi.exportDevice({ ids: selectedIds.value.join(',') })
|
|
|
|
|
download.excel(data, '物联设备.xls')
|
|
|
|
|
} catch {
|
|
|
|
|
} finally {
|
|
|
|
|
|