[web-app] 告警配置列表,新增告警定义,修改告警定义功能

This commit is contained in:
tomsun28
2021-12-12 18:32:23 +08:00
parent 5dd417f369
commit 441df8f3c2
6 changed files with 218 additions and 14 deletions

View File

@@ -1,9 +1,10 @@
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import {HttpClient, HttpParams} from '@angular/common/http';
import {Message} from "../pojo/Message";
import {Observable} from "rxjs";
import {ParamDefine} from "../pojo/ParamDefine";
const app_hierarchy = '/apps/hierarchy';
@Injectable({
providedIn: 'root'
@@ -20,4 +21,10 @@ export class AppDefineService {
return this.http.get<Message<ParamDefine[]>>(paramDefineUri);
}
public getAppHierarchy() : Observable<Message<any>> {
let httpParams = new HttpParams().append("lang",'zh-CN');
const options = { params: httpParams };
return this.http.get<Message<any>>(app_hierarchy,options);
}
}