mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 20:57:10 +08:00
refactor(system/file): 添加文件路径和md5值 (#52)
This commit is contained in:
@@ -204,8 +204,14 @@ export interface FileItem {
|
|||||||
name: string
|
name: string
|
||||||
size: number
|
size: number
|
||||||
url: string
|
url: string
|
||||||
|
parentPath: string
|
||||||
|
absPath: string
|
||||||
|
metadata: string
|
||||||
|
md5: string
|
||||||
|
contentType: string
|
||||||
thumbnailSize: number
|
thumbnailSize: number
|
||||||
thumbnailUrl: string
|
thumbnailUrl: string
|
||||||
|
thumbnailMetadata: string
|
||||||
extension: string
|
extension: string
|
||||||
type: number
|
type: number
|
||||||
storageId: string
|
storageId: string
|
||||||
@@ -226,6 +232,7 @@ export interface FileStatisticsResp {
|
|||||||
export interface FileQuery {
|
export interface FileQuery {
|
||||||
name?: string
|
name?: string
|
||||||
type?: string
|
type?: string
|
||||||
|
absPath?: string
|
||||||
sort: Array<string>
|
sort: Array<string>
|
||||||
}
|
}
|
||||||
export interface FilePageQuery extends FileQuery, PageQuery {
|
export interface FilePageQuery extends FileQuery, PageQuery {
|
||||||
|
@@ -13,6 +13,8 @@
|
|||||||
</a-typography-paragraph>
|
</a-typography-paragraph>
|
||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
<a-descriptions-item label="大小">{{ formatFileSize(data.size) }}</a-descriptions-item>
|
<a-descriptions-item label="大小">{{ formatFileSize(data.size) }}</a-descriptions-item>
|
||||||
|
<a-descriptions-item label="路径">{{ data.absPath + getFileName(data) }}</a-descriptions-item>
|
||||||
|
<a-descriptions-item label="MD5">{{ data.md5 }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="上传时间">{{ data.createTime }}</a-descriptions-item>
|
<a-descriptions-item label="上传时间">{{ data.createTime }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="修改时间">{{ data.updateTime }}</a-descriptions-item>
|
<a-descriptions-item label="修改时间">{{ data.updateTime }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="存储名称">{{ data.storageName }}</a-descriptions-item>
|
<a-descriptions-item label="存储名称">{{ data.storageName }}</a-descriptions-item>
|
||||||
|
@@ -17,6 +17,10 @@
|
|||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
|
|
||||||
<a-input-group>
|
<a-input-group>
|
||||||
|
<a-input
|
||||||
|
v-model="queryForm.absPath" placeholder="路径" allow-clear style="width: 300px"
|
||||||
|
@change="search"
|
||||||
|
/>
|
||||||
<a-input
|
<a-input
|
||||||
v-model="queryForm.name" placeholder="搜索文件名" allow-clear style="width: 200px"
|
v-model="queryForm.name" placeholder="搜索文件名" allow-clear style="width: 200px"
|
||||||
@change="search"
|
@change="search"
|
||||||
@@ -110,6 +114,7 @@ const { mode, selectedFileIds, toggleMode, addSelectedFileItem } = useFileManage
|
|||||||
|
|
||||||
const queryForm = reactive<FileQuery>({
|
const queryForm = reactive<FileQuery>({
|
||||||
name: undefined,
|
name: undefined,
|
||||||
|
absPath: undefined,
|
||||||
type: route.query.type?.toString() !== '0' ? route.query.type?.toString() : undefined,
|
type: route.query.type?.toString() !== '0' ? route.query.type?.toString() : undefined,
|
||||||
sort: ['updateTime,desc'],
|
sort: ['updateTime,desc'],
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user