文件加入排序选项

This commit is contained in:
chuzhongzai 2024-11-03 15:45:36 +08:00
parent a25b7bba3b
commit bb6d4d8e28

View File

@ -498,19 +498,19 @@ watch(router.currentRoute, (now, old) =>{
</el-popover>
</template>
</el-table-column>
<el-table-column label="文件名" width="500px">
<el-table-column label="文件名" width="500px" sortable sort-by="name">
<template #default="scoped">
{{scoped.row.name}}
</template>
</el-table-column>
<el-table-column label="大小" width="100px">
<el-table-column label="大小" width="100px" sortable sort-by="size">
<template #default="scoped">
<span v-if="scoped.row.type === 'FILE'">
{{Util.formatSize(scoped.row.size)}}
</span>
</template>
</el-table-column>
<el-table-column label="修改时间">
<el-table-column label="修改时间" sortable sort-by="lastModify">
<template #default="scoped">
{{Util.formatDate(scoped.row.lastModify)}}
</template>