部门管理-有下级部门时不提供删除按钮

This commit is contained in:
zhouyuejun
2019-04-16 16:00:28 +08:00
parent 57134c0505
commit 7cddbc3c2e
@@ -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 {