diff --git a/amoro-web/mock/modules/overview.js b/amoro-web/mock/modules/overview.js index 5b060e7564..31fc20d987 100644 --- a/amoro-web/mock/modules/overview.js +++ b/amoro-web/mock/modules/overview.js @@ -55,16 +55,15 @@ export default [ msg: 'success', result: [ { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, - { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, - { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, - { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, - { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, - { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, - { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, - { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, - { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, - { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, - { tableName: 'test_catalog.db.user', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, + { tableName: 'test_catalog.db.user1', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, + { tableName: 'test_catalog.db.user2', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, + { tableName: 'test_catalog.db.user3', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, + { tableName: 'test_catalog.db.user4', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, + { tableName: 'test_catalog.db.user5', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, + { tableName: 'test_catalog.db.user6', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, + { tableName: 'test_catalog.db.user7', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, + { tableName: 'test_catalog.db.user8', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, + { tableName: 'test_catalog.db.user9', tableSize: '1774', fileCount: '2', averageFileSize: '887', healthScore: '47',}, ] }), }, diff --git a/amoro-web/src/components/echarts/index.ts b/amoro-web/src/components/echarts/index.ts index fd84e59ce7..e411ad3a27 100644 --- a/amoro-web/src/components/echarts/index.ts +++ b/amoro-web/src/components/echarts/index.ts @@ -26,7 +26,7 @@ import type { import { BarChart, LineChart, - PieChart + PieChart, } from 'echarts/charts' import type { DatasetComponentOption, diff --git a/amoro-web/src/language/en.ts b/amoro-web/src/language/en.ts index 24c2344ac1..3066110122 100644 --- a/amoro-web/src/language/en.ts +++ b/amoro-web/src/language/en.ts @@ -17,6 +17,10 @@ */ export default { + last30min: 'Last 30 min', + last8h: 'Last 8 h', + last24h: 'Last 24 h', + last7day: 'Last 7 day', overview: 'Overview', healthScore: 'Health Score', top10Tables: 'Top 10 Tables', diff --git a/amoro-web/src/language/zh.ts b/amoro-web/src/language/zh.ts index 8ac153c4cf..d5bfc818c7 100644 --- a/amoro-web/src/language/zh.ts +++ b/amoro-web/src/language/zh.ts @@ -17,6 +17,10 @@ */ export default { + last30min: '最近 30分钟', + last8h: '最近 8小时', + last24h: '最近 24小时', + last7day: '最近 7天', overview: '总览', healthScore: '健康度', top10Tables: '表TOP 10', diff --git a/amoro-web/src/services/overview.service.ts b/amoro-web/src/services/overview.service.ts index 2c32d145ee..f6d1e22be3 100644 --- a/amoro-web/src/services/overview.service.ts +++ b/amoro-web/src/services/overview.service.ts @@ -44,8 +44,8 @@ export function getTop10TableList(params: { params: { order: order || 'asc', orderBy: orderBy || 'healthScore', - count: count || 10 - } + count: count || 10, + }, }) } diff --git a/amoro-web/src/views/overview/components/DataSizeCard.vue b/amoro-web/src/views/overview/components/DataSizeCard.vue index 0b6088d7a1..32cf6b1e5b 100644 --- a/amoro-web/src/views/overview/components/DataSizeCard.vue +++ b/amoro-web/src/views/overview/components/DataSizeCard.vue @@ -1,4 +1,3 @@ - +/ -->