reimplemented filter, sort for new model

This commit is contained in:
Jan Prochazka
2022-08-28 10:50:12 +02:00
parent 1e347f6535
commit 14110cb6db
8 changed files with 193 additions and 135 deletions

View File

@@ -57,7 +57,7 @@ export interface PerspectiveNodeConfig {
conid?: string;
database?: string;
isParentFilter?: true | undefined;
isParentFilter?: boolean;
expandedColumns: string[];
checkedColumns: string[];

View File

@@ -303,7 +303,7 @@ export abstract class PerspectiveTreeNode {
getOrderBy(table: TableInfo | ViewInfo): PerspectiveDataLoadProps['orderBy'] {
const res = _compact(
this.childNodes.map(node => {
const sort = this.parentNodeConfig?.sort?.find(x => x.columnName == node.columnName);
const sort = this.nodeConfig?.sort?.find(x => x.columnName == node.columnName);
if (sort) {
return {
columnName: node.columnName,