|
@@ -9,7 +9,7 @@
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import { searchFormSchema } from './components/data.config';
|
|
|
import {
|
|
|
- getTextbookWarehouseRecordExportQuery,
|
|
|
+ postTextbookWarehouseRecordExportQuery,
|
|
|
getTextbookWarehouseRecordPage,
|
|
|
} from '/@/services/apis/TextbookWarehouseRecordController';
|
|
|
import { downloadByData } from '/@/utils/file/download';
|
|
@@ -68,7 +68,7 @@
|
|
|
|
|
|
const handleExport = async () => {
|
|
|
const fromData = getForm().getFieldsValue();
|
|
|
- const data = await getTextbookWarehouseRecordExportQuery(fromData);
|
|
|
+ const data = await postTextbookWarehouseRecordExportQuery(fromData);
|
|
|
downloadByData(data.data, `教材入库记录${formatToDate(new Date())}.xlsx`);
|
|
|
createMessage.success('导出成功');
|
|
|
};
|