cy
2022-06-22 6e06bba1c89f8077e29d0fbf0ce12f89f027d8d2
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
[#include "/business/pages/include/static.html" /]
[#include "/component/sel.html" /]
<title>选择执行人</title>
</head>
<body class="personnel_allocation_body">
<table id="selExecutors" class="pab_con">
    [#if resList??&&resList?size>0]
    [#list resList as item]
        [#assign userList=item.dataList]
        [#if userList??&&userList?size>0]<tr><th>${item.name}</th><td>[/#if]
            [#if userList??&&userList?size>0]
                [#list userList as user]
                <div class="pabitem">
                <input [#if pattern??&&pattern=="single"]name="checkbox"[/#if] value="${user.USER_ID}" class="pos" type="checkbox" /><span>${user.USER_NAME}</span>
                </div>
                [/#list]
            [/#if]
        </td></tr>
    [/#list]
    [/#if]
</table>
</body>
 
<script type="text/javascript">
 
    //点击事件
    function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            var generalId = '${generalId}';
            var trIndex = '${trIndex}';
            var executorIds='';
            var executorNames='';
            $('input:checkbox:checked').each(function(){
                if(executorIds==''){
                    executorIds+=$(this).val();
                    executorNames=$(this).parent().next("span").text();
                }else{
                    executorIds = executorIds + ',' + $(this).val();
                    executorNames=executorNames + ',' + $(this).parent().next("span").text();
                }    
            });
            $.post("${base}/business/pages/ciadd/saveCollectionPerson.html",{generalId:generalId,executorIds:executorIds},function(data){});
            window.parent.addExecutor(trIndex,executorIds,executorNames);
             window.top.hideDialog(dialogID);
        }
    }
</script>
</html>