|
|
|
|
@ -240,14 +240,14 @@ const handleBatchDelete = async () => {
|
|
|
|
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
const handleExport = async () => {
|
|
|
|
|
if (!selectedIds.value.length) {
|
|
|
|
|
message.error('请选择需要导出的数据')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
await message.exportConfirm()
|
|
|
|
|
exportLoading.value = true
|
|
|
|
|
const data = await DeviceModelAttributeApi.exportDeviceModelAttribute({ ids: selectedIds.value.join(',') })
|
|
|
|
|
const params: any = {}
|
|
|
|
|
if (selectedIds.value.length) {
|
|
|
|
|
params.ids = selectedIds.value.join(',')
|
|
|
|
|
}
|
|
|
|
|
const data = await DeviceModelAttributeApi.exportDeviceModelAttribute(params)
|
|
|
|
|
download.excel(data, '采集设备-点位管理.xls')
|
|
|
|
|
} catch {
|
|
|
|
|
} finally {
|
|
|
|
|
|