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
118
119
120
121
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>等级协议</title>
[#include "/business/pages/include/static.html" /]
</head>
 
<body >
<input  type="hidden" id="type" name="type" value=""/>
<div class="fs_main clearfix" style="margin-top:10px;">
    <div class="fs_main fs_edit nopadding" style="border:1px solid #dadbdf ;" >
        <div class="deal_switch">
            <div class="dls_btn" id="dlsBtn">
                <a class="basicinfo focus"><span>人员</span></a>
                <a id="group" class="basicinfo"><span>角色</span></a>
            </div>
        </div>
        <div class="deal_switch_wrap">
            <div class="deal_switch_con iframecon" style="display:block;" >
                <table id="selExecutors" class="pab_con">
                [#if groupList??&&groupList?size>0]
                [#list groupList as group]
                    <tr><th>${group.name}</th><td>
                    [#assign userList=group.dataList]
                        [#if userList??&&userList?size>0]
                            [#list userList as user]
                            <div class="pabitem" style="margin-right:10px;">
                            <input name="checkbox" value="${user.USER_ID}" type="radio" class="pos"/><span>${user.USER_NAME}</span>&nbsp;
                            </div>
                            [/#list]
                        [/#if]
                    </td></tr>
                [/#list]
                [/#if]
            </table>
        
            </div>
            <div class="deal_switch_con iframecon" style="display:none;" >
                
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
var projectId='${RequestParameters.projectId}';
var serivceListId='${RequestParameters.serivceListId}';
var shownum=$("#shownum").val();
$(function() {
    
    $("#dlsBtn>a").click(function() {
        var index = $("#dlsBtn>a").index(this);
        $("#dlsBtn>a").removeClass("focus");
        $(this).addClass("focus");
        var $dom = $("div.deal_switch_con:eq("+index+")");
        $("#type").val(index+1);
        if($.util.isEmpty($.trim($dom.html()))) {
            switch(index){
                case 0:
                    $('div.deal_switch_con').eq(0).show();
                    break;
                case 1:
                    $.get("${base}/business/pages/incident/selectGroup.html",{},function(data){
                        $('div.deal_switch_con').eq(1).html(data);
                    });
                    break;
            }
        }
        
        $("div.deal_switch_con").hide();
        $dom.show();
        
     })
    
        $('div.deal_switch_con').hide();
        $('div.deal_switch_con').eq(0).show();
        $("#type").val(1);
        
})
function radioAddClick() {
        $('input.ropos').click( function() {
               var id = $(this).val();
               var text = $(this).next("span").text();
               $('#name').val(text);
               $('#userid').val(id);
        });
    }
function onDialogBtnClick(btnID, dialogID, config){
    if(btnID == "btnSure"){
       var typelx = $("#type").val();
       var alluserid1 = "";
       var allusername1 = "";
      if(typelx == 1){ 
        var checkUser = $(":radio:checked");
        if(checkUser.length==0) {
            popupTips("请选择人员");
            return;
        }
        alluserid1 = checkUser.val()+"-"+checkUser.next("span").text();
        allusername1 = checkUser.next("span").text();
      }
      if(typelx == 2){ 
         var checkUser = $(":radio.pos:checked");
        if(checkUser.length!=1) {
            popupTips("请选择人员");
            return;
        }
        alluserid1 = checkUser.val()+"-"+checkUser.next("span").text();
        allusername1 = checkUser.next("span").text();
      
      } 
      window.top.document.getElementById('dialogIframepersonList').contentWindow.selectUser(typelx,alluserid1,allusername1);
      window.top.hideDialog("dealer");
      
        
   }
}
 
</script>
</body>
</html>