mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 07:16:01 +00:00
reimplemented filter, sort for new model
This commit is contained in:
@@ -57,7 +57,7 @@ export interface PerspectiveNodeConfig {
|
||||
conid?: string;
|
||||
database?: string;
|
||||
|
||||
isParentFilter?: true | undefined;
|
||||
isParentFilter?: boolean;
|
||||
|
||||
expandedColumns: string[];
|
||||
checkedColumns: string[];
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user