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
6812ed53b83c59a1bc8f2cc509e9521c9dfd35bd
1 parent
98bbe85c
【1044】 【我的收藏夹】我的文件夹嵌套多个子文件夹导航提示栏样式重叠严重
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/favorites.js
hg-monitor-web-base/src/main/resources/static/src/controller/favorites.js
View file @
6812ed5
...
...
@@ -160,13 +160,22 @@ layui.define(['table', 'admin', 'form', 'common', 'sessions', 'reslist', 'common
$
(
"#favorites_parentId"
).
val
(
id
);
$
(
".empty"
).
hide
();
var
name
=
$
(
this
).
data
(
"name"
);
//lsq 文字超出10个省略 2022-09-01
var
nameAll
=
$
(
this
).
data
(
"name"
);
let
layTips
=
''
;
let
name
=
''
;
if
(
nameAll
&&
nameAll
.
length
>
10
){
name
=
nameAll
.
substring
(
0
,
10
)
+
'...'
;
layTips
=
'lay-tips="'
+
nameAll
+
'"'
;
}
else
{
name
=
nameAll
;
}
//动态加载面包屑
var
crubmDiv
=
''
;
if
(
res
&&
res
!=
'0'
)
{
//进入资源列表
crubmDiv
=
'<span lay-separator="">/</span> <a class="breadcrumb_a" data-flag="res" href="javascript:void(0)" id="'
+
id
+
'">'
+
name
+
'</a>'
;
crubmDiv
=
'<span lay-separator="">/</span> <a class="breadcrumb_a"
'
+
layTips
+
'
data-flag="res" href="javascript:void(0)" id="'
+
id
+
'">'
+
name
+
'</a>'
;
}
else
{
crubmDiv
=
'<span lay-separator="">/</span> <a class="breadcrumb_a" href="javascript:void(0)" id="'
+
id
+
'">'
+
name
+
'</a>'
;
crubmDiv
=
'<span lay-separator="">/</span> <a class="breadcrumb_a"
'
+
layTips
+
'
href="javascript:void(0)" id="'
+
id
+
'">'
+
name
+
'</a>'
;
}
if
(
isInArray
(
id
)
==
-
1
)
{
$
(
".layui-breadcrumb"
).
append
(
crubmDiv
);
...
...
Please
register
or
login
to post a comment