|
@@ -404,6 +404,19 @@ export const useCrud = (config?: UseCrudConfig) => {
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
+ * 下载模版 传入url
|
|
|
+ */
|
|
|
+ downloadSPCTemplate: async (urlStr: string, filePath: string) => {
|
|
|
+ const response = await request({
|
|
|
+ url: urlStr,
|
|
|
+ method: "get",
|
|
|
+ params: {filePath},
|
|
|
+ responseType: "arraybuffer",
|
|
|
+ });
|
|
|
+ Utils.downloadFile(response);
|
|
|
+ },
|
|
|
+
|
|
|
+ /**
|
|
|
* 根据搜索项导出数据
|
|
|
*/
|
|
|
exportData: async (urlStr: string) => {
|