From abd9c5e00a68f728906bc05b58d0d9abc1795855 Mon Sep 17 00:00:00 2001
From: sonake <760946378@qq.com>
Date: Wed, 8 Apr 2020 22:31:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/common/bottomBox/bottomBox.vue | 2 +-
.../common/bottomBox/tabs/alertMessageTab.vue | 2 +-
.../src/components/common/header.vue | 3 +
.../src/components/common/language/cn.js | 2 +-
.../src/components/common/language/en.js | 11 +-
.../components/common/searchSelectInfo.vue | 2 +-
.../src/components/page/alert/list.vue | 1 +
.../src/components/page/config/account.vue | 3 +
.../src/components/page/config/dc.vue | 3 +
.../src/components/page/config/mib.vue | 3 +
.../src/components/page/config/model.vue | 3 +
.../components/page/config/operationlog.vue | 291 ++++++++++++++++++
.../src/components/page/config/promServer.vue | 3 +
.../src/components/page/config/system.vue | 5 +-
.../components/page/config/terminallog.vue | 60 ++--
nezha-fronted/src/router/index.js | 4 +
16 files changed, 362 insertions(+), 36 deletions(-)
create mode 100644 nezha-fronted/src/components/page/config/operationlog.vue
diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
index c75206f28..205b5e69b 100644
--- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
+++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
@@ -34,7 +34,7 @@
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
index 0ea1b296c..d8a380434 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
@@ -74,7 +74,7 @@
{{key}}:{{value}}
+ size="mini" v-for="(value, key) in scope.row.labels" :key="key" class="alert-message-tag">{{key}}:{{value}}
diff --git a/nezha-fronted/src/components/common/header.vue b/nezha-fronted/src/components/common/header.vue
index 378021b19..f464af56c 100644
--- a/nezha-fronted/src/components/common/header.vue
+++ b/nezha-fronted/src/components/common/header.vue
@@ -116,6 +116,9 @@
{{$t('config.terminallog.terminallog')}}
+
+ {{$t('config.operationlog.operationlog')}}
+
diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js
index a91b0e352..2e2c4436c 100644
--- a/nezha-fronted/src/components/common/language/cn.js
+++ b/nezha-fronted/src/components/common/language/cn.js
@@ -373,7 +373,7 @@ const cn = {
checkTime: '检查时间'
},
terminallog: {
- terminallog: '终端',
+ terminallog: '终端日志',
status: '状态',//"可用"
option: '操作',//"操作",
host: '主机',
diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js
index 66c561e7b..f6cb9088f 100644
--- a/nezha-fronted/src/components/common/language/en.js
+++ b/nezha-fronted/src/components/common/language/en.js
@@ -538,7 +538,7 @@ const en = {
type: 'Type'
},
terminallog: {
- terminallog: 'TerminalLog',
+ terminallog: 'Terminal Log',
status: 'Status',//"状态"
option: 'Operation',//"操作",
host: 'Host',
@@ -566,6 +566,15 @@ const en = {
success: 'Success',
fail: 'Fail'
},
+ operationlog: {
+ operationlog: 'Operation Log',
+ id : 'ID',
+ username: 'User',
+ operation: 'Operation',
+ type: 'Type',
+ createDate: 'CreateDate',
+ ip: "IP"
+ },
mib:{
mib:'Mib',
fileName:'FileName',
diff --git a/nezha-fronted/src/components/common/searchSelectInfo.vue b/nezha-fronted/src/components/common/searchSelectInfo.vue
index 970fe0965..55b843ba0 100644
--- a/nezha-fronted/src/components/common/searchSelectInfo.vue
+++ b/nezha-fronted/src/components/common/searchSelectInfo.vue
@@ -68,7 +68,7 @@
label:i18n.t('alert.list.expired')
}
],
- terminalProtocol:[
+ protocol:[
{
value: 'SSH',
label: i18n.t('config.terminallog.SSH')
diff --git a/nezha-fronted/src/components/page/alert/list.vue b/nezha-fronted/src/components/page/alert/list.vue
index c920725d3..0d65415ce 100644
--- a/nezha-fronted/src/components/page/alert/list.vue
+++ b/nezha-fronted/src/components/page/alert/list.vue
@@ -85,6 +85,7 @@
-->