|
|
@@ -15,14 +15,20 @@ enum LogActionType { |
|
|
|
} |
|
|
|
|
|
|
|
const tableColumns: Array<ProColumns<DATA.LogItem>> = [ |
|
|
|
{ dataIndex: 'archName', title: '名称' }, |
|
|
|
{ dataIndex: 'projName', title: '所属文件夹', search: false, width: 400 }, |
|
|
|
{ dataIndex: 'archName', title: '名称', width: 150, ellipsis: true }, |
|
|
|
{ |
|
|
|
dataIndex: 'projName', |
|
|
|
title: '所属文件夹', |
|
|
|
search: false, |
|
|
|
width: 150, |
|
|
|
ellipsis: true, |
|
|
|
}, |
|
|
|
// { dataIndex: 'size', title: '大小', search: false }, |
|
|
|
{ |
|
|
|
dataIndex: 'actionType', |
|
|
|
title: '操作类型', |
|
|
|
search: false, |
|
|
|
width: 200, |
|
|
|
width: 96, |
|
|
|
valueEnum: { |
|
|
|
[LogActionType.Download]: '下载', |
|
|
|
[LogActionType.Delete]: '删除', |
|
|
@@ -31,11 +37,11 @@ const tableColumns: Array<ProColumns<DATA.LogItem>> = [ |
|
|
|
filters: true, |
|
|
|
onFilter: (v, record) => record.actionType === v, |
|
|
|
}, |
|
|
|
{ dataIndex: 'createUser', title: '操作人', search: false, width: 200 }, |
|
|
|
{ dataIndex: 'createUser', title: '操作人', search: false, width: 96 }, |
|
|
|
{ |
|
|
|
dataIndex: 'createTime', |
|
|
|
valueType: 'dateTime', |
|
|
|
width: 200, |
|
|
|
width: 150, |
|
|
|
title: '操作时间', |
|
|
|
search: false, |
|
|
|
sorter: (a, b) => a.timestamp - b.timestamp, |
|
|
@@ -78,6 +84,7 @@ export default function LogView() { |
|
|
|
<div className={styles.logView}> |
|
|
|
<ProTable<DATA.LogItem> |
|
|
|
rowKey="id" |
|
|
|
search={{ span: { xs: 24, sm: 24, md: 12, lg: 12, xl: 8, xxl: 6 } }} |
|
|
|
className={styles.tableWrapper} |
|
|
|
tableClassName={styles.table} |
|
|
|
columns={tableColumns} |
|
|
|