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 @@
-
+/ -->
-
+
-
- Last 30 min
- Last 8 h
- Last 24 h
- Last 7 day
+
+
+ {{ t('last30min') }}
+
+
+ {{ t('last8h') }}
+
+
+ {{ t('last24h') }}
+
+
+ {{ t('last7day') }}
+
@@ -111,4 +118,4 @@ onMounted(() => {
.card-title {
font-size: 18px;
}
-
\ No newline at end of file
+
diff --git a/amoro-web/src/views/overview/components/PieChartCard.vue b/amoro-web/src/views/overview/components/PieChartCard.vue
index 96decdf59d..7f0b83b89c 100644
--- a/amoro-web/src/views/overview/components/PieChartCard.vue
+++ b/amoro-web/src/views/overview/components/PieChartCard.vue
@@ -32,29 +32,29 @@ const pieChartOption = ref({})
function renderChart() {
pieChartOption.value = {
- tooltip: {
- trigger: 'item',
- },
- legend: {
- orient: 'vertical',
- left: 'left',
- },
- series: [
- {
- name: props.title,
- type: 'pie',
- radius: '50%',
- data: props.data,
- emphasis: {
- itemStyle: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)',
- },
+ tooltip: {
+ trigger: 'item',
+ },
+ legend: {
+ orient: 'vertical',
+ left: 'left',
+ },
+ series: [
+ {
+ name: props.title,
+ type: 'pie',
+ radius: '50%',
+ data: props.data,
+ emphasis: {
+ itemStyle: {
+ shadowBlur: 10,
+ shadowOffsetX: 0,
+ shadowColor: 'rgba(0, 0, 0, 0.5)',
},
},
- ],
- }
+ },
+ ],
+ }
}
onMounted(renderChart)
@@ -64,7 +64,7 @@ watch(() => props.data, renderChart)
-
+
diff --git a/amoro-web/src/views/overview/components/ResourceUsageCard.vue b/amoro-web/src/views/overview/components/ResourceUsageCard.vue
index 426e915896..438e665a03 100644
--- a/amoro-web/src/views/overview/components/ResourceUsageCard.vue
+++ b/amoro-web/src/views/overview/components/ResourceUsageCard.vue
@@ -14,88 +14,96 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/-->
+/ -->
-
+
-
- Last 30 min
- Last 8 h
- Last 24 h
- Last 7 day
+
+
+ {{ t('last30min') }}
+
+
+ {{ t('last8h') }}
+
+
+ {{ t('last24h') }}
+
+
+ {{ t('last7day') }}
+
@@ -108,4 +116,4 @@ onMounted(() => {
.card-title {
font-size: 18px;
}
-
\ No newline at end of file
+
diff --git a/amoro-web/src/views/overview/components/Top10TablesCard.vue b/amoro-web/src/views/overview/components/Top10TablesCard.vue
index b137bda4d7..05ac76d479 100644
--- a/amoro-web/src/views/overview/components/Top10TablesCard.vue
+++ b/amoro-web/src/views/overview/components/Top10TablesCard.vue
@@ -17,7 +17,7 @@ limitations under the License.
/ -->