Browse Source

表格销毁清除记住选择数据

RuoYi 4 years ago
parent
commit
3026e9f158
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

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

@@ -286,6 +286,8 @@ var table = {
             destroy: function (tableId) {
             	var currentId = $.common.isEmpty(tableId) ? table.options.id : tableId;
             	$("#" + currentId).bootstrapTable('destroy');
+            	delete table.rememberSelectedIds[currentId];
+            	delete table.rememberSelecteds[currentId];
             },
             // 序列号生成
             serialNumber: function (index, tableId) {