Selaa lähdekoodia

更新导出后辍

lex-xin 4 vuotta sitten
vanhempi
commit
791b675972

+ 1 - 1
src/views/afterSchoolManager/afterSchoolTeach.vue

@@ -357,7 +357,7 @@ export default {
                     nowTime.getHours() +
                     nowTime.getHours() +
                     "" +
                     "" +
                     nowTime.getMinutes();
                     nowTime.getMinutes();
-                  let fname = ymd + "课外训练(教学)";
+                  let fname = ymd + "课外训练(教学).xls";
                   link.href = objectUrl;
                   link.href = objectUrl;
                   link.setAttribute("download", fname);
                   link.setAttribute("download", fname);
                   document.body.appendChild(link);
                   document.body.appendChild(link);

+ 1 - 1
src/views/businessManager/orderManager/incomeOut.vue

@@ -313,7 +313,7 @@ export default {
                     nowTime.getHours() +
                     nowTime.getHours() +
                     "" +
                     "" +
                     nowTime.getMinutes();
                     nowTime.getMinutes();
-                  let fname = "报表导出" + new Date().getTime(); //下载文件的名字
+                  let fname = "报表导出" + new Date().getTime()+'.xls'; //下载文件的名字
                   link.href = objectUrl;
                   link.href = objectUrl;
                   link.setAttribute("download", fname);
                   link.setAttribute("download", fname);
                   document.body.appendChild(link);
                   document.body.appendChild(link);