|
|
@ -1622,6 +1622,8 @@ layui.define(['table'], function (exports) {
|
|
|
|
data = data.filter(function (item) {
|
|
|
|
data = data.filter(function (item) {
|
|
|
|
return !item[options.disabledName];
|
|
|
|
return !item[options.disabledName];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(data.length > 0){
|
|
|
|
layui.each(data, function (i1, item1) {
|
|
|
|
layui.each(data, function (i1, item1) {
|
|
|
|
if (item1[checkName] || item1[LAY_CHECKBOX_HALF]) {
|
|
|
|
if (item1[checkName] || item1[LAY_CHECKBOX_HALF]) {
|
|
|
|
isIndeterminate = true;
|
|
|
|
isIndeterminate = true;
|
|
|
@ -1633,6 +1635,10 @@ layui.define(['table'], function (exports) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
isAll = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
isIndeterminate = isIndeterminate && !isAll;
|
|
|
|
isIndeterminate = isIndeterminate && !isAll;
|
|
|
|
form.render(tableView.find('input[name="layTableCheckbox"][lay-filter="layTableAllChoose"]').prop({
|
|
|
|
form.render(tableView.find('input[name="layTableCheckbox"][lay-filter="layTableAllChoose"]').prop({
|
|
|
|
'checked': isAll,
|
|
|
|
'checked': isAll,
|
|
|
|