mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 12:26:01 +00:00
filter list in perspective
This commit is contained in:
@@ -17,8 +17,14 @@ export interface PerspectiveCustomJoinConfig {
|
||||
refColumnName: string;
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface PerspectiveFilterColumnInfo {
|
||||
columnName: string;
|
||||
filterType: string;
|
||||
}
|
||||
export interface PerspectiveConfig extends PerspectiveConfigColumns {
|
||||
filters: { [uniqueName: string]: string };
|
||||
filterInfos: { [uniqueName: string]: PerspectiveFilterColumnInfo };
|
||||
sort: {
|
||||
[parentUniqueName: string]: {
|
||||
uniqueName: string;
|
||||
@@ -35,6 +41,7 @@ export function createPerspectiveConfig(): PerspectiveConfig {
|
||||
uncheckedColumns: [],
|
||||
customJoins: [],
|
||||
filters: {},
|
||||
filterInfos: {},
|
||||
sort: {},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -160,6 +160,13 @@ export abstract class PerspectiveTreeNode {
|
||||
...cfg.filters,
|
||||
[this.uniqueName]: value,
|
||||
},
|
||||
filterInfos: {
|
||||
...cfg.filterInfos,
|
||||
[this.uniqueName]: {
|
||||
columnName: this.columnName,
|
||||
filterType: this.filterType,
|
||||
},
|
||||
},
|
||||
}),
|
||||
true
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user