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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>index</title>
[#include "/business/pages/include/static.html" /]
[#include "/component/DatePicker.html" /]
[#include "/component/sel.html" /]
<link rel="stylesheet" href="${common_static}/static/plugins/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="${common_static}/static/plugins/ztree/js/jquery.ztree.all-3.5.min.js"></script>
</head>
 
<body class="personnel_allocation_body">
 
 
<div>
<form id="myform" action="" method="post">
    <input name="orderId" value="${orderId}" type="hidden"/>
    <input name="nodeId" value="${nodeId}" type="hidden"/>
    <input name="nextUserId"  id="nextUserId" type="hidden"/>
    <input name="nextUserName" id="nextUserName" type="hidden"/>
    
    <table class="pab_con" style="margin:0 auto;">
        [#if roleList?? && roleList?size > 0]
           [#list roleList as role]
            <tr><td style="width:15%;">配置管理员</td><td>
                [#if role.userList?? && role.userList?size > 0]
                   [#list role.userList as user]
                       <input class="pos" type="radio" name="userid" value="user_${user.USER_ID}"/><span>${user.USER_NAME}</span>
                   [/#list]
                [/#if]
            </td></tr>
            [#--<tr><td style="width:15%;">分组</td><td>
                <div class="pabitem"><input class="pos" type="radio" name="userid" value="group_${role.groupId}"/><span>${role.groupName}</span></div>
            </td></tr>--]
           [/#list]
        [#else]
            <td class="greybg">配置管理员</td>
            <td colspan="5" style="padding:0;">
                请配置
            </td>
        [/#if]
        <tr>
            <td class="greybg">流转备注</td>
            <td colspan="5" style="padding:0;">
              <textarea class="general" id="flowNote" name="flowNote" style="width:95%;height:100px;border:0;" ></textarea>
           </td>
        </tr>
    </table>
</form>
</div>
 
</body>
<script type="text/javascript">
    
    $(document).ready(function(){
        $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
            document.getElementById("myform").target = window.top.openDialog("1","操作",
                         {},
                         {"width":40,"height":40,"noclose":true},
                         [{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         return true;
        }});
    });
    
    
    //点击事件
    function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            var userId;
            var userName;
            $('input:radio:checked').each(function(){
                userId=$(this).val();
                userName=$(this).next("span").text();
            });
            if($.util.isEmpty(userId)){
                popupTips("请选择执行人");
                return false;
            }
 
            window.top.confirmInfo('提示', '确定要提交吗?', function(){
                $("#nextUserId").val(userId);
                $("#nextUserName").val(userName);
                $("#myform").submit();
            })
        }
    }
    
</script>
</html>