dashboard

This commit is contained in:
string 2025-10-31 17:19:18 +05:30
parent 482805b5cf
commit 3e70f85644
3 changed files with 36 additions and 7 deletions

View File

@ -4,5 +4,6 @@ public report_name:string;
public description: string; public description: string;
public report_tags: string; public report_tags: string;
public servicename: string; public servicename: string;
// Add SureConnect reference
public sureConnectId: number | null;
} }

View File

@ -23,8 +23,22 @@ export interface DashboardContentModel {
component?: any; component?: any;
name: string; name: string;
type?:string; type?:string;
// Common properties // Chart properties
xAxis?: string;
yAxis?: string | string[];
chartType?: string;
charttitle?: string;
chartlegend?: boolean;
showlabel?: boolean;
chartcolor?: boolean;
slices?: boolean;
donut?: boolean;
charturl?: string;
chartparameter?: string;
datastore?: string;
table?: string; table?: string;
datasource?: string;
fieldName?: string;
connection?: string; connection?: string;
baseFilters?: any[]; baseFilters?: any[];
// Common filter properties // Common filter properties
@ -37,6 +51,11 @@ export interface DashboardContentModel {
drilldownParameter?: string; drilldownParameter?: string;
drilldownFilters?: any[]; drilldownFilters?: any[];
drilldownLayers?: any[]; drilldownLayers?: any[];
// Compact filter properties
filterKey?: string;
filterType?: string;
filterLabel?: string;
filterOptions?: string[];
} }
export interface DashboardModel { export interface DashboardModel {

View File

@ -69,4 +69,13 @@ export class AlertsService {
} }
return this.apiRequest.get(apiUrl); return this.apiRequest.get(apiUrl);
} }
// Get values for a specific key from API
public getValuesFromUrl(url: string, sureId: number | undefined, key: string): Observable<any> {
let apiUrl = `chart/getValue?apiUrl=${url}&key=${key}`;
if (sureId) {
apiUrl += `&sureId=${sureId}`;
}
return this.apiRequest.get(apiUrl);
}
} }