mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
init project
This commit is contained in:
14
app/assets/javascripts/admins/shixuns/index.js
Normal file
14
app/assets/javascripts/admins/shixuns/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
$(document).on('turbolinks:load', function() {
|
||||
if($('body.admins-shixuns-index-page').length > 0){
|
||||
$('select#tag-choosed').select2({
|
||||
placeholder: "请选择分类",
|
||||
allowClear: true
|
||||
});
|
||||
|
||||
var search_form = $(".search-form");
|
||||
//导出
|
||||
$(".shixuns-list-form").on("click","#shixuns-export",function () {
|
||||
window.location.href = "/admins/shixuns.xls?" + search_form.serialize();
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user