Commit 3b7b3b38 authored by wangqinghua's avatar wangqinghua

update

parent ac336ff4
......@@ -209,7 +209,7 @@
<td></td>
<td [nzIndentSize]="item.level*20" nzShowExpand [nzExpand]='item.expand'
(nzExpandChange)="getChildren(item)">
<span>{{item.name}} <span style="color: #1b6b5bcc; margin-left: 10px">主机数量:{{item.hostcount}}</span> </span>
<span>{{item.name}} <span style="color: #439d68; margin-left: 10px">主机数量:{{item.hostcount}}</span> </span>
</td>
</ng-container>
<!--子集-->
......
<nz-modal [(nzVisible)]="isVisible" nzTitle="{{title}}" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()">
<nz-modal [(nzVisible)]="isVisible" nzTitle="{{title}}" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" [nzOkLoading]="isOkLoading">
<form [formGroup]="validateForm" nz-form >
<nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="groupName">部门名称</nz-form-label>
......
......@@ -13,6 +13,7 @@ export class GroupModalComponent implements OnInit {
title;
isVisible = false;
isOkLoading = false;
validateForm:FormGroup;
groupList:any[];
orgId;
......@@ -26,6 +27,7 @@ export class GroupModalComponent implements OnInit {
}
initForm(){
this.isOkLoading = false;
this.validateForm = this.fb.group({
name:[null,[Validators.required,Validators.maxLength(15)]],
parentId:[null],
......@@ -64,6 +66,7 @@ export class GroupModalComponent implements OnInit {
if(this.validateForm.invalid){
return false;
}
this.isOkLoading = true;
if(this.title == "新增部门"){
this.create();
}
......
......@@ -179,3 +179,9 @@
.margin-right-10{
margin-right: 5px;
}
.margin-left-5{
margin-left: 5px;
}
.margin-left-10{
margin-left: 10px;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment