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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>分配人员</title>
<!--(start) public flies-->
</head>
 
<body class="personnel_allocation_body">
[#include "/business/pages/include/static.html" /]
<table class="pab_con" style="margin:0 auto;">
    <tr class="greybg">
        <td>类型</td>
        [#if user.kf == 1]
        <td>客服人员</td>
        [/#if]
        [#if user.sjjl == 1]
           <td>运维经理</td>
           [/#if]
           [#if user.yx == 1]
        <td>一线工程师</td>
        [/#if]
        [#if user.ex == 1]
        <td>二线工程师</td>
        [/#if]
        [#if user.sx == 1]
        <td>三线工程师</td>
        [/#if]
    </tr>
        [#assign checklabel = 1]
        <tr class="pabtdcon">
            <td><label class="required">人员</label></td>
            [#if user.kf == 1]
            <td>
                [#if user.kfry?? && user.kfry?size>0]
                    [#list user.kfry as kf]
                        <div [#if kf.type==1]class="pabitem focus"[#else]class="pabitem"[/#if]>
                            [#if !(kf.usered?? && kf.usered==1)]<input class="pos" type="radio" name="userId" value="1-${Constants.ROLE_SERVICE}-${kf.ID}-${kf.ZSXM}" [#if kf.type==1 && checklabel == 1] checked [#assign checklabel = 2][/#if] />[/#if]
                            <span>${kf.ZSXM}</span>
                        </div><br>
                    [/#list]
                [/#if]
            </td>
            [/#if]
            
            [#if user.sjjl == 1]
            <td>
                [#if user.yczc?? && user.yczc?size>0]
                    [#list user.yczc as yc]
                        <div [#if yc.type==1]class="pabitem focus"[#else]class="pabitem"[/#if]>
                            [#if !(yc.usered?? && yc.usered==1)]<input class="pos" type="radio" name="userId" value="1-${Constants.ROLE_OPERATION}-${yc.ID}-${yc.ZSXM}" [#if yc.type==1 && checklabel == 1] checked [#assign checklabel = 2][/#if] />[/#if]
                            <span>${yc.ZSXM}</span>
                        </div><br>
                    [/#list]
                [/#if]
            </td>
            [/#if]
            
            [#if user.yx == 1]
            <td>
                [#if user.yxgcs?? && user.yxgcs?size>0]
                    [#list user.yxgcs as yx]
                        <div [#if yx.type==1]class="pabitem focus"[#else]class="pabitem"[/#if]>
                            [#if !(yx.usered?? && yx.usered==1)]<input class="pos" type="radio" name="userId" value="1-${Constants.ROLE_FLINE}-${yx.ID}-${yx.ZSXM}" [#if yx.type==1 && checklabel == 1] checked [#assign checklabel = 2][/#if]  />[/#if]
                            <span>${yx.ZSXM}</span>
                        </div><br>
                    [/#list]
                [/#if]
            </td>
            [/#if]
            
            [#if user.ex == 1]
            <td>
                [#if user.exgcs?? && user.exgcs?size>0]
                    [#list user.exgcs as ex]
                        <div [#if ex.type==1]class="pabitem focus"[#else]class="pabitem"[/#if]>
                            [#if !(ex.usered?? && ex.usered==1)]<input class="pos" type="radio" name="userId" value="1-${Constants.ROLE_SLINE}-${ex.ID}-${ex.ZSXM}" [#if ex.type==1 && checklabel == 1] checked [#assign checklabel = 2][/#if] />[/#if]
                            <span>${ex.ZSXM}</span>
                        </div><br>
                    [/#list]
                [/#if]
            </td>
            [/#if]
            
            [#if user.sx == 1]
            <td>
                [#if user.sxgcs?? && user.sxgcs?size>0]
                    [#list user.sxgcs as sx]
                        <div [#if sx.type==1]class="pabitem focus"[#else]class="pabitem"[/#if]>
                            [#if !(sx.usered?? && sx.usered==1)]<input class="pos" type="radio" name="userId" value="1-${Constants.ROLE_TLINE}-${sx.ID}-${sx.ZSXM}" [#if sx.type==1 && checklabel == 1] checked [#assign checklabel = 2][/#if]  />[/#if]
                            <span>${sx.ZSXM}</span>
                        </div><br>
                    [/#list]
                [/#if]
            </td>
            [/#if]
            
            </tr>
    
            <tr>
                <td><label class="required">分组</label></td>
                
            [#if user.kf == 1]
            <td>
                [#if user.zkfry?? && user.zkfry?size>0]
                    [#list user.zkfry as kf]
                        <div [#if kf.type==1]class="pabitem focus"[#else]class="pabitem"[/#if]>
                            [#if !(kf.usered?? && kf.usered==1)]<input class="pos" type="radio" name="userId" value="2-${Constants.ROLE_SERVICE}-${kf.ID}-${kf.GROUPNAME}" [#if kf.type==1 && checklabel == 1] checked [#assign checklabel = 2][/#if] />[/#if]
                            <span>${kf.GROUPNAME}</span>
                        </div><br>
                    [/#list]
                [/#if]
            </td>
            [/#if]
            
            
            [#if user.sjjl == 1]
            <td>
            </td>
            [/#if]
            
            
            [#if user.yx == 1]
            <td>
                [#if user.zyxgcs?? && user.zyxgcs?size>0]
                    [#list user.zyxgcs as yx]
                        <div [#if yx.type==1]class="pabitem focus"[#else]class="pabitem"[/#if]>
                            [#if !(yx.usered?? && yx.usered==1)]<input class="pos" type="radio" name="userId" value="2-${Constants.ROLE_FLINE}-${yx.ID}-${yx.GROUPNAME}" [#if yx.type==1 && checklabel == 1] checked [#assign checklabel = 2][/#if]  />[/#if]
                            <span>${yx.GROUPNAME}</span>
                        </div><br>
                    [/#list]
                [/#if]
            </td>
            [/#if]
            
            
            [#if user.ex == 1]
            <td>
                [#if user.zexgcs?? && user.zexgcs?size>0]
                    [#list user.zexgcs as ex]
                        <div [#if ex.type==1]class="pabitem focus"[#else]class="pabitem"[/#if]>
                            [#if !(ex.usered?? && ex.usered==1)]<input class="pos" type="radio" name="userId" value="2-${Constants.ROLE_SLINE}-${ex.ID}-${ex.GROUPNAME}" [#if ex.type==1 && checklabel == 1] checked [#assign checklabel = 2][/#if]  />[/#if]
                            <span>${ex.GROUPNAME}</span>
                        </div><br>
                    [/#list]
                [/#if]
            </td>
            [/#if]
            
            [#if user.sx == 1]
            <td>
                [#if user.zsxgcs?? && user.zsxgcs?size>0]
                    [#list user.zsxgcs as sx]
                        <div [#if sx.type==1]class="pabitem focus"[#else]class="pabitem"[/#if]>
                            [#if !(sx.usered?? && sx.usered==1)]<input class="pos" type="radio" name="userId" value="2-${Constants.ROLE_TLINE}-${sx.ID}-${sx.GROUPNAME}"[#if sx.type==1 && checklabel == 1] checked [#assign checklabel = 2][/#if] />[/#if]
                            <span>${sx.GROUPNAME}</span>
                        </div><br>
                    [/#list]
                [/#if]
            </td>
            [/#if]
            
            </tr>
            <tr>
                <td><label class="required">角色</label></td>
                
            [#if user.kf == 1]
            <td>
                <div class="pabitem">
                    [#if !(user.jskfry.usered?? && user.jskfry.usered==1)]<input class="pos" type="radio" name="userId" value="3-${Constants.ROLE_SERVICE}-${user.jskfry.ID}-${user.jskfry.ROLENAME}"/>[/#if]
                    <span>${user.jskfry.ROLENAME}</span>
                </div><br>
            </td>
            [/#if]
            
            
            [#if user.sjjl == 1]
            <td>
                <div class="pabitem">
                    [#if !(user.jsyczc.usered?? && user.jsyczc.usered==1)]<input class="pos" type="radio" name="userId" value="3-${Constants.ROLE_OPERATION}-${user.jsyczc.ID}-${user.jsyczc.ROLENAME}"/>[/#if]
                    <span>${user.jsyczc.ROLENAME}</span>
                </div><br>
            </td>
            [/#if]
            
            
            [#if user.yx == 1]
            <td>
                <div class="pabitem">
                    [#if !(user.jsyxgcs.usered?? && user.jsyxgcs.usered==1)]<input class="pos" type="radio" name="userId" value="3-${Constants.ROLE_FLINE}-${user.jsyxgcs.ID}-${user.jsyxgcs.ROLENAME}" />[/#if]
                    <span>${user.jsyxgcs.ROLENAME}</span>
                </div><br>
            </td>
            [/#if]
            
            
            [#if user.ex == 1]
            <td>
                <div class="pabitem">
                    [#if !(user.jsexgcs.usered?? && user.jsexgcs.usered==1)]<input class="pos" type="radio" name="userId" value="3-${Constants.ROLE_SLINE}-${user.jsexgcs.ID}-${user.jsexgcs.ROLENAME}" />[/#if]
                    <span>${user.jsexgcs.ROLENAME}</span>
                </div><br>
            </td>
            [/#if]
            
            [#if user.sx == 1]
            <td>
                <div class="pabitem">
                    [#if !(user.jssxgcs.usered?? && user.jssxgcs.usered==1)]<input class="pos" type="radio" name="userId" value="3-${Constants.ROLE_TLINE}-${user.jssxgcs.ID}-${user.jssxgcs.ROLENAME}" />[/#if]
                    <span>${user.jssxgcs.ROLENAME}</span>
                </div><br>
            </td>
            [/#if]
            
            </tr>
            
            
            <tr>
                <td class="greybg"><label>备注</label></td>
                <td colspan="${user.size}" style="padding:0;">
                  <textarea class="general" style="width:95%;height:100px;border:0;" id="bz" name="bz"></textarea>
               </td>
            </tr>
</table>
 
 
<script type="text/javascript">
function onDialogBtnClick(btnID, dialogID, config){
    if(btnID == "btnSure"){
            var checkUser = $(":radio:checked");
            var bz = $("#bz").val();
            if(checkUser.length!=1) {
                popupTips("请选择一个分配人员或分组");
                return;
            }
            if(bz.length>500) {
                popupTips("备注不能超过250个字!");
                return;
            }
            var userMsg = checkUser.val();
            var type='${RequestParameters.type}';
            if(type==100){
                window.top.document.getElementById('dialogIframe10').contentWindow.showUser(userMsg,bz);
            }else{
                window.parent.showUser(userMsg,bz);
            }
            //window.top.hideDialog(dialogID);
    }
}
</script>
 
</body>
</html>