mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
feat(system): 优化系统日志页面布局和功能
- 修改系统日志页面的列配置,增加固定列和对齐方式 - 优化表格组件的样式和功能,支持右列固定和自定义样式 - 调整分页配置,统一表格相关属性
This commit is contained in:
@@ -288,7 +288,9 @@ export const columnList = [
|
||||
title: '操作',
|
||||
dataIndex: 'operate',
|
||||
key: 'operate',
|
||||
scopedSlots: { customRender: 'action' }
|
||||
scopedSlots: { customRender: 'action' },
|
||||
fixed: 'right',
|
||||
align: 'center'
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -350,45 +352,30 @@ export const columnList = [
|
||||
]
|
||||
},
|
||||
{
|
||||
page: 'log',
|
||||
page: 'syslog',
|
||||
columns: [
|
||||
{
|
||||
title: '用户',
|
||||
dataIndex: 'userName',
|
||||
width: 180
|
||||
title: '日志ID',
|
||||
dataIndex: 'log_id'
|
||||
},
|
||||
|
||||
{
|
||||
title: '日志类型',
|
||||
dataIndex: 'type',
|
||||
key: 'type',
|
||||
width: 120,
|
||||
title: '操作用户',
|
||||
dataIndex: 'user_id',
|
||||
key: 'user_id',
|
||||
width: 120
|
||||
},
|
||||
|
||||
scopedSlots: { customRender: 'type' }
|
||||
},
|
||||
{
|
||||
title: '操作类型',
|
||||
dataIndex: 'opType',
|
||||
key: 'opType',
|
||||
width: 120,
|
||||
|
||||
scopedSlots: { customRender: 'opType' }
|
||||
},
|
||||
{
|
||||
title: 'ip',
|
||||
dataIndex: 'ip',
|
||||
key: 'ip'
|
||||
},
|
||||
{
|
||||
title: '内容',
|
||||
dataIndex: 'msg',
|
||||
key: 'msg',
|
||||
title: '日志内容',
|
||||
dataIndex: 'content',
|
||||
key: 'content',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: '生成时间',
|
||||
dataIndex: 'createTime',
|
||||
key: 'createTime',
|
||||
title: '记录时间',
|
||||
dataIndex: 'create_time',
|
||||
key: 'create_time',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
width: 180
|
||||
@@ -406,7 +393,6 @@ export const columnList = [
|
||||
title: '操作',
|
||||
dataIndex: 'operate',
|
||||
key: 'operate',
|
||||
width: 80,
|
||||
scopedSlots: { customRender: 'action' }
|
||||
}
|
||||
]
|
||||
@@ -871,8 +857,58 @@ export const alarmlogOptions = [
|
||||
label: '状态',
|
||||
type: 'select',
|
||||
list: [
|
||||
{ value: 0, label: '异常' },
|
||||
{ value: 1, label: '正常' }
|
||||
{ value: '0', label: '异常' },
|
||||
{ value: '1', label: '正常' }
|
||||
],
|
||||
value: [],
|
||||
key: 'status'
|
||||
}
|
||||
],
|
||||
ruleForm: {}
|
||||
}
|
||||
]
|
||||
export const syslogOptions = [
|
||||
{
|
||||
title: '基础信息',
|
||||
icon: 'icon-xinxi',
|
||||
list: [
|
||||
{
|
||||
label: '日志ID',
|
||||
value: '',
|
||||
key: 'log_id',
|
||||
type: 'input'
|
||||
},
|
||||
|
||||
{
|
||||
label: '操作用户ID',
|
||||
value: '',
|
||||
key: 'user_id',
|
||||
type: 'input',
|
||||
disabled: true
|
||||
},
|
||||
|
||||
{
|
||||
label: '日志内容',
|
||||
value: '',
|
||||
key: 'content',
|
||||
type: 'textarea',
|
||||
disabled: true,
|
||||
className: 'item-l',
|
||||
rows: 8
|
||||
},
|
||||
{
|
||||
label: '记录时间',
|
||||
value: '',
|
||||
key: 'create_time',
|
||||
type: 'input'
|
||||
},
|
||||
|
||||
{
|
||||
label: '状态',
|
||||
type: 'select',
|
||||
list: [
|
||||
{ value: '0', label: '异常' },
|
||||
{ value: '1', label: '正常' }
|
||||
],
|
||||
value: [],
|
||||
key: 'status'
|
||||
|
||||
Reference in New Issue
Block a user