用户归属部门新增清除按钮

This commit is contained in:
RuoYi
2025-08-21 14:07:37 +08:00
parent 609f9236fb
commit 477f439b7f
4 changed files with 18 additions and 4 deletions

View File

@@ -198,10 +198,17 @@
function selectDeptTree() {
var deptId = $.common.isEmpty($("#treeId").val()) ? "100" : $("#treeId").val();
var url = ctx + "system/user/selectDeptTree/" + deptId;
var btn = ['<i class="fa fa-check"></i> 确认', '<i class="fa fa-trash-o"></i> 清除', '<i class="fa fa-close"></i> 关闭'];
var options = {
title: '选择部门',
width: "380",
url: url,
btn: btn,
btn2: function(index, layero) {
$("#treeId").val("");
$("#treeName").val("");
$.modal.close(index);
},
callBack: doSubmit
};
$.modal.openOptions(options);