瀏覽代碼

数据被加载触发工具条按钮禁用/启用

RuoYi 6 年之前
父節點
當前提交
a469435499
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

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

@@ -103,7 +103,7 @@
             	// 浮动提示框特效
             	$("[data-toggle='tooltip']").tooltip();
             	// 触发行点击事件
-            	$("#" + $.table._option.id).on("check.bs.table uncheck.bs.table check-all.bs.table uncheck-all.bs.table", function () {
+            	$("#" + $.table._option.id).on("check.bs.table uncheck.bs.table check-all.bs.table uncheck-all.bs.table load-success.bs.table", function () {
             		var ids = $("#" + $.table._option.id).bootstrapTable("getSelections");
             		$('#' + $.table._option.toolbar + ' .btn-del').toggleClass('disabled', !ids.length);
             		$('#' + $.table._option.toolbar + ' .btn-edit').toggleClass('disabled', ids.length!=1);