|
|
@ -52,7 +52,7 @@
|
|
|
|
<table id="bootstrap-table"></table>
|
|
|
|
<table id="bootstrap-table"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
|
<i class="fa fa-info-circle" style="color: red;"></i> 勾选数据导出指定列,否则为全部
|
|
|
|
<!-- <i class="fa fa-info-circle" style="color: red;"></i> 勾选数据导出指定列,否则为全部-->
|
|
|
|
<a class="btn btn-warning" onclick="exportSelected()">
|
|
|
|
<a class="btn btn-warning" onclick="exportSelected()">
|
|
|
|
<i class="fa fa-download"></i> 导出
|
|
|
|
<i class="fa fa-download"></i> 导出
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
@ -238,7 +238,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
function exportSelected() {
|
|
|
|
function exportSelected() {
|
|
|
|
var $table =$('#bootstrap-table');
|
|
|
|
var $table =$('#bootstrap-table');
|
|
|
|
var selections = $table.bootstrapTable('getSelections');
|
|
|
|
/* var selections = $table.bootstrapTable('getSelections');
|
|
|
|
var objIds = $.map(selections, function (row) {
|
|
|
|
var objIds = $.map(selections, function (row) {
|
|
|
|
return row.batchCode; // 假设objid是父表每行的唯一标识
|
|
|
|
return row.batchCode; // 假设objid是父表每行的唯一标识
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -251,8 +251,8 @@
|
|
|
|
var dataParam = {
|
|
|
|
var dataParam = {
|
|
|
|
objIds: objIds.join(',')
|
|
|
|
objIds: objIds.join(',')
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
*/
|
|
|
|
$.modal.confirm("确定导出勾选的" + objIds.length + "条数据吗?", function() {
|
|
|
|
$.modal.confirm("确定导出数据吗?", function() {
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
url: prefix + "/export_sort", // 修改为您的导出接口URL
|
|
|
|
url: prefix + "/export_sort", // 修改为您的导出接口URL
|
|
|
|
method: 'POST',
|
|
|
|
method: 'POST',
|
|
|
|