mirror of
https://github.com/yangzongzhuan/RuoYi.git
synced 2025-10-22 13:37:40 +00:00
新增清空(登录、操作、调度)日志
This commit is contained in:
@@ -81,6 +81,11 @@ $(function() {
|
||||
$.tree.searchNode(e);
|
||||
}).bind("input propertychange", $.tree.searchNode);
|
||||
}
|
||||
// 复选框后按钮样式状态变更
|
||||
$("#bootstrap-table").on("check.bs.table uncheck.bs.table check-all.bs.table uncheck-all.bs.table", function () {
|
||||
var ids = $("#bootstrap-table").bootstrapTable("getSelections");
|
||||
$('#toolbar .btn-del').toggleClass('disabled', !ids.length);
|
||||
});
|
||||
});
|
||||
|
||||
/** 创建选项卡 */
|
||||
|
@@ -425,6 +425,13 @@
|
||||
$.operate.submit(url, "post", "json", data);
|
||||
});
|
||||
},
|
||||
// 清空信息
|
||||
clean: function() {
|
||||
$.modal.confirm("确定清空所有" + $.table._option.modalName + "吗?", function() {
|
||||
var url = $.table._option.cleanUrl;
|
||||
$.operate.submit(url, "post", "json", "");
|
||||
});
|
||||
},
|
||||
// 添加信息
|
||||
add: function(id) {
|
||||
var url = $.common.isEmpty(id) ? $.table._option.createUrl : $.table._option.createUrl.replace("{id}", id);
|
||||
|
Reference in New Issue
Block a user