备注 | 修改日期 | 修改人 | |
格式调整 | 2019-12-01 19:33:48[当前版本] | 系统管理员 | |
格式调整 | 2019-12-01 19:32:19 | 系统管理员 | |
格式调整 | 2019-12-01 14:30:35 | 系统管理员 | |
格式调整 | 2019-12-01 14:22:23 | 系统管理员 | |
, { id : 'move', text : '移动', iconCls : 'icon-communication', handler : moveTree}
//移动节点 function moveTree() { var selectedArray = $(gridProjecttype).datagrid('getSelections'); if (selectedArray.length > 0) { $.farm.openWindow( { id : 'projectTypeTreeNodeWin', width : 250, height : 300, modal : true, url : "projecttype/treeNodeTreeView.do?ids=" + $.farm.getCheckedIds(gridProjecttype, 'ID'), title : '移动分类' }); } else { $.messager.alert(MESSAGE_PLAT.PROMPT, MESSAGE_PLAT.CHOOSE_ONE, 'info'); } }
<%@ page language="java" pageEncoding="utf-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib uri="/view/conf/farmtag.tld" prefix="PF"%> <div class="easyui-layout" data-options="fit:true"> <div data-options="region:'north',border:false"> <div class="TREE_COMMON_BOX_SPLIT_DIV"> <a id="ChooseProjectTreeReload" href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true" iconCls="icon-reload">刷新菜单</a> <a id="ChooseProjectTreeOpenAll" href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true" iconCls="icon-sitemap">全部展开</a> </div> </div> <div data-options="region:'center',border:false"> <ul id="ChooseProjectTree"></ul> </div> </div> <script type="text/javascript"> var currentType, currentTypeName; $(function() { $('#ChooseProjectTree').tree({ url : 'projecttype/projectTypeTree.do', onSelect : function(node) { //$('#PARENTID_RULE').val(node.id); //$('#PARENTTITLE_RULE').val(node.text); chooseWindowCallBackHandle(node); } }); $('#ChooseProjectTreeReload').bind('click', function() { $('#ChooseProjectTree').tree('reload'); }); $('#ChooseProjectTreeOpenAll').bind('click', function() { $('#ChooseProjectTree').tree('expandAll'); }); }); </script>