...
|
...
|
@@ -27,9 +27,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
};
|
|
|
$(document).on("click", ".btn-export", function () {
|
|
|
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/export") + "' method='post'><input type='hidden' name='ids' value=''/></form>", {
|
|
|
title: '导出数据',
|
|
|
btn: ["选中项(" + ids.length + "条)"],
|
|
|
btn: ["选中项(" + ids.length + "条)", "本页(" + page.length + "条)", "全部(" + all + "条)"],
|
|
|
success: function (layero, index) {
|
|
|
$(".layui-layer-btn a", layero).addClass("layui-layer-btn0");
|
|
|
}, yes: function (index, layero) {
|
...
|
...
|
@@ -50,9 +52,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
};
|
|
|
$(document).on("click", ".btn-export1", function () {
|
|
|
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>", {
|
|
|
title: '导出数据',
|
|
|
btn: ["选中项(" + ids.length + "条)"],
|
|
|
btn: ["选中项(" + ids.length + "条)", "本页(" + page.length + "条)", "全部(" + all + "条)"],
|
|
|
success: function (layero, index) {
|
|
|
$(".layui-layer-btn a", layero).addClass("layui-layer-btn0");
|
|
|
}, yes: function (index, layero) {
|
...
|
...
|
|