From 3db4838884bac37bfaf69c3b589a5ecd75be9104 Mon Sep 17 00:00:00 2001
From: Svamei <41992090+Svamei@users.noreply.github.com>
Date: Sun, 2 Apr 2023 23:56:34 +0800
Subject: [PATCH] Complete the text translation of the 'Log Manage' page
(#1144)
---
hippo4j-ui/src/locale/lang/en.js | 8 ++++
hippo4j-ui/src/locale/lang/zh.js | 8 ++++
hippo4j-ui/src/views/hippo4j/log/index.vue | 56 +++++++++++-----------
3 files changed, 44 insertions(+), 28 deletions(-)
diff --git a/hippo4j-ui/src/locale/lang/en.js b/hippo4j-ui/src/locale/lang/en.js
index 556f35ad..69edb843 100644
--- a/hippo4j-ui/src/locale/lang/en.js
+++ b/hippo4j-ui/src/locale/lang/en.js
@@ -193,4 +193,12 @@ export default {
role: 'Role',
password: 'Password'
},
+
+ //日志管理
+ logManage: {
+ bizType: 'Biz Type',
+ bizID: 'Biz ID',
+ operator: 'Operator',
+ logContent: 'Log Content',
+ },
}
diff --git a/hippo4j-ui/src/locale/lang/zh.js b/hippo4j-ui/src/locale/lang/zh.js
index 1ef2609a..930effce 100644
--- a/hippo4j-ui/src/locale/lang/zh.js
+++ b/hippo4j-ui/src/locale/lang/zh.js
@@ -193,4 +193,12 @@ export default {
role: '角色',
password: '密码'
},
+
+ //日志管理
+ logManage: {
+ bizType: '业务类型',
+ bizID: '业务标识',
+ operator: '操作人',
+ logContent: '日志内容',
+ },
}
diff --git a/hippo4j-ui/src/views/hippo4j/log/index.vue b/hippo4j-ui/src/views/hippo4j/log/index.vue
index a06be2bb..dbe0e3c3 100755
--- a/hippo4j-ui/src/views/hippo4j/log/index.vue
+++ b/hippo4j-ui/src/views/hippo4j/log/index.vue
@@ -4,21 +4,21 @@
@@ -29,7 +29,7 @@
icon="el-icon-search"
@click="fetchData"
>
- 搜索
+ {{ $t('common.query') }}
-
+
{{ scope.$index + 1 }}
-
+
{{ scope.row.category }}
-
+
{{ scope.row.bizNo }}
-
+
{{ scope.row.action | ellipsis }}
-
+
{{ scope.row.operator }}
-
+
{{ scope.row.createTime }}
- 查看
+ {{ $t('common.detail') }}
@@ -80,45 +80,45 @@
-
+
-
+
-
+
-
+
-
+
@@ -227,8 +227,8 @@ export default {
this.fetchData();
this.dialogFormVisible = false;
this.$notify({
- title: 'Success',
- message: 'Created Successfully',
+ title: this.$t('message.success'),
+ message: this.$t('message.createdSuccess'),
type: 'success',
duration: 2000,
});
@@ -252,8 +252,8 @@ export default {
this.fetchData();
this.dialogFormVisible = false;
this.$notify({
- title: 'Success',
- message: 'Update Successfully',
+ title: this.$t('message.success'),
+ message: this.$t('message.updateSuccess'),
type: 'success',
duration: 2000,
});
@@ -266,8 +266,8 @@ export default {
jobProjectApi.deleted(row.tenantId).then((response) => {
this.fetchData();
this.$notify({
- title: 'Success',
- message: 'Delete Successfully',
+ title: this.$t('message.success'),
+ message: this.$t('message.deleteSuccess'),
type: 'success',
duration: 2000,
});