[web-app] 告警配置列表,新增告警定义,修改告警定义功能
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user