部门管理-有下级部门时不提供删除按钮
This commit is contained in:
+7
-2
@@ -411,8 +411,13 @@ export class DepartmentManagementComponent implements OnInit {
|
||||
this.orgDetail = treeNode;
|
||||
this.oldLoginName = this.orgDetail.code;
|
||||
this.queryUserById();
|
||||
this.canDel = true;
|
||||
this.canEdit = true;
|
||||
if(this.treeSelected.children&&this.treeSelected.children.length>0){
|
||||
this.canDel = false;
|
||||
this.canEdit = true;
|
||||
}else{
|
||||
this.canDel = true;
|
||||
this.canEdit = true;
|
||||
}
|
||||
if (isTopNode.id == 'hsfuhiw34239j89sauf98992h3indshv98h392hf9mplsd032fs2a2313fc') {
|
||||
//除去全部机构这层的第一层 也就是实际意义的顶层
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user