|
|
@ -155,7 +155,6 @@
|
|
|
|
if ($.common.isNotEmpty($.table._option.rememberSelected) && $.table._option.rememberSelected) {
|
|
|
|
if ($.common.isNotEmpty($.table._option.rememberSelected) && $.table._option.rememberSelected) {
|
|
|
|
func = $.inArray(e.type, ['check', 'check-all']) > -1 ? 'union' : 'difference';
|
|
|
|
func = $.inArray(e.type, ['check', 'check-all']) > -1 ? 'union' : 'difference';
|
|
|
|
selectionIds = _[func](selectionIds, rowIds);
|
|
|
|
selectionIds = _[func](selectionIds, rowIds);
|
|
|
|
selectionRows = _[func](selectionRows, rows,"row");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// 图片预览事件
|
|
|
|
// 图片预览事件
|
|
|
@ -366,9 +365,7 @@
|
|
|
|
return row[column];
|
|
|
|
return row[column];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if ($.common.isNotEmpty($.table._option.rememberSelected) && $.table._option.rememberSelected) {
|
|
|
|
if ($.common.isNotEmpty($.table._option.rememberSelected) && $.table._option.rememberSelected) {
|
|
|
|
rows = $.map(selectionRows, function (row) {
|
|
|
|
rows = rows.concat(selectionIds);
|
|
|
|
return row[column];
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $.common.uniqueFn(rows);
|
|
|
|
return $.common.uniqueFn(rows);
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -391,9 +388,7 @@
|
|
|
|
return row[$.table._option.columns[1].field];
|
|
|
|
return row[$.table._option.columns[1].field];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if ($.common.isNotEmpty($.table._option.rememberSelected) && $.table._option.rememberSelected) {
|
|
|
|
if ($.common.isNotEmpty($.table._option.rememberSelected) && $.table._option.rememberSelected) {
|
|
|
|
rows = $.map(selectionRows, function (row) {
|
|
|
|
rows = rows.concat(selectionIds);
|
|
|
|
return row[$.table._option.columns[1].field];
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $.common.uniqueFn(rows);
|
|
|
|
return $.common.uniqueFn(rows);
|
|
|
|
},
|
|
|
|
},
|
|
|
|