From e50ad204bac01252b35019977cd614c6294f1786 Mon Sep 17 00:00:00 2001 From: qianmoQ Date: Wed, 15 Nov 2023 01:02:30 +0800 Subject: [PATCH] [Core] [Metadata] Add filter column operation --- core/datacap-web/src/model/TableFilter.ts | 9 ++++ .../source/components/TableColumnFilter.vue | 47 ++++++++++++++----- .../admin/source/components/TableData.vue | 10 +++- 3 files changed, 52 insertions(+), 14 deletions(-) diff --git a/core/datacap-web/src/model/TableFilter.ts b/core/datacap-web/src/model/TableFilter.ts index ba1d18c0..a773cf7e 100644 --- a/core/datacap-web/src/model/TableFilter.ts +++ b/core/datacap-web/src/model/TableFilter.ts @@ -27,3 +27,12 @@ export class SqlColumn value?: string; original?: Map; } + +export class ColumnFilter +{ + index: number; + column: string; + operation: string; + operations: Array; + value: any +} diff --git a/core/datacap-web/src/views/admin/source/components/TableColumnFilter.vue b/core/datacap-web/src/views/admin/source/components/TableColumnFilter.vue index 1210619e..6adcac9c 100644 --- a/core/datacap-web/src/views/admin/source/components/TableColumnFilter.vue +++ b/core/datacap-web/src/views/admin/source/components/TableColumnFilter.vue @@ -1,6 +1,7 @@