导出excel加上日期

This commit is contained in:
weiwei committed 2025-03-06 14:38:52 +08:00
1 parent 8bdf76ae3a
commit 5dce0acf8c
67 files changed
+2300 -2278

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
import { CellStyle, ElMessage } from "element-plus"
import other from "/@/utils/other"
import { formatDate } from "../utils/formatTime"
/**
* 表格组件基础配置属性
@@ -220,11 +221,11 @@ export function useTable(options?: BasicTableProps) {
*/
const downBlobFile = (url: string, query: any, fileName: string) => {
ElMessage.info("下载中,请稍后")
return other.downBlobFile(url, query, fileName)
return other.downBlobFile(url, query, formatDate(new Date(), "YYYY年mm月dd日") + " " + fileName)
}
const postDownBlobFile = (url: string, data: any, fileName: string) => {
return other.postDownBlobFile(url, data, fileName)
return other.postDownBlobFile(url, data, formatDate(new Date(), "YYYY年mm月dd日") + " " + fileName)
}
/**