diff --git a/ruoyi-admin/src/main/resources/templates/system/dept/add.html b/ruoyi-admin/src/main/resources/templates/system/dept/add.html index 2479bdb2..b4bf7c04 100644 --- a/ruoyi-admin/src/main/resources/templates/system/dept/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/dept/add.html @@ -6,12 +6,12 @@
- +
- +
- +
@@ -108,10 +108,15 @@ /*部门管理-新增-选择父部门树*/ function selectDeptTree() { + var treeId = $("#treeId").val(); + if ($.common.isEmpty(treeId)) { + $.modal.alertWarning("请先添加用户所属的部门!"); + return; + } var options = { title: '部门选择', width: "380", - url: prefix + "/selectDeptTree/" + $("#treeId").val(), + url: prefix + "/selectDeptTree/" + treeId, callBack: doSubmit }; $.modal.openOptions(options);