修复部门管理新增、编辑点击上级部门确定后再次点击时404错误

dep_wangsr
wangchl 6 years ago committed by Limy
parent 9afbbf44ef
commit 6b0e72a2a8

@ -100,7 +100,8 @@
/*部门管理-新增-选择父部门树*/ /*部门管理-新增-选择父部门树*/
function selectDeptTree() { function selectDeptTree() {
var deptId = $("#treeId").val(); var treeId = $("#treeId").val();
var deptId = treeId == null || treeId == "" ? "100" : treeId;
var url = prefix + "/selectDeptTree/" + deptId; var url = prefix + "/selectDeptTree/" + deptId;
$.modal.open("选择部门", url, '380', '380'); $.modal.open("选择部门", url, '380', '380');
} }

@ -103,7 +103,8 @@
/*部门管理-修改-选择部门树*/ /*部门管理-修改-选择部门树*/
function selectDeptTree() { function selectDeptTree() {
var deptId = $("#treeId").val(); var treeId = $("#treeId").val();
var deptId = treeId == null || treeId == "" ? "100" : treeId;
var url = prefix + "/selectDeptTree/" + deptId; var url = prefix + "/selectDeptTree/" + deptId;
$.modal.open("选择部门", url, '380', '380'); $.modal.open("选择部门", url, '380', '380');
} }

Loading…
Cancel
Save