|
|
@ -134,6 +134,12 @@ export default defineComponent({ |
|
|
|
handleShowModal(renameShowRef) |
|
|
|
handleShowModal(renameShowRef) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleGoRoot = () => { |
|
|
|
|
|
|
|
router.push({ |
|
|
|
|
|
|
|
name: 'file-manage' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const updateList = () => { |
|
|
|
const updateList = () => { |
|
|
|
resourceListRef.value = getResourceListState( |
|
|
|
resourceListRef.value = getResourceListState( |
|
|
|
fileId.value, |
|
|
|
fileId.value, |
|
|
@ -226,6 +232,7 @@ export default defineComponent({ |
|
|
|
handleRenameFile, |
|
|
|
handleRenameFile, |
|
|
|
handleUpdatePage, |
|
|
|
handleUpdatePage, |
|
|
|
handleUpdatePageSize, |
|
|
|
handleUpdatePageSize, |
|
|
|
|
|
|
|
handleGoRoot, |
|
|
|
pagination: paginationReactive, |
|
|
|
pagination: paginationReactive, |
|
|
|
renameInfo, |
|
|
|
renameInfo, |
|
|
|
breadcrumbItemsRef |
|
|
|
breadcrumbItemsRef |
|
|
@ -291,11 +298,19 @@ export default defineComponent({ |
|
|
|
'header-extra': () => ( |
|
|
|
'header-extra': () => ( |
|
|
|
<NBreadcrumb separator='>' class={styles['breadcrumb']}> |
|
|
|
<NBreadcrumb separator='>' class={styles['breadcrumb']}> |
|
|
|
{this.breadcrumbItemsRef?.map((item: BreadcrumbItem) => { |
|
|
|
{this.breadcrumbItemsRef?.map((item: BreadcrumbItem) => { |
|
|
|
|
|
|
|
if (item.id === 0) { |
|
|
|
|
|
|
|
return ( |
|
|
|
|
|
|
|
<NBreadcrumbItem> |
|
|
|
|
|
|
|
<span onClick={this.handleGoRoot}>{item.fullName}</span> |
|
|
|
|
|
|
|
</NBreadcrumbItem> |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} else { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<NBreadcrumbItem href={item.id.toString()}> |
|
|
|
<NBreadcrumbItem href={item.id.toString()}> |
|
|
|
{item.fullName} |
|
|
|
{item.fullName} |
|
|
|
</NBreadcrumbItem> |
|
|
|
</NBreadcrumbItem> |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
})} |
|
|
|
})} |
|
|
|
</NBreadcrumb> |
|
|
|
</NBreadcrumb> |
|
|
|
), |
|
|
|
), |
|
|
|