Browse Source

自动设置切换多个树表格实例配置

pull/402/MERGE
RuoYi 2 years ago
parent
commit
0f9558a825
  1. 2
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

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

@ -11,7 +11,7 @@ var table = {
// 设置实例配置
set: function(id) {
if($.common.getLength(table.config) > 1 && $.common.isNotEmpty(event)) {
var tableId = $.common.isEmpty(id) ? $(event.currentTarget).parents(".bootstrap-table").find("table.table").attr("id") : id;
var tableId = $.common.isEmpty(id) ? $(event.currentTarget).parents(".bootstrap-table").find("table.table").attr("id") || $(event.currentTarget).parents(".bootstrap-tree-table").find("table.table").attr("id") : id;
if ($.common.isNotEmpty(tableId)) {
table.options = table.get(tableId);
}

Loading…
Cancel
Save