瀏覽代碼

Revert "解决翻页记住选择时获取指定列值的问题"

This reverts commit af6a313
cain 5 年之前
父節點
當前提交
d66b5811f7

文件差異過大導致無法顯示
+ 0 - 0
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.js


+ 2 - 7
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

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

部分文件因文件數量過多而無法顯示