Commit 640383fb authored by wangqinghua's avatar wangqinghua

update

parent 539d6e13
......@@ -62,6 +62,7 @@ export class BasicEditComponent implements OnInit {
this.initForm();
this.getTemplate();
this.getTree();
this.getParentType();
}
//获取分组
......@@ -84,7 +85,6 @@ export class BasicEditComponent implements OnInit {
this.isBasicEdit = true;
this.modalTitle = '添加资源';
this.getGroup();
this.getParentType();
}
//父级分类
getParentType(){
......@@ -164,7 +164,7 @@ export class BasicEditComponent implements OnInit {
//资产对象
if(data.inventory){
this.validateForm.inventoryExtend = data.inventory;
this.isInVentory = false;
this.isInVentory = true;
this.isYesInVentory = 'default';
this.isNOInVentory = 'primary';
}
......
......@@ -209,7 +209,7 @@
<td></td>
<td [nzIndentSize]="item.level*20" nzShowExpand [nzExpand]='item.expand'
(nzExpandChange)="getChildren(item)">
<span>{{item.name}}</span>
<span>{{item.name}} <span class="main-color" style="margin-left: 10px">主机数量:{{item.hostcount}}</span> </span>
</td>
</ng-container>
<!--子集-->
......
......@@ -9,26 +9,26 @@ export class OverAllService {
constructor(private http: HttpClient) {
}
//获取分组信息 --列表
getgroups(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/groups/getgroups', data);
}
//查询模板组-----列表
getTemplateGroups(): Observable<any> {
return this.http.get(SERVER_API_URL + '/groups/getTemplateGroups');
}
//资源列表--资源分组 ---主机组下拉框
findGroup(): Observable<any> {
return this.http.get(SERVER_API_URL + '/groups/getAll');
}
//获取分组信息 --编辑
getgroups(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/groups/getgroups', data);
}
//获取分组信息 --编辑页面获取分组 1 表示模板 0表示主机
getEditGroups(params): Observable<any> {
return this.http.get(SERVER_API_URL + '/groups/getAllUpdate/'+ params);
}
//查询模板组-----
getTemplateGroups(): Observable<any> {
return this.http.get(SERVER_API_URL + '/groups/getTemplateGroups');
}
//资源列表--所有类型
find(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/host/find', data);
......
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