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
aec6beb66225d2c5d34942b251a407c847776a26
1 parent
f31544f7
页面添加右键功能,增加延时
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
hg-monitor-web-base/src/main/resources/static/src/pageTips.js
hg-monitor-web-base/src/main/resources/static/src/pageTips.js
View file @
aec6beb
...
...
@@ -136,22 +136,21 @@ layui.define(['element', 'admin'], function (exports) {
that
.
getTipsDetail
(
elementName
,
thatItem
);
})
},
1000
)
}
// 循环绑定事件
var
bind
=
function
()
{
$
(
contextmenus
).
each
(
function
(
index
)
{
let
val
=
contextmenus
[
index
];
if
(
val
.
indexOf
(
'el::'
)
!=
-
1
)
{
let
elName
=
val
.
replace
(
'el::'
,
''
);
bindContextEvent
(
elName
,
0
);
}
})
//lsq 表格数据中的元素有时绑定不了事件,加延时 2022-08-11
setTimeout
(
function
(){
$
(
contextmenus
).
each
(
function
(
index
)
{
let
val
=
contextmenus
[
index
];
if
(
val
.
indexOf
(
'el::'
)
!=
-
1
)
{
let
elName
=
val
.
replace
(
'el::'
,
''
);
bindContextEvent
(
elName
,
0
);
}
})
},
300
)
}
// 获取当前页面,是否在配置中
var
page
=
that
.
getCurrentHash
();
$
(
contextmenus
).
each
(
function
(
index
)
{
...
...
Please
register
or
login
to post a comment