|
|
@ -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();
|
|
|
|