Commit 3b7b3b38 authored by wangqinghua's avatar wangqinghua

update

parent ac336ff4
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
<td></td> <td></td>
<td [nzIndentSize]="item.level*20" nzShowExpand [nzExpand]='item.expand' <td [nzIndentSize]="item.level*20" nzShowExpand [nzExpand]='item.expand'
(nzExpandChange)="getChildren(item)"> (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> </td>
</ng-container> </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 > <form [formGroup]="validateForm" nz-form >
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="groupName">部门名称</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="groupName">部门名称</nz-form-label>
......
...@@ -13,6 +13,7 @@ export class GroupModalComponent implements OnInit { ...@@ -13,6 +13,7 @@ export class GroupModalComponent implements OnInit {
title; title;
isVisible = false; isVisible = false;
isOkLoading = false;
validateForm:FormGroup; validateForm:FormGroup;
groupList:any[]; groupList:any[];
orgId; orgId;
...@@ -26,6 +27,7 @@ export class GroupModalComponent implements OnInit { ...@@ -26,6 +27,7 @@ export class GroupModalComponent implements OnInit {
} }
initForm(){ initForm(){
this.isOkLoading = false;
this.validateForm = this.fb.group({ this.validateForm = this.fb.group({
name:[null,[Validators.required,Validators.maxLength(15)]], name:[null,[Validators.required,Validators.maxLength(15)]],
parentId:[null], parentId:[null],
...@@ -64,6 +66,7 @@ export class GroupModalComponent implements OnInit { ...@@ -64,6 +66,7 @@ export class GroupModalComponent implements OnInit {
if(this.validateForm.invalid){ if(this.validateForm.invalid){
return false; return false;
} }
this.isOkLoading = true;
if(this.title == "新增部门"){ if(this.title == "新增部门"){
this.create(); this.create();
} }
......
...@@ -179,3 +179,9 @@ ...@@ -179,3 +179,9 @@
.margin-right-10{ .margin-right-10{
margin-right: 5px; 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