diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js index 9a852aa65..704dc2357 100644 --- a/nezha-fronted/src/components/common/language/cn.js +++ b/nezha-fronted/src/components/common/language/cn.js @@ -587,8 +587,13 @@ const cn = { username: "用户名", operation: "操作", type: "类型", - createDate: "创建时间", - ip: "IP" + createDate: "操作时间", + ip: "IP", + userId: "UserId", + operaId: "数据ID", + time: "耗时", + params: "请求参数", + state: "请求结果" }, mib: { mib: "SNMP MIB", diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index 4abfdb975..e2ca34e52 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -590,8 +590,13 @@ const en = { username: 'User', operation: 'Operation', type: 'Type', - createDate: 'CreateDate', - ip: "IP" + createDate: 'Date', + ip: "IP", + userId: "UserId", + operaId: "OperaId", + time: "Time", + params: "Params", + state: "State" }, mib:{ mib:'SNMP MIB', diff --git a/nezha-fronted/src/components/common/searchSelectInfo.vue b/nezha-fronted/src/components/common/searchSelectInfo.vue index 55b843ba0..17fb19c82 100644 --- a/nezha-fronted/src/components/common/searchSelectInfo.vue +++ b/nezha-fronted/src/components/common/searchSelectInfo.vue @@ -58,6 +58,32 @@ label:i18n.t('asset.pingActive') } ], + operation: [ + { + value: 'add', + label: i18n.t('overall.add') + }, + { + value: 'update', + label: i18n.t('overall.edit') + }, + { + value: 'query', + label: i18n.t('overall.query') + }, + { + value: 'import', + label: i18n.t('overall.importExcelLower') + }, + { + value: 'export', + label: i18n.t('overall.exportExcelLower') + }, + { + value: 'reset', + label: i18n.t('overall.reset') + } + ], alertMessageState: [ { value: '1', diff --git a/nezha-fronted/src/components/page/config/operationlog.vue b/nezha-fronted/src/components/page/config/operationlog.vue index 7dc6e48f1..9e7a96397 100644 --- a/nezha-fronted/src/components/page/config/operationlog.vue +++ b/nezha-fronted/src/components/page/config/operationlog.vue @@ -150,24 +150,29 @@ show: true, }, { - label: this.$t('config.operationlog.createDate'), - prop: 'createDate', + label: this.$t('config.operationlog.state'), + prop: 'state', show: true, }, - { - label: this.$t('config.operationlog.userId'), - prop: 'userId', - show: false, - }, + // { + // label: this.$t('config.operationlog.userId'), + // prop: 'userId', + // show: false, + // }, { label: this.$t('config.operationlog.operaId'), prop: 'operaId', show: false, }, + { + label: this.$t('config.operationlog.createDate'), + prop: 'createDate', + show: true, + }, { label: this.$t('config.operationlog.time'), prop: 'time', - show: true, + show: false, }, { label: this.$t('config.operationlog.params'), @@ -196,7 +201,7 @@ },{ id: 13, name: this.$t('config.operationlog.operation'), - type: 'input', + type: 'selectString', label: 'operation', disabled: false }