mirror of
https://github.com/MCSManager/UI.git
synced 2025-03-01 18:55:31 +08:00
Feat: add file permission col
This commit is contained in:
parent
b388585d4f
commit
ebf8cd87ed
@ -164,10 +164,12 @@
|
||||
prop="typeText"
|
||||
:label="$t('fileManager.fileType')"
|
||||
width="120"
|
||||
class="only-pc-display"
|
||||
></el-table-column>
|
||||
<el-table-column :label="$t('fileManager.fileSize')" width="140">
|
||||
<el-table-column :label="$t('fileManager.fileSize')" width="110">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.size > 1024 * 1024 * 1024"
|
||||
>{{ Number(Number(scope.row.size) / 1024 / 1024 / 1024).toFixed(0) }} GB</span
|
||||
>
|
||||
<span v-if="scope.row.size > 1024 * 1024"
|
||||
>{{ Number(Number(scope.row.size) / 1024 / 1024).toFixed(0) }} MB</span
|
||||
>
|
||||
@ -179,6 +181,11 @@
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="权限" width="80">
|
||||
<template #default="scope">
|
||||
{{ scope.row.mode }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="timeText"
|
||||
:label="$t('fileManager.lastEdit')"
|
||||
@ -473,9 +480,7 @@ export default defineComponent({
|
||||
" " +
|
||||
new Date(iterator.time).toLocaleTimeString();
|
||||
this.files.push({
|
||||
name: iterator.name,
|
||||
type: iterator.type,
|
||||
size: iterator.size,
|
||||
...iterator,
|
||||
typeText: typeText,
|
||||
timeText: timeText
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user