Explorar o código

新增表格销毁方法

RuoYi %!s(int64=6) %!d(string=hai) anos
pai
achega
8a2bba86eb
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

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

@@ -109,6 +109,12 @@
             		$('#' + $.table._option.toolbar + ' .btn-edit').toggleClass('disabled', ids.length!=1);
             	});
             },
+            // 表格销毁
+            destroy: function (tableId) {
+            	var currentId = $.common.isEmpty(tableId) ? $.table._option.id : tableId;
+            	alert(currentId);
+            	$("#" + currentId).bootstrapTable('destroy');
+	        },
             // 序列号生成
             serialNumber: function (index) {
 				var table = $('#' + $.table._option.id).bootstrapTable('getOptions');