mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 08:13:57 +00:00
removed commented code
This commit is contained in:
@@ -30,7 +30,6 @@ export interface PerspectiveFilterColumnInfo {
|
|||||||
export interface PerspectiveConfig extends PerspectiveConfigColumns {
|
export interface PerspectiveConfig extends PerspectiveConfigColumns {
|
||||||
rootObject: { schemaName?: string; pureName: string };
|
rootObject: { schemaName?: string; pureName: string };
|
||||||
filters: { [uniqueName: string]: string };
|
filters: { [uniqueName: string]: string };
|
||||||
// filterInfos: { [uniqueName: string]: PerspectiveFilterColumnInfo };
|
|
||||||
sort: {
|
sort: {
|
||||||
[parentUniqueName: string]: {
|
[parentUniqueName: string]: {
|
||||||
uniqueName: string;
|
uniqueName: string;
|
||||||
@@ -47,7 +46,6 @@ export function createPerspectiveConfig(rootObject: { schemaName?: string; pureN
|
|||||||
uncheckedColumns: [],
|
uncheckedColumns: [],
|
||||||
customJoins: [],
|
customJoins: [],
|
||||||
filters: {},
|
filters: {},
|
||||||
// filterInfos: {},
|
|
||||||
sort: {},
|
sort: {},
|
||||||
rootObject,
|
rootObject,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -168,26 +168,6 @@ export abstract class PerspectiveTreeNode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// setFilter(value) {
|
|
||||||
// this.setConfig(
|
|
||||||
// cfg => ({
|
|
||||||
// ...cfg,
|
|
||||||
// filters: {
|
|
||||||
// ...cfg.filters,
|
|
||||||
// [this.uniqueName]: value,
|
|
||||||
// },
|
|
||||||
// filterInfos: {
|
|
||||||
// ...cfg.filterInfos,
|
|
||||||
// [this.uniqueName]: {
|
|
||||||
// columnName: this.columnName,
|
|
||||||
// filterType: this.filterType,
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// }),
|
|
||||||
// true
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
|
|
||||||
getFilter() {
|
getFilter() {
|
||||||
return this.config.filters[this.uniqueName];
|
return this.config.filters[this.uniqueName];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,6 @@
|
|||||||
setConfig(cfg => ({
|
setConfig(cfg => ({
|
||||||
...cfg,
|
...cfg,
|
||||||
filters: _.omit(cfg.filters, [uniqueName]),
|
filters: _.omit(cfg.filters, [uniqueName]),
|
||||||
// filterInfos: _.omit(cfg.filterInfos, [uniqueName]),
|
|
||||||
}))}
|
}))}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -274,10 +274,6 @@
|
|||||||
...cfg.filters,
|
...cfg.filters,
|
||||||
[dataNode.uniqueName]: getFilterValueExpression(value, dataNode.column.dataType),
|
[dataNode.uniqueName]: getFilterValueExpression(value, dataNode.column.dataType),
|
||||||
},
|
},
|
||||||
// filterInfos: {
|
|
||||||
// ...cfg.filterInfos,
|
|
||||||
// [dataNode.uniqueName]: dataNode.filterInfo,
|
|
||||||
// },
|
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user