作者 开飞机的舒克

后台优化

... ... @@ -26,12 +26,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
if (res.code === 1) {
var domain = window.location.href.split(':')[0] + '://' + document.domain;
var url = domain + '/back.php/study/down_file';
window.location.href = url;
var link = document.createElement('a');
link.setAttribute("download", "");
link.href = url;
link.click();
$(".btn-refresh").trigger("click");
}
}
});
});
//导出功能
$(document).on("click", ".btn-export", function () {
var ids = Table.api.selectedids(table);
... ...