fix Time call
This commit is contained in:
@@ -347,12 +347,12 @@ async function selectDateFilter(value: DropdownValue): Promise<void> {
|
||||
}
|
||||
|
||||
function openStartTime(): void {
|
||||
startDraft.value = dateRange.value[0] || `${Time.formatDate(new Date())} 00:00`;
|
||||
startDraft.value = dateRange.value[0] || `${Time.toDate(new Date())} 00:00`;
|
||||
startVisible.value = true;
|
||||
}
|
||||
|
||||
function openEndTime(): void {
|
||||
endDraft.value = dateRange.value[1] || `${Time.formatDate(new Date())} 23:59`;
|
||||
endDraft.value = dateRange.value[1] || `${Time.toDate(new Date())} 23:59`;
|
||||
endVisible.value = true;
|
||||
}
|
||||
|
||||
@@ -541,7 +541,7 @@ async function doExport(): Promise<void> {
|
||||
isExporting.value = true;
|
||||
try {
|
||||
const blob = await CustomerAPI.exportXSSF(page);
|
||||
WebToolkit.downloadBlob(blob, `客户列表-${Time.formatDate(new Date())}.xlsx`);
|
||||
WebToolkit.downloadBlob(blob, `客户列表-${Time.toDate(new Date())}.xlsx`);
|
||||
Message.success("导出已开始");
|
||||
} finally {
|
||||
isExporting.value = false;
|
||||
|
||||
Reference in New Issue
Block a user