This commit is contained in:
sjl
2024-10-24 12:28:12 +08:00
parent c12b8af133
commit 3af786876e
5 changed files with 154 additions and 128 deletions

View File

@@ -36,35 +36,20 @@ const proTable = ref<ProTableInstance>()
const columns = reactive<ColumnProps<Log.LogList>[]>([
{ type: 'selection', fixed: 'left', width: 50 },
{
prop: 'content',
label: '内容',
width: 600,
},
{
prop: 'record_Time',
label: '记录时间',
width: 180,
prop: 'id',
label: '序号',
width: 100,
},
{
prop: 'user',
label: '操作用户',
search: { el: 'select', props: { filterable: true } },
},
{
prop: 'type',
label: '日志类型',
search: { el: 'select', props: { filterable: true } },
},
{
prop: 'level',
label: '日志等级',
search: { el: 'select', props: { filterable: true } },
width: 150,
},
{
prop: 'record_Time',
label: '记录时间',
isShow: false,
width: 200,
search: {
span: 2,
render: ({ searchParam }) => {
@@ -76,6 +61,24 @@ const columns = reactive<ColumnProps<Log.LogList>[]>([
},
},
},
{
prop: 'content',
label: '内容',
},
{
prop: 'type',
label: '日志类型',
width: 200,
search: { el: 'select', props: { filterable: true } },
},
{
prop: 'level',
label: '日志等级',
width: 200,
search: { el: 'select', props: { filterable: true } },
},
])
//选中