123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>组织机构</title>
- <!--框架必需start-->
- <%@include file="../../include.jsp" %>
- <style>
- .l-layout-center{
- border:none!important;
- }
- .l-layout-left{
- border-bottom:none!important;
- }
- .l-layout-drophandle-left{
- width: 10px;
- }
- </style>
- </head>
- <body>
- <!-- <div class="b-m-mpanel" style="width: 150px;visibility:hidden;" id="rMenu">
- <div class="b-m-item" id="addUnit" onclick="addDept();">
- <img align="middle" src="../../../scripts/qui/libs/images/icons/add.png"/><span>新增单位</span>
- </div>
- <div class="b-m-item" id="addDept" onclick="addDept();">
- <img align="middle" src="../../../scripts/qui/libs/images/icons/add.png"/><span>新增部门</span>
- </div>
-
- <div class="b-m-item" id="addPerson" onclick="addPerson();">
- <img align="middle" src="../../../scripts/qui/libs/images/icons/add.png"/><span>新增人员</span>
- </div>
-
- <div class="b-m-item" id="DeletePerson" onclick="deleteData();">
- <img align="middle" src="../../../scripts/qui/libs/images/icons/close.png"/><span>删除人员</span>
- </div>
-
- <div class="b-m-item" id="DeleteDept" onclick="deleteData();">
- <img align="middle" src="../../../scripts/qui/libs/images/icons/close.png"/><span>删除部门</span>
- </div>
-
- </div> -->
- <table width="100%">
- <tr>
- <td class="ver01">
- <!-- <div class="box2" overflow="auto" showStatus="false" panelTitle="组织机构">
- <div class="cusBoxContent" style="width:300px;">
- <ul id="treeDept-gzfw" class="ztree"></ul>
- </div>
- </div> -->
-
- <div class="box2" showStatus="false" panelTitle="组织机构" style="overflow:auto;background-color:#F2F7F9;height:75%;">
- <div class="cusBoxContent" style="max-height:1500px;width:300px;overflow : auto;">
- <ul id="treeDept-gzfw" class="ztree"></ul>
- </div>
- </div>
-
- </td>
- <td width="100%" class="ver01" >
- <div id="tab_menu"></div>
- <div class="box1">
- <div id="page" style="width:100%;"></div>
- </div>
- </td>
- </tr>
- </table>
- <script type="text/javascript">
- //登陆人的机构id
- var loginOrgId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //示例2相关
- var setting = {
- view : {
- selectedMulti : false
- },
- edit: {
- enable: true,
- showRemoveBtn: false,
- showRenameBtn: false
- },
- async : {
- enable : true,
- dataType : 'JSON',
- dataName : 'treeNodes',
- aysnc : false,
- url : $.pathname()+ "/ws/InDepartmentService/InDepartmentService/getSysOrgInfoById",
- autoParam : [ "id", "name", "orgLevel" ],
- otherParam : ["deptId", loginOrgId]
- },
- callback: {
- onClick:zTreeSelect
-
- }
- };
- var zTree,node,tab;
- /***
- * 页面初始化
- */
- function initComplete(){
- zTree = $.fn.zTree.init($("#treeDept-gzfw"), setting);
- // initConstant();
- tab = new TabView( {
- containerId :'tab_menu',
- pageid :'page',
- cid :'tab1',
- position :"top"
- });
- }
- //点击树节点page/system/department/UserInfoEdit.jsp
- function zTreeSelect(event,treeId,treeNode) {
- //var type = treeNode.classId;
- var url = "DeptEdit.jsp?id="+treeNode.id+"&objectId="+treeNode.id;
- /***
- if(type=='807'){
- url = "UserInfoEdit.jsp?id="+treeNode.id+"&objectId="+treeNode.objectId;
- }
- */
- tabAddHandler(treeNode.id,treeNode.name,url);
- }
- function tabAddHandler(mid,mtitle,murl){
- tab.close(mid);
- tab.add({
- id :mid,
- title :mtitle,
- url :murl,
- isClosed :true
- });
- tab.activate(mid);
-
- }
-
- //处理高度自适应,每次浏览器尺寸变化时触发
- function customHeightSet(contentHeight){
- $(".cusBoxContent").height(contentHeight-50)
- $("#page").height(contentHeight-50);
- }
- </script>
- </body>
- </html>
|