From 366459e8f3ac4cc424f94e6dfb78553dca74965a Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 24 Nov 2021 11:45:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=B0=E5=A2=9E=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E6=97=B6=E9=AA=8C=E8=AF=81=E7=94=A8=E6=88=B7=E6=89=80?= =?UTF-8?q?=E5=B1=9E=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/system/dept/add.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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);