forked from zhangkaitao/es
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a92405
commit 313e46a
Showing
14 changed files
with
144 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
web/src/main/webapp/WEB-INF/jsp/admin/maintain/editor/selectForm.jsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<%@ page contentType="text/html;charset=UTF-8" language="java" %> | ||
<%@include file="/WEB-INF/jsp/common/taglibs.jspf"%> | ||
<%@include file="/WEB-INF/jsp/common/import-zTree-css.jspf"%> | ||
|
||
<div id="selectTree"></div> | ||
|
||
<%@include file="/WEB-INF/jsp/common/import-zTree-js.jspf"%> | ||
<script type="text/javascript"> | ||
$(function() { | ||
var zNodes =[ | ||
<c:forEach items="${trees}" var="m"> | ||
{ id:${m.id}, pId:${m.pId}, name:"${m.name}", path : "${m.path}", iconSkin:"${m.iconSkin}", open: ${m.open}, root : ${m.root},isParent:${m.isParent}}, | ||
</c:forEach> | ||
]; | ||
var excludePaths = []; | ||
<c:forEach items="${excludePaths}" var="path"> | ||
excludePaths.push('${path}'); | ||
</c:forEach> | ||
$.zTree.initMovableTree({ | ||
containerId : "selectTree", | ||
zNodes : zNodes, | ||
urlPrefix : "${ctx}/admin/maintain/editor", | ||
async : true, | ||
setting : { | ||
async : { | ||
type: "get", | ||
autoParam : ["id", "path"], | ||
otherParam : ["paths", excludePaths.join(",")] | ||
} | ||
} | ||
}); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<script src="${ctx}/static/comp/zTree/js/jquery.ztree.all-3.5.js?3"></script> | ||
<script src="${ctx}/static/comp/zTree/js/tree.common.js?4"></script> | ||
<script src="${ctx}/static/comp/zTree/js/tree.common.js?5"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.