Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
鲁尚清
3 years ago
Commit
1af58d1354b471c25765c6f0c494085d08b3b994
1 parent
b6683e13
文档管理列表添加面包屑
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
2 deletions
hg-monitor-web-base/src/main/resources/static/vue3/public/css/base.css
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.html
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.js
hg-monitor-web-base/src/main/resources/static/vue3/public/css/base.css
View file @
1af58d1
...
...
@@ -58,4 +58,11 @@ custom-class="config-dialog"
}
.button-more
{
position
:
absolute
;
right
:
0
;
top
:
33px
;
z-index
:
1
;
background
:
#f5f7fa
;
width
:
80px
;
padding
:
10px
;
}
.breadcrumb
.el-breadcrumb
{
background
:
#ffffff
;
padding
:
20px
5px
0
;
}
.breadcrumb
.el-breadcrumb
.el-breadcrumb__item
{
cursor
:
pointer
;
}
\ No newline at end of file
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.html
View file @
1af58d1
...
...
@@ -91,6 +91,17 @@
</div>
<!--列表-->
<div
v-if=
"activeBtn == 'list'"
>
<el-row>
<el-col
:span=
"24"
class=
"breadcrumb"
>
<el-breadcrumb
:separator-icon=
"ArrowRight"
>
<template
v-for=
"(item,index) in breadcrumbList"
>
<el-breadcrumb-item
:key=
"index"
v-if=
"item.data.name"
@
click=
"nodeClick(item, item.data)"
>
{{item.data.name}}
</el-breadcrumb-item>
</template>
</el-breadcrumb>
</el-col>
</el-row>
<cm-table-page
:columns=
"columns"
:dataList=
"dataList"
@
loaddata=
"getPage"
:showIndex=
"true"
:showBorder=
"false"
:showSelection=
"false"
:showTools=
"isEditName"
:showPage=
"false"
:height=
"height - 54"
>
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.js
View file @
1af58d1
...
...
@@ -132,6 +132,11 @@ export default {
let
historyNode
=
Vue
.
ref
([]);
let
isUserFolder
=
Vue
.
ref
(
false
);
/*面包屑路径数据
* lu
*/
let
breadcrumbList
=
Vue
.
ref
([]);
let
addHistoryNode
=
(
item
)
=>
{
if
(
item
.
name
==
undefined
&&
item
.
fileName
)
{
...
...
@@ -148,6 +153,8 @@ export default {
arr
.
push
(
item
);
historyNode
.
value
=
arr
;
}
breadcrumbList
.
value
.
push
({
data
:
item
});
console
.
log
(
"breadcrumbList"
,
breadcrumbList
.
value
)
currentNodeData
.
value
=
item
;
}
...
...
@@ -307,8 +314,14 @@ export default {
let
arr
=
[];
arr
.
push
(
id
);
defaultExpandedKeys
.
value
=
arr
;
let
indexSlice
=
''
;
let
arrList
=
breadcrumbList
.
value
;
arrList
.
map
((
item
,
index
)
=>
{
if
(
id
==
item
.
data
.
id
){
indexSlice
=
index
}
})
breadcrumbList
.
value
=
arrList
.
slice
(
0
,
indexSlice
)
addHistoryNode
(
data
);
getPage
(
id
);
...
...
@@ -866,6 +879,7 @@ export default {
return
{
/* viewEdit,*/
breadcrumbList
,
editFileName
,
isInput
,
iconclass
,
...
...
Please
register
or
login
to post a comment