|
@@ -9126,7 +9126,7 @@ return d.keepInvalid=a,l},l.datepickerInput=function(a){if(0===arguments.length)
|
|
|
};
|
|
|
var column, index;
|
|
|
require(['bootstrap-daterangepicker'], function () {
|
|
|
- $(".datetimerange").each(function () {
|
|
|
+ $(".datetimerange", form).each(function () {
|
|
|
$(this).on('apply.daterangepicker', function (ev, picker) {
|
|
|
callback.call(picker, picker.startDate, picker.endDate);
|
|
|
});
|
|
@@ -10007,7 +10007,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|
|
title = j.title ? j.title : text;
|
|
|
confirm = j.confirm ? 'data-confirm="' + j.confirm + '"' : '';
|
|
|
extend = j.extend ? j.extend : '';
|
|
|
- html.push('<a href="' + url + '" class="' + classname + '" ' + (confirm ? confirm + ' ' : '') + extend + ' title="' + title + '" data-table-id="' + (table ? table.attr("id") : '') + '" data-column-index="' + columnIndex + '" data-button-index="' + i + '"><i class="' + icon + '"></i>' + (text ? ' ' + text : '') + '</a>');
|
|
|
+ html.push('<a href="' + url + '" class="' + classname + '" ' + (confirm ? confirm + ' ' : '') + extend + ' title="' + title + '" data-table-id="' + (table ? table.attr("id") : '') + '" data-column-index="' + columnIndex + '" data-row-index="' + index + '" data-button-index="' + i + '"><i class="' + icon + '"></i>' + (text ? ' ' + text : '') + '</a>');
|
|
|
}
|
|
|
});
|
|
|
return html.join(' ');
|
|
@@ -10053,6 +10053,12 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|
|
// 切换复选框状态
|
|
|
toggleattr: function (table) {
|
|
|
$("input[type='checkbox']", table).trigger('click');
|
|
|
+ },
|
|
|
+ // 根据行索引获取行数据
|
|
|
+ getrowdata: function (table, index) {
|
|
|
+ index = parseInt(index);
|
|
|
+ var data = table.bootstrapTable('getData');
|
|
|
+ return typeof data[index] !== 'undefined' ? data[index] : null;
|
|
|
}
|
|
|
},
|
|
|
};
|