操作日志界面调整

This commit is contained in:
sonake
2020-04-17 17:19:33 +08:00
parent 95ca2ed263
commit 688e08e263
4 changed files with 54 additions and 13 deletions

View File

@@ -587,8 +587,13 @@ const cn = {
username: "用户名", username: "用户名",
operation: "操作", operation: "操作",
type: "类型", type: "类型",
createDate: "创建时间", createDate: "操作时间",
ip: "IP" ip: "IP",
userId: "UserId",
operaId: "数据ID",
time: "耗时",
params: "请求参数",
state: "请求结果"
}, },
mib: { mib: {
mib: "SNMP MIB", mib: "SNMP MIB",

View File

@@ -590,8 +590,13 @@ const en = {
username: 'User', username: 'User',
operation: 'Operation', operation: 'Operation',
type: 'Type', type: 'Type',
createDate: 'CreateDate', createDate: 'Date',
ip: "IP" ip: "IP",
userId: "UserId",
operaId: "OperaId",
time: "Time",
params: "Params",
state: "State"
}, },
mib:{ mib:{
mib:'SNMP MIB', mib:'SNMP MIB',

View File

@@ -58,6 +58,32 @@
label:i18n.t('asset.pingActive') 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: [ alertMessageState: [
{ {
value: '1', value: '1',

View File

@@ -150,24 +150,29 @@
show: true, show: true,
}, },
{ {
label: this.$t('config.operationlog.createDate'), label: this.$t('config.operationlog.state'),
prop: 'createDate', prop: 'state',
show: true, show: true,
}, },
{ // {
label: this.$t('config.operationlog.userId'), // label: this.$t('config.operationlog.userId'),
prop: 'userId', // prop: 'userId',
show: false, // show: false,
}, // },
{ {
label: this.$t('config.operationlog.operaId'), label: this.$t('config.operationlog.operaId'),
prop: 'operaId', prop: 'operaId',
show: false, show: false,
}, },
{
label: this.$t('config.operationlog.createDate'),
prop: 'createDate',
show: true,
},
{ {
label: this.$t('config.operationlog.time'), label: this.$t('config.operationlog.time'),
prop: 'time', prop: 'time',
show: true, show: false,
}, },
{ {
label: this.$t('config.operationlog.params'), label: this.$t('config.operationlog.params'),
@@ -196,7 +201,7 @@
},{ },{
id: 13, id: 13,
name: this.$t('config.operationlog.operation'), name: this.$t('config.operationlog.operation'),
type: 'input', type: 'selectString',
label: 'operation', label: 'operation',
disabled: false disabled: false
} }