cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>用户选择</title>
[#include "/business/pages/include/static.html" /]
</head>
<body>
<div class="fs_main equip_add clearfix monitor_report" >
    <div class="ucmLeft" style="width:20%">
        <!--部门树2016-01-14-->
        <div id="cateTree">
        <div class="new_three_tree" id="treea">
            <div class="ntt_title"><span></span><a href="${base}/common/userList.html" target="userIframe">部门树</a></div>
            [#if bms?? && bms?size>0]
                [#list bms as cate]
                    <div class="ntt_one  firstTree"><span></span><a href="${base}/common/userList.html?id=${cate.ID}" target="userIframe">${cate.JGMC}</a></div>
                    [#if cate.ejTree?? && cate.ejTree?size>0]
                        <ul class="ntt_two_con" style="display:none;">
                            [#list cate.ejTree as ej]
                                <li class="ntt_two secondTree">
                                    <div class="ntt_two_btn secondTreeBtn"><span></span><a href="${base}/common/userList.html?id=${ej.ID}" target="userIframe">${ej.JGMC}</a></div>
                                    [#if ej.sjTree?? && ej.sjTree?size>0]
                                        <ul class="thirdTree" style="display:none;">
                                            [#list ej.sjTree as sj]
                                                <li class="current"><span></span><a href="${base}/common/userList.html?id=${sj.ID}" target="userIframe">${sj.JGMC}</a></li>
                                            [/#list]
                                        </ul>
                                    [/#if]
                                </li>
                            [/#list]
                        </ul>
                    [/#if]
                [/#list]
            [#else]
            <div class="loadpos"><span class="nodata"></span></div>
            [/#if]
        </div>
        </div>
    </div>
    <div class="expert_base" style="width:75%">
        <iframe frameborder="0" width="100%" name="userIframe" id="userIframe" height="600px" src="${base}/common/userList.html"></iframe>
    </div>
</div>
 
<script type="text/javascript">
 
$(function() {
    $("div.firstTree").click(function() {
        var $nextUl = $(this).next("ul");
        if ($nextUl.is(":visible")) {
            $(this).removeClass("current");
            $nextUl.slideUp("show");
        } else {
            $(this).addClass("current");
            $nextUl.slideDown("show");
        }
    });
 
    $("li.secondTree").click(function() {
        var $nextUl = $(this).find("ul");
        if ($nextUl.is(":visible")) {
            $(this).find(".secondTreeBtn").removeClass("current");
            $nextUl.slideUp("show");
        } else {
            $(this).find(".secondTreeBtn").addClass("current");
            $nextUl.slideDown("show");
        }
    });
 
    $("div.firstTree>a").click(function(event) {
        afocus($(this));
        event.stopPropagation();
    });
 
    $("div.secondTreeBtn>a").click(function(event) {
        afocus($(this));
        event.stopPropagation();
    });
 
    $("ul.thirdTree a").click(function(event) {
        afocus($(this));
        event.stopPropagation();
    });
    
})
 
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            var $radio = $(window.document).contents().find("#userIframe").contents().find("input[name=userId]:checked");
            var userId = $radio.val();
            var userName = $radio.next().val();
            
            [#if RequestParameters.iframe_lv1_id?length<=0]
                window.parent.showUser(userId,userName);
            [#else]
                [#if RequestParameters.iframe_lv2_id?length<=0]
                window.top.document.getElementById("${RequestParameters.iframe_lv1_id}").contentWindow
                .showUser(userId,userName);        
                [#else]
                    window.top.document.getElementById("${RequestParameters.iframe_lv1_id}").contentWindow
                        .document.getElementById("${RequestParameters.iframe_lv2_id}").contentWindow
                        .showUser(userId,userName);
                [/#if]
            [/#if]
            window.top.hideDialog(dialogID);
        }
    }
 
var $treea = $("#treea a");
function afocus($dom) {
    $treea.removeClass("current");
    $dom.addClass("current");
}
</script>
</body>
</html>