|
@ -73,6 +73,7 @@ import { Records,RecordsRules } from './records.data' |
|
|
import * as RecordsApi from '@/api/detection/records' |
|
|
import * as RecordsApi from '@/api/detection/records' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import { any } from 'vue-types' |
|
|
import { any } from 'vue-types' |
|
|
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
|
|
|
defineOptions({ name: 'DetectionRecords' }) |
|
|
defineOptions({ name: 'DetectionRecords' }) |
|
|
|
|
|
|
|
@ -232,8 +233,15 @@ const handleExport = async () => { |
|
|
} |
|
|
} |
|
|
tableObject.params.ids = params; |
|
|
tableObject.params.ids = params; |
|
|
console.info("tableObject.params",tableObject.params) |
|
|
console.info("tableObject.params",tableObject.params) |
|
|
|
|
|
let str = '华涛SPC检测记录导出-全部.xlsx' |
|
|
|
|
|
|
|
|
|
|
|
if(tableObject.params.createTime){ |
|
|
|
|
|
str = '华涛SPC检测记录导出-'+dayjs(tableObject.params.createTime[0]).format('YYYY-MM-DD')+'_'+dayjs(tableObject.params.createTime[1]).format('YYYY-MM-DD')+'.xlsx' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const data = await RecordsApi.exportRecords(tableObject.params); |
|
|
const data = await RecordsApi.exportRecords(tableObject.params); |
|
|
download.excel(data, '检测记录数据主.xls') |
|
|
console.log("导出数据",tableObject.params.crateTime); |
|
|
|
|
|
download.excel(data, str) |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
exportLoading.value = false |
|
|