소스 검색

✨ 普通展示下载test

xinyan 7 달 전
부모
커밋
6fafe080eb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/reportManage/dataCenter/normalDisplay/components/TableDataDisplay.vue

+ 2 - 1
src/views/reportManage/dataCenter/normalDisplay/components/TableDataDisplay.vue

@@ -361,8 +361,9 @@ async function handleExport(taskIds, apiFunc, startDate, endDate,dateTypeKey) {
     } else if (dateTypeKey === 'month') {
       fileName = `${startDate.value}~${endDate.value}月数据.xlsx`; // 当为月时
     }
+    console.log('fileName', fileName);
     link.href = url;
-    link.setAttribute('download', fileName);
+    link.setAttribute('download', '数据.xlsx');
     document.body.appendChild(link);
     link.click();
     gridOptions.loading = false;