修复tabelExport.js插件导出操作自动提交表单问题.
This commit is contained in:
@@ -103,6 +103,7 @@
|
||||
|
||||
// 导出
|
||||
$(".export-btn").on("click",function(){
|
||||
loading('<spring:message code="onloading"/>');
|
||||
var suffix = $(this).data("export-type"); // 导出文件类型
|
||||
var tableMark = $(this).data("export-table"); //导出table
|
||||
var menuName = $("#menuName").val();
|
||||
@@ -119,6 +120,7 @@
|
||||
$("caption").remove();
|
||||
$(".exportFirst").remove();
|
||||
$("."+tableMark+" .count").empty();
|
||||
closeTip();
|
||||
});
|
||||
});
|
||||
function setTemporaryRows(tableMark){
|
||||
@@ -195,7 +197,7 @@
|
||||
<a style="color:#333333" href="javascript:page(${page.pageNo},${page.pageSize});" class="icon-refresh"> </a>
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="margin-top: -8px;">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="margin-top: -5px;">
|
||||
<i class="fa fa-wrench"></i> <spring:message code="export"></spring:message>
|
||||
<i class="fa fa-angle-down"></i>
|
||||
</button>
|
||||
@@ -258,7 +260,7 @@
|
||||
<a style="color:#333333" href="javascript:page(${page.pageNo},${page.pageSize});" class="icon-refresh "> </a>
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="margin-top: -8px;">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="margin-top: -5px;">
|
||||
<i class="fa fa-wrench"></i> <spring:message code="export"></spring:message>
|
||||
<i class="fa fa-angle-down"></i>
|
||||
</button>
|
||||
|
||||
@@ -70,6 +70,7 @@ $(document).ready(function() {
|
||||
});
|
||||
//ajaxServiceLogTotal();
|
||||
$(".export-btn").click(function(){
|
||||
loading('<spring:message code="onloading"/>');
|
||||
var suffix = $(this).data("export-type");
|
||||
|
||||
totaltb(1,-1);
|
||||
@@ -85,6 +86,7 @@ $(document).ready(function() {
|
||||
$("#myexport").click();
|
||||
$("caption").remove();
|
||||
//totaltb(pato,size);
|
||||
closeTip();
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -315,7 +315,7 @@
|
||||
* @param myClass {String}
|
||||
*/
|
||||
function createObjButton(dataObject, myContent, myClass) {
|
||||
var exportButton = "<button id='myexport' data-fileblob='" + dataObject + "' class='" + bootstrapClass + bootstrapTheme + myClass + "'>" + myContent + "</button>";
|
||||
var exportButton = "<button id='myexport' type='button' data-fileblob='" + dataObject + "' class='" + bootstrapClass + bootstrapTheme + myClass + "'>" + myContent + "</button>";
|
||||
checkCaption(exportButton);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user