Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
12a925dd
Commit
12a925dd
authored
Nov 05, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加双击的事件
parent
ab3edd80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/main/webapp/WEB-INF/common/common_tree_dlg.html
+12
-4
No files found.
src/main/webapp/WEB-INF/common/common_tree_dlg.html
View file @
12a925dd
...
...
@@ -71,26 +71,34 @@
<script
type=
"text/javascript"
>
var
ZTreeDlg
=
{};
var
ZTreeDlg
=
{
index
:
parent
.
layer
.
getFrameIndex
(
window
.
name
)
};
ZTreeDlg
.
onClickItem
=
function
(
e
,
treeId
,
treeNode
)
{
$
{
formName
}
=
ZTreeDlg
.
instance
.
getSelectedVal
();
$
{
formId
}
=
treeNode
.
id
;
};
ZTreeDlg
.
onDBClickItem
=
function
(
e
,
treeId
,
treeNode
)
{
$
{
formName
}
=
ZTreeDlg
.
instance
.
getSelectedVal
();
$
{
formId
}
=
treeNode
.
id
;
parent
.
layer
.
close
(
ZTreeDlg
.
index
);
};
$
(
function
()
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
//获取窗口索引
$
(
"#closeButton"
).
bind
(
"click"
,
function
()
{
parent
.
layer
.
close
(
index
);
parent
.
layer
.
close
(
ZTreeDlg
.
index
);
});
$
(
"#saveButton"
).
bind
(
"click"
,
function
()
{
parent
.
layer
.
close
(
index
);
parent
.
layer
.
close
(
ZTreeDlg
.
index
);
});
var
ztree
=
new
$ZTree
(
"zTree"
,
"${treeUrl}"
);
ztree
.
bindOnClick
(
ZTreeDlg
.
onClickItem
);
ztree
.
bindOnDblClick
(
ZTreeDlg
.
onDBClickItem
);
ztree
.
init
();
ZTreeDlg
.
instance
=
ztree
;
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment