mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-07 17:10:07 +08:00
feat: 隐藏文件列表的用户和用户组
This commit is contained in:
parent
f4bd649126
commit
ff58314934
@ -13,8 +13,8 @@
|
|||||||
{{ computeSize(data.size) }}
|
{{ computeSize(data.size) }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :label="$t('file.role')">{{ data.mode }}</el-descriptions-item>
|
<el-descriptions-item :label="$t('file.role')">{{ data.mode }}</el-descriptions-item>
|
||||||
<el-descriptions-item :label="$t('file.user')">{{ data.user }}</el-descriptions-item>
|
<!-- <el-descriptions-item :label="$t('file.user')">{{ data.user }}</el-descriptions-item>
|
||||||
<el-descriptions-item :label="$t('file.group')">{{ data.group }}</el-descriptions-item>
|
<el-descriptions-item :label="$t('file.group')">{{ data.group }}</el-descriptions-item> -->
|
||||||
<el-descriptions-item :label="$t('commons.table.updatedAt')">
|
<el-descriptions-item :label="$t('commons.table.updatedAt')">
|
||||||
{{ dateFormatSimple(data.modTime) }}
|
{{ dateFormatSimple(data.modTime) }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<svg-icon v-if="row.isDir" className="table-icon" iconName="p-file-folder"></svg-icon>
|
<svg-icon v-if="row.isDir" className="table-icon" iconName="p-file-folder"></svg-icon>
|
||||||
<svg-icon v-else className="table-icon" :iconName="getIconName(row.extension)"></svg-icon>
|
<svg-icon v-else className="table-icon" :iconName="getIconName(row.extension)"></svg-icon>
|
||||||
<el-link :underline="false" @click="open(row)">{{ row.name }}</el-link>
|
<el-link :underline="false" @click="open(row)" type="primary">{{ row.name }}</el-link>
|
||||||
<span v-if="row.isSymlink">-> {{ row.linkPath }}</span>
|
<span v-if="row.isSymlink">-> {{ row.linkPath }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -95,8 +95,8 @@
|
|||||||
<el-link :underline="false" @click="openMode(row)" type="primary">{{ row.mode }}</el-link>
|
<el-link :underline="false" @click="openMode(row)" type="primary">{{ row.mode }}</el-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('file.user')" prop="user" show-overflow-tooltip></el-table-column>
|
<!-- <el-table-column :label="$t('file.user')" prop="user" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column :label="$t('file.group')" prop="group"></el-table-column>
|
<el-table-column :label="$t('file.group')" prop="group"></el-table-column> -->
|
||||||
<el-table-column :label="$t('file.size')" prop="size">
|
<el-table-column :label="$t('file.size')" prop="size">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span v-if="row.isDir">
|
<span v-if="row.isDir">
|
||||||
@ -139,7 +139,7 @@
|
|||||||
<Move ref="moveRef" @close="search" />
|
<Move ref="moveRef" @close="search" />
|
||||||
<Download ref="downloadRef" @close="search" />
|
<Download ref="downloadRef" @close="search" />
|
||||||
<Process :open="processPage.open" @close="closeProcess" />
|
<Process :open="processPage.open" @close="closeProcess" />
|
||||||
<Detail ref="detailRef" />
|
<!-- <Detail ref="detailRef" /> -->
|
||||||
</LayoutContent>
|
</LayoutContent>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -165,7 +165,7 @@ import Move from './move/index.vue';
|
|||||||
import Download from './download/index.vue';
|
import Download from './download/index.vue';
|
||||||
import { Mimetypes } from '@/global/mimetype';
|
import { Mimetypes } from '@/global/mimetype';
|
||||||
import Process from './process/index.vue';
|
import Process from './process/index.vue';
|
||||||
import Detail from './detail/index.vue';
|
// import Detail from './detail/index.vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { Back, Refresh } from '@element-plus/icons-vue';
|
import { Back, Refresh } from '@element-plus/icons-vue';
|
||||||
import { MsgWarning } from '@/utils/message';
|
import { MsgWarning } from '@/utils/message';
|
||||||
@ -205,7 +205,7 @@ const processPage = reactive({ open: false });
|
|||||||
|
|
||||||
const createRef = ref();
|
const createRef = ref();
|
||||||
const roleRef = ref();
|
const roleRef = ref();
|
||||||
const detailRef = ref();
|
// const detailRef = ref();
|
||||||
const compressRef = ref();
|
const compressRef = ref();
|
||||||
const deCompressRef = ref();
|
const deCompressRef = ref();
|
||||||
const codeEditorRef = ref();
|
const codeEditorRef = ref();
|
||||||
@ -439,9 +439,9 @@ const openDownload = () => {
|
|||||||
downloadRef.value.acceptParams(fileDownload);
|
downloadRef.value.acceptParams(fileDownload);
|
||||||
};
|
};
|
||||||
|
|
||||||
const openDetail = (row: File.File) => {
|
// const openDetail = (row: File.File) => {
|
||||||
detailRef.value.acceptParams({ path: row.path });
|
// detailRef.value.acceptParams({ path: row.path });
|
||||||
};
|
// };
|
||||||
|
|
||||||
const buttons = [
|
const buttons = [
|
||||||
{
|
{
|
||||||
@ -473,10 +473,10 @@ const buttons = [
|
|||||||
label: i18n.global.t('commons.button.delete'),
|
label: i18n.global.t('commons.button.delete'),
|
||||||
click: delFile,
|
click: delFile,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: i18n.global.t('file.info'),
|
// label: i18n.global.t('file.info'),
|
||||||
click: openDetail,
|
// click: openDetail,
|
||||||
},
|
// },
|
||||||
];
|
];
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user