From 6b0e72a2a8a6859cd37f5a100293c6e102e1e665 Mon Sep 17 00:00:00 2001 From: wangchl Date: Wed, 8 Aug 2018 18:46:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E9=97=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=96=B0=E5=A2=9E=E3=80=81=E7=BC=96=E8=BE=91=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=B8=8A=E7=BA=A7=E9=83=A8=E9=97=A8=E7=A1=AE=E5=AE=9A?= =?UTF-8?q?=E5=90=8E=E5=86=8D=E6=AC=A1=E7=82=B9=E5=87=BB=E6=97=B6404?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/system/dept/add.html | 3 ++- src/main/resources/templates/system/dept/edit.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/system/dept/add.html b/src/main/resources/templates/system/dept/add.html index 1b810ea3..f27f3c62 100644 --- a/src/main/resources/templates/system/dept/add.html +++ b/src/main/resources/templates/system/dept/add.html @@ -100,7 +100,8 @@ /*部门管理-新增-选择父部门树*/ function selectDeptTree() { - var deptId = $("#treeId").val(); + var treeId = $("#treeId").val(); + var deptId = treeId == null || treeId == "" ? "100" : treeId; var url = prefix + "/selectDeptTree/" + deptId; $.modal.open("选择部门", url, '380', '380'); } diff --git a/src/main/resources/templates/system/dept/edit.html b/src/main/resources/templates/system/dept/edit.html index 1d2437b5..8bf2790c 100644 --- a/src/main/resources/templates/system/dept/edit.html +++ b/src/main/resources/templates/system/dept/edit.html @@ -103,7 +103,8 @@ /*部门管理-修改-选择部门树*/ function selectDeptTree() { - var deptId = $("#treeId").val(); + var treeId = $("#treeId").val(); + var deptId = treeId == null || treeId == "" ? "100" : treeId; var url = prefix + "/selectDeptTree/" + deptId; $.modal.open("选择部门", url, '380', '380'); }