正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
@@ -26,12 +26,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | @@ -26,12 +26,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | ||
26 | if (res.code === 1) { | 26 | if (res.code === 1) { |
27 | var domain = window.location.href.split(':')[0] + '://' + document.domain; | 27 | var domain = window.location.href.split(':')[0] + '://' + document.domain; |
28 | var url = domain + '/back.php/study/down_file'; | 28 | var url = domain + '/back.php/study/down_file'; |
29 | - window.location.href = url; | 29 | + var link = document.createElement('a'); |
30 | + link.setAttribute("download", ""); | ||
31 | + link.href = url; | ||
32 | + link.click(); | ||
30 | $(".btn-refresh").trigger("click"); | 33 | $(".btn-refresh").trigger("click"); |
31 | } | 34 | } |
32 | } | 35 | } |
33 | }); | 36 | }); |
34 | }); | 37 | }); |
38 | + | ||
35 | //导出功能 | 39 | //导出功能 |
36 | $(document).on("click", ".btn-export", function () { | 40 | $(document).on("click", ".btn-export", function () { |
37 | var ids = Table.api.selectedids(table); | 41 | var ids = Table.api.selectedids(table); |
-
请 注册 或 登录 后发表评论