|
|
@@ -674,15 +674,7 @@
|
|
|
};
|
|
|
const onRecordExport = async () => {
|
|
|
try {
|
|
|
- const [start, end] = recordDateRange.value && recordDateRange.value.length === 2
|
|
|
- ? recordDateRange.value
|
|
|
- : ['', ''];
|
|
|
- const queryParam = {
|
|
|
- searchKey: recordSearchKeyword.value || undefined,
|
|
|
- startDate: start || undefined,
|
|
|
- endDate: end || undefined,
|
|
|
- };
|
|
|
- const response = await exportAreaCheckInspectionRecord(queryParam);
|
|
|
+ const response = await exportAreaCheckInspectionRecord(currentId.value);
|
|
|
if (response) {
|
|
|
const fileName = `检查记录_${new Date().toISOString().split('T')[0]}.xlsx`;
|
|
|
downloadByData(response, fileName);
|