Browse Source

导出模版条件添加一个复选框

master
songguoqiang 12 months ago
parent
commit
77ac8d07f4
  1. 11
      src/views/detection/records/index.vue

11
src/views/detection/records/index.vue

@ -223,7 +223,16 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await RecordsApi.exportRecords(setSearchParams) let params = [];
let ids = tableid.value.selections;
if(ids.length > 0){
for(let i = 0; i < ids.length; i++){
params[i] = ids[i].id;
}
}
tableObject.params.ids = params;
console.info("tableObject.params",tableObject.params)
const data = await RecordsApi.exportRecords(tableObject.params);
download.excel(data, '检测记录数据主.xls') download.excel(data, '检测记录数据主.xls')
} catch { } catch {
} finally { } finally {

Loading…
Cancel
Save