From ad466f78e424fb853b4fa9c5d042366e61be3fa7 Mon Sep 17 00:00:00 2001 From: shanbinbin Date: Thu, 18 Jul 2024 19:15:00 +0800 Subject: [PATCH 1/2] feat: OPRFM-7109 --- frontend/.env.production | 2 +- .../components/offlinejob/OfflineJobsData.vue | 10 ++ .../src/components/table/OnlineTables.vue | 10 ++ frontend/src/components/table/TableDetail.vue | 7 + frontend/src/locales/en.json | 8 + frontend/src/locales/zh.json | 8 + frontend/vite.config.js | 7 +- frontend/yarn.lock | 163 +++++++++++++----- 8 files changed, 174 insertions(+), 41 deletions(-) diff --git a/frontend/.env.production b/frontend/.env.production index 2fcc5f0..2f6459b 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -1 +1 @@ -VITE_API_ENDPOINT= +VITE_API_ENDPOINT='/openmldb-featinsight' diff --git a/frontend/src/components/offlinejob/OfflineJobsData.vue b/frontend/src/components/offlinejob/OfflineJobsData.vue index 5b6c233..9cb8e6e 100644 --- a/frontend/src/components/offlinejob/OfflineJobsData.vue +++ b/frontend/src/components/offlinejob/OfflineJobsData.vue @@ -63,6 +63,16 @@ export default { dataIndex: 'jobType', key: 'jobType', }, + { + title: this.$t('Table DB'), + dataIndex: 'db', + key: 'db', + }, + { + title: `${this.$t('Data Table')}${this.$t('Name')}`, + dataIndex: 'table', + key: 'table', + }, { title: this.$t('Start Time'), dataIndex: 'startTime', diff --git a/frontend/src/components/table/OnlineTables.vue b/frontend/src/components/table/OnlineTables.vue index 49eadfe..7f63083 100644 --- a/frontend/src/components/table/OnlineTables.vue +++ b/frontend/src/components/table/OnlineTables.vue @@ -77,6 +77,16 @@ export default { key: 'table', slots: { customRender: 'table' } }, + { + title: this.$t('Table Rows'), + dataIndex: 'rows', + key: 'rows', + }, + { + title: this.$t('Table Use Memory'), + dataIndex: 'useMemory', + key: 'useMemory', + }, { title: this.$t('Actions'), key: 'actions', diff --git a/frontend/src/components/table/TableDetail.vue b/frontend/src/components/table/TableDetail.vue index 98ae747..70fa17a 100644 --- a/frontend/src/components/table/TableDetail.vue +++ b/frontend/src/components/table/TableDetail.vue @@ -9,6 +9,13 @@ {{ data.db }} {{ data.table }} + {{ data.id }} + {{ data.columnKey?.join(',') }} + {{ data.partition }} + {{ data.partitionUnalive }} + {{ data.replica }} + {{ data.rows }} + {{ data.useMemory }}