Преглед на файлове

✨ 普通展示下载test

xinyan преди 7 месеца
родител
ревизия
b26cd70b9d
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      src/views/reportManage/dataCenter/normalDisplay/components/TableDataDisplay.vue

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

@@ -361,9 +361,8 @@ 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', '数据.xlsx');
+    link.setAttribute('download', fileName);
     document.body.appendChild(link);
     link.click();
     gridOptions.loading = false;