dev_sync_trustie
cxt 5 years ago
parent 3a126a47b9
commit 18492663a3

@ -1,6 +1,6 @@
$(document).on('turbolinks:load', function() { $(document).on('turbolinks:load', function() {
if($('body.admins-enroll-lists-index-page').length > 0){ if($('body.admins-enroll-lists-index-page').length > 0){
let search_form = $(".search-form"); var search_form = $(".search-form");
//导出 //导出
$(".competition-enroll-list-form").on("click","#enroll-lists-export",function () { $(".competition-enroll-list-form").on("click","#enroll-lists-export",function () {
window.location.href = "/admins/competitions/"+$(this).attr("data-competition-id")+"/enroll_lists/export.xlsx?" + search_form.serialize(); window.location.href = "/admins/competitions/"+$(this).attr("data-competition-id")+"/enroll_lists/export.xlsx?" + search_form.serialize();

@ -5,7 +5,7 @@ $(document).on('turbolinks:load', function() {
allowClear: true allowClear: true
}); });
let search_form = $(".search-form"); var search_form = $(".search-form");
//导出 //导出
$(".shixuns-list-form").on("click","#shixuns-export",function () { $(".shixuns-list-form").on("click","#shixuns-export",function () {
window.location.href = "/admins/shixuns.xls?" + search_form.serialize(); window.location.href = "/admins/shixuns.xls?" + search_form.serialize();

Loading…
Cancel
Save