作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

导出功能优化

... ... @@ -58,7 +58,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
if(!ids){
return false;
}
$("input[name=s_ids]", layero).val(ids);
$("input[name=ids]", layero).val(ids);
$("#form1", layero).submit();
Layer.closeAll();
... ... @@ -67,7 +67,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
var ids = Table.api.selectedids(table);
var page = table.bootstrapTable('getData');
var all = table.bootstrapTable('getOptions').totalRows;
Layer.confirm("选择导出的选项<form action='" + Fast.api.fixurl("registers/export1") + "' method='post' id='form1'><input type='hidden' name='s_ids' value=''/></form>", {
Layer.confirm("选择导出的选项<form action='" + Fast.api.fixurl("registers/export1") + "' method='post' id='form1'><input type='hidden' name='ids' value=''/></form>", {
title: '导出数据',
btn: ["选中项(" + ids.length + "条)", "本页(" + page.length + "条)", "全部(" + all + "条)"],
success: function (layero, index) {
... ...