Przeglądaj źródła

新闻媒体查询列表

miaofuhao 5 lat temu
rodzic
commit
410b6d00ac
1 zmienionych plików z 748 dodań i 0 usunięć
  1. 748 0
      WebUI/CallCenterWeb.UI/Appeal/inquireNews.html

+ 748 - 0
WebUI/CallCenterWeb.UI/Appeal/inquireNews.html

@@ -0,0 +1,748 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <title>工单查询</title>
7
+    <script src="../Script/Common/huayi.load.js"></script>
8
+    <link rel="stylesheet" href="../css/bootstrap-select.css">
9
+    <script src="../Script/Common/huayi.config.js"></script>
10
+    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11
+    <link rel="stylesheet" href="../css/init.css" />
12
+    <style>
13
+        #sqzx th {
14
+            padding: 5px 8px 5px 0;
15
+            text-align: right;
16
+        }
17
+        .select {
18
+            width: 150px;
19
+            background-color: #FFF;
20
+            background-image: none;
21
+            border: 1px solid #ccc;
22
+            border-radius: 1px;
23
+            color: inherit;
24
+            padding: 6px 12px;
25
+        }
26
+        #sex {
27
+            background-color: #FFF;
28
+            background-image: none;
29
+            border: 1px solid #ccc;
30
+            border-radius: 1px;
31
+            color: inherit;
32
+            padding: 6px 12px;
33
+        }
34
+
35
+        input {
36
+            background-color: #FFF;
37
+            background-image: none;
38
+            border: 1px solid #ccc;
39
+            border-radius: 1px;
40
+            color: inherit;
41
+            padding: 6px 12px;
42
+        }
43
+
44
+        #sqzx td {
45
+            padding: 6px 0 5px 10px;
46
+        }
47
+
48
+        .lxr ul li {
49
+            float: left;
50
+            list-style: none;
51
+            width: 30%;
52
+            margin-bottom: 5px;
53
+            padding-top: 10px;
54
+        }
55
+
56
+        .clearFix:after {
57
+            content: "";
58
+            display: block;
59
+            clear: both;
60
+        }
61
+
62
+        .form-group {
63
+            padding-left: 40px;
64
+            margin-bottom: 0;
65
+        }
66
+
67
+        textarea {
68
+            height: 70px;
69
+            border: 1px solid #ccc;
70
+            border-radius: 1px;
71
+            width: 50%;
72
+            resize: none;
73
+        }
74
+
75
+        .textarea_box {
76
+            margin-top: 10px;
77
+        }
78
+
79
+        .box_content {
80
+            border-bottom: 1px solid #ccc;
81
+        }
82
+
83
+        .tj_content {
84
+            border: 1px solid #e6e6e6;
85
+            border-radius: 5px;
86
+        }
87
+
88
+        .t-shade {
89
+            position: fixed;
90
+            top: 0;
91
+            left: 0;
92
+            width: 100%;
93
+            background: rgba(0, 0, 0, 0.48);
94
+            z-index: 10004;
95
+            display: none;
96
+        }
97
+
98
+        .lyxz .shade_k {
99
+            z-index: 10005;
100
+            width: 40%;
101
+            left: 30%;
102
+            position: absolute;
103
+            background-color: rgb(255, 255, 255);
104
+            box-shadow: rgba(0, 0, 0, 0.298039) 1px 1px 50px;
105
+            margin: 20% auto;
106
+            border-radius: 5px;
107
+        }
108
+
109
+        .shade_title {
110
+            padding: 0 80px 0 20px;
111
+            height: 42px;
112
+            line-height: 42px;
113
+            border-bottom: 1px solid #eee;
114
+            font-size: 16px;
115
+            color: #FFFFFF;
116
+            overflow: hidden;
117
+            background-color: #00a1cb;
118
+            border-radius: 2px 2px 0 0;
119
+            position: relative;
120
+            border-top-left-radius: 5px;
121
+            border-top-right-radius: 5px;
122
+        }
123
+
124
+        .cx {
125
+            display: block;
126
+        }
127
+
128
+        .setwin {
129
+            position: absolute;
130
+            right: 15px;
131
+            top: 5px;
132
+            font-size: 0;
133
+            line-height: initial;
134
+        }
135
+        .setwin a {
136
+            position: relative;
137
+            width: 16px;
138
+            height: 16px;
139
+            font-size: 20px;
140
+            color: #fff;
141
+        }
142
+
143
+        .xg i {
144
+            font-size: 16px;
145
+        }
146
+
147
+        .hidens {
148
+            display: none;
149
+        }
150
+
151
+        .inpBox {
152
+           border: 1px solid #cccccc;
153
+    		height: 31px;
154
+            width: 220px;
155
+            display: inline-block;
156
+            position: relative;
157
+            vertical-align: middle;
158
+            position: absolute;
159
+            left: 0px;
160
+            top: 0px;
161
+            z-index: 111;
162
+        }
163
+		.selDpart1{
164
+			position: absolute;
165
+            left: 0px;
166
+            top: 30px;
167
+            z-index: 11111;
168
+            width: 220px;
169
+            line-height: 30px;
170
+            background: #FFFFFF;
171
+            display: none;
172
+		}
173
+		#sponsor{
174
+			width: 218px;
175
+			border: 1px solid #00a1cb;
176
+			margin: 0;
177
+			padding: 0;
178
+			list-style: none;
179
+			max-height: 212px;
180
+			overflow-x: hidden;
181
+			overflow-y: scroll;
182
+		}
183
+		#sponsor li{
184
+			margin: 0;
185
+			padding-left: 10px;
186
+			width: 220px;
187
+			height: 30px;
188
+			line-height: 30px;
189
+			list-style: none;
190
+		}
191
+		#sponsor li:hover{
192
+			background: #00a1cb;
193
+		}
194
+        .addTree {
195
+            background: #fff;
196
+            position: absolute;
197
+            width: 100%;
198
+            border: 1px solid darkgrey;
199
+            right: 0;
200
+            top: 29px;
201
+            display: none;
202
+            z-index: 222;
203
+        }
204
+
205
+        .xl {
206
+            display: inline-block;
207
+            background: url(../../img/dropDown.png) no-repeat;
208
+            height: 100%;
209
+            background-position: center center;
210
+            width: 20px;
211
+            position: absolute;
212
+            right: 0;
213
+            top: 0px;
214
+            /* background-color: #f7bc8b; */
215
+            cursor: pointer;
216
+        }
217
+
218
+        .ztree li span {
219
+            border: none;
220
+            padding: 0;
221
+        }
222
+
223
+        .inps {
224
+            width: 217px;
225
+                height: 29px;
226
+            outline: none;
227
+            border: 0;
228
+            border-image-width: 0;
229
+            padding: 0;
230
+            padding-left: 3px;
231
+        }
232
+
233
+        .xl {
234
+            display: inline-block;
235
+            background: url(../img/dropDown.png) no-repeat;
236
+            height: 100%;
237
+            background-position: center center;
238
+            width: 20px;
239
+            position: absolute;
240
+            right: 0;
241
+            top: 0px;
242
+            /* background-color: #f7bc8b; */
243
+            cursor: pointer;
244
+        }
245
+
246
+        .Cleans {
247
+            display: inline-block;
248
+            width: 20px;
249
+            position: absolute;
250
+            right: 21px;
251
+            top: 8px;
252
+            display: none;
253
+        }
254
+
255
+        .Min-width {
256
+            width: 150px;
257
+        }
258
+        .btn-default{
259
+        	background: #FFFFFF;
260
+        	color: #000000;
261
+        }
262
+    </style>
263
+</head>
264
+
265
+<body class="gray-bg">
266
+    <div class="wrapper wrapper-content animated fadeInRight">
267
+        <div class="daoHang clearfix">
268
+            <div class="dhLeft">
269
+                <sapn>
270
+                    <i class="syIcon"></i>位置:
271
+                    <a href="javaScript:;" id="ReIndex">首页</a>&gt;
272
+                    <a href="javaScript:;">工单处理</a>&gt;
273
+                   <a href="" class="nowPosition">新闻媒体查询</a>
274
+                </sapn>
275
+            </div>
276
+            <div class="dhRight">
277
+                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
278
+            </div>
279
+        </div>
280
+        <div style="padding: 10px;" class="tj_content clearFix">
281
+            <div style="padding: 10px;" class="tj_content clearFix">
282
+                <div>
283
+                    <span>【搜索信息】</span>
284
+                    <div class="box_content">
285
+                        <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
286
+                            <tr>
287
+                                <th>关键字:</th>
288
+                                <td>
289
+                                    <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
290
+                                </td>
291
+                                <th>工单号:</th>
292
+                                <td>
293
+                                    <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
294
+                                </td>
295
+                                <th>时间:</th>
296
+                                <td >
297
+                                    <input type="text" id="starttime" class="" placeholder="请选择时间" style="height: 32px;" />
298
+                                </td>
299
+                                  <th>工单状态:</th>
300
+                                <td>
301
+                                    <select name="" id="state" class="select">
302
+                                        <option selected="selected" value="">请选择</option>
303
+                                        <option value="0">新工单</option>
304
+                                        <option value="1">待交办</option>
305
+                                        <option value="10">待审核</option>
306
+                                        <option value="2">待查收</option>
307
+                                        <option value="3">退回审核中</option>
308
+                                        <option value="4">办理中</option>
309
+                                        <option value="5">延时审核中</option>
310
+                                        <option value="6">已办理</option>
311
+                                        <option value="7">已回访</option>
312
+                                        <option value="11">重办待交办</option>
313
+                                        <option value="13">重办驳回 </option>
314
+                                        <option value="8">重办中</option>
315
+                                        <option value="9">已结案</option>
316
+                                    </select>
317
+                                </td>
318
+                            </tr>
319
+                            <tr>
320
+                                <th>工单来源:</th>
321
+                                <td>
322
+                                    <select class="select_" id="source"></select>
323
+                                </td>
324
+                                <th>主题词:</th>
325
+                                <td>
326
+                                    <select id="keyid" name="" class="select"></select>
327
+                                </td>
328
+                                 <th>投诉电话:</th>
329
+                                <td>
330
+                                    <input type="text" id="tel" placeholder="请输入投诉电话" />
331
+                                </td>
332
+                                <th>投诉人:</th>
333
+                                <td>
334
+                                    <input type="text" id="name" class="Min-width" autocomplete="off" />
335
+                                </td>
336
+                            </tr>
337
+                            <tr>
338
+                                <th>处理类型:</th>
339
+                                <td>
340
+                                    <select class="select_" id="dealtype">
341
+                                        <option value="">请选择</option>
342
+                                        <option value="0">网络转派</option>
343
+                                        <option value="1">当即办理</option>
344
+                                    </select>
345
+                                </td>
346
+                                <th>类型:</th>
347
+                                <td>
348
+                                    <select class="select_" id="type"></select>
349
+                                </td>
350
+                                <th>区域:</th>
351
+                                <td>
352
+                                    <select class="select_" id="sourceAreas"></select>
353
+                                </td>
354
+                                <th>主办单位:</th>
355
+                                <td style="position: relative;">
356
+                                    <div class="inpBox">
357
+                                        <input type="text" class="inps" onkeyup="darptSearch()"/>
358
+                                        <i class="Cleans  fa fa-close"></i>
359
+                                        <i class="xl xl_one"></i>
360
+                                        <div class="addTree xlAdd">
361
+                                            <ul id="addTreeDemo" class="ztree"></ul>
362
+                                        </div>
363
+                                    </div>
364
+                                    <div class="selDpart1">
365
+                                    	<ul id="sponsor">
366
+										</ul>
367
+                                    </div>
368
+                                </td>
369
+                            </tr>
370
+                        </table>
371
+                    </div>
372
+                </div>
373
+                <div>
374
+                    <div style="width: 100%;padding: 10px;">
375
+                        <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
376
+                            <thead>
377
+                                <tr>
378
+                                    <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
379
+                                    <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">关键字</th>
380
+                                    <th data-field="DeptName" data-align="center">主办单位</th>
381
+                                    <th data-field="OtherDeptName" data-align="center">协办单位</th>
382
+                                    <th data-field="UserName" data-align="center">受理人</th>
383
+                                    <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
384
+                                    <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
385
+                                    <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
386
+                                    <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
387
+                                    <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
388
+                                </tr>
389
+                            </thead>
390
+                            <tbody class="list"></tbody>
391
+                        </table>
392
+                    </div>
393
+                </div>
394
+            </div>
395
+        </div>
396
+
397
+        <!--下载框-->
398
+        <div class="t-shade lyxz">
399
+            <div class="shade_k">
400
+                <div class="shade_title">
401
+                    <span>录音播放与下载<srong class="cknum"></srong></span>
402
+                    <span class="setwin gbly"><a>x</a></span>
403
+                </div>
404
+                <div class="shade_content">
405
+                    <div class="Ly_box audiojs">
406
+                    </div>
407
+                </div>
408
+            </div>
409
+        </div>
410
+        <input type="hidden" id="PID" />
411
+        <input type="hidden" id="Dpment" />
412
+    </div>
413
+    <script src="../js/bootstrap-select.js"></script>
414
+    <script src="../js/laydate/laydate.js"></script>
415
+    <script src="../My97DatePicker/WdatePicker.js"></script>
416
+    <script src="../js/zTree/jquery.ztree.core.js"></script>
417
+    <script src="../js/search/screen.js"></script>
418
+    <script>
419
+        $(document).ready(function () {
420
+            var wid = helper.request.queryString("wid");
421
+            if (wid) {
422
+                $('#tel').val(wid);
423
+                load();
424
+            }
425
+            laydate.render({
426
+			    elem: '#starttime' //指定元素
427
+			    ,range:'~'
428
+			});
429
+            load();
430
+        });
431
+        //关闭录音弹出
432
+        $(".gbly").click(function () {
433
+            $(".lyxz").removeClass("cx");
434
+            $('audio')[0].pause();
435
+        });
436
+        $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
437
+            $('.success').removeClass('success'); //去除之前选中的行的,选中样式
438
+            $(ele).addClass('success'); //添加当前选中的 success样式用于区别
439
+        });
440
+        //获取查询信息
441
+        function load() {
442
+            //先销毁表格
443
+            $('#orderlist').bootstrapTable('destroy');
444
+            //初始化表格,动态从服务器加载数据
445
+            $("#orderlist").bootstrapTable({
446
+                method: "get", //使用get请求到服务器获取数据
447
+                url: huayi.config.callcenter_url + "WorkOrder/GetSelfList", //获取数据的Servlet地址
448
+                contentType: "application/x-www-form-urlencoded",
449
+                striped: true, //表格显示条纹
450
+                pagination: true, //启动分页
451
+                pageSize: 10, //每页显示的记录数
452
+                pageNumber: 1, //当前第几页
453
+                pageList: [10, 20, 50, 100], //记录数可选列表
454
+                search: false, //是否启用查询
455
+                showColumns: false, //显示下拉框勾选要显示的列
456
+                showRefresh: false, //显示刷新按钮
457
+                sidePagination: "server", //表示服务端请求
458
+                queryParamsType: "undefined",
459
+                queryParams: function queryParams(params) { //设置查询参数
460
+                	 //alert(params.pageNumber)
461
+                    var param = {
462
+                        page: params.pageNumber,
463
+                        pagesize: params.pageSize,
464
+                        workid: $("#wids").val(),
465
+                        state: $("#state").val(), //=工单状态
466
+                        type: $("#type").val(), //=工单类型
467
+                        key: $("#key").val(), //=关键字
468
+                        tel: $("#tel").val(), //=客户电话
469
+                        name: $("#name").val(), //=客户名称
470
+                        keyid: $("#keyid").val(), //=关键词id
471
+                        source: $("#source").val(), //=来源&
472
+                        starttime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[0], //=开始时间
473
+                        endtime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
474
+                        deptid: $("#PID").val(),
475
+                        type: $("#type").val(),
476
+                        dealtype: $("#dealtype").val(),
477
+                        sourcearea:$('#sourceAreas').val(),//区域
478
+                        token: $.cookie("token")
479
+                    };
480
+                    return param;
481
+                },
482
+                onLoadSuccess: function (data) { //加载成功时执行
483
+                    //layer.msg("加载成功");
484
+                    //console.log(data);
485
+                   
486
+                },
487
+                onLoadError: function () { //加载失败时执行
488
+                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
489
+                }
490
+            });
491
+        }
492
+        
493
+        //状态
494
+        function States(val, row) {
495
+            var html = '';
496
+            switch (val + '') {
497
+                case '0':
498
+                    html = '新工单';
499
+                    if (row.F_IsReturn == 1) {
500
+                        html = '新工单(回退)';
501
+                    }
502
+                    break;
503
+                case '1':
504
+                    html = '待交办';
505
+                    break;
506
+                case '2':
507
+                    html = '待查收';
508
+                    break;
509
+                case '3':
510
+                    html = '退回审核中';
511
+                    break;
512
+                case '4':
513
+                    html = '办理中';
514
+                    break;
515
+                case '5':
516
+                    html = '延时审核';
517
+                    break;
518
+                case '6':
519
+                    html = '已办理';
520
+                    break;
521
+                case '7':
522
+                    html = '已回访';
523
+                    break;
524
+                case '8':
525
+                    html = '重办中';
526
+                    break;
527
+                case '9':
528
+                    html = '已结案';
529
+                    break;
530
+                case '10':
531
+                    html = '待审核';
532
+                    break;
533
+               	case '11':
534
+                    html = '重办待交办';
535
+                    break;
536
+//              case '12':
537
+//                  html = '待审核';
538
+//                  break;
539
+                case '13':
540
+                    html = '重办驳回';
541
+                    break;
542
+            }
543
+            return html;
544
+        }
545
+        //音频
546
+        function setCode(val) {
547
+            if (val) {
548
+                return '<div class="imgs" style="cursor: pointer;">' +
549
+                    '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
550
+                    '</div>';
551
+            } else {
552
+                return '';
553
+            }
554
+        }
555
+
556
+        function GetCont(val) {
557
+            if (val) {
558
+                var str = '<div '
559
+                if (val.length > 10) {
560
+                    str = str + ' title="' + val + '" ';
561
+                    val = val.substr(0, 10) + "...";
562
+                }
563
+                return str + '>' + val + '</div>';
564
+            } else {
565
+                return '';
566
+            }
567
+        }
568
+        //操作
569
+        function Dispose(val, row) {
570
+            var Rows = row.Buttons;
571
+            var html = '';
572
+            for (var i = 0; i < Rows.length; i++) {
573
+                var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
574
+                if (html1) {
575
+                    html1 = html1.replace("data", val);
576
+                    html1 = html1.replace("isProtect", row.F_IsProtect);
577
+                }
578
+                html += html1;
579
+
580
+            }
581
+            return html;
582
+        }
583
+
584
+        //查看详情
585
+        function ckxq(str) {
586
+            layer.open({
587
+                type: 2,
588
+//              content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
589
+                content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
590
+                title: '工单详情',
591
+                area: ['87%', '80%'], //宽高
592
+            });
593
+        }
594
+        //时限
595
+        function OverTime(val, row) {
596
+            if (val == 1) {
597
+                return '<div class="" style="cursor: pointer;">' +
598
+                    '<span class="Greens">' + row.GapTime + '</span>' +
599
+                    '</div>';
600
+            } else if (val == 2) {
601
+                return '<div class="" style="cursor: pointer;">' +
602
+                    '<span class="Yellows">' + row.GapTime + '</span>' +
603
+                    '</div>';
604
+            } else if (val == 3) {
605
+                return '<div class="" style="cursor: pointer;">' +
606
+                    '<span class="Reds">' + row.GapTime + '</span>' +
607
+                    '</div>';
608
+            }
609
+        }
610
+        //办理时限
611
+        function BanTime(val) {
612
+            if (val) {
613
+                var time = val.substring(0, val.indexOf(' '));
614
+                return '<div class="" style="cursor: pointer;">' +
615
+                    '<span>' + time + '</span>' +
616
+                    '</div>';
617
+            }
618
+        }
619
+
620
+        //上传文件
621
+        function upload() {
622
+            if (document.getElementById("upFile").files.length > 0) {
623
+                var formData = new FormData();
624
+                formData.append("upFile", document.getElementById("upFile").files[0]);
625
+                formData.append("token", $.cookie("token"));
626
+                $.ajax({
627
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
628
+                    type: "POST",
629
+                    data: formData,
630
+                    /**
631
+                     *必须false才会自动加上正确的Content-Type
632
+                     */
633
+                    contentType: false,
634
+                    /**
635
+                     * 必须false才会避开jQuery对 formdata 的默认处理
636
+                     * XMLHttpRequest会对 formdata 进行正确的处理
637
+                     */
638
+                    processData: false,
639
+                    success: function (result) {
640
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
641
+                        $("#upFile").change(function () {
642
+                            upload();
643
+                        });
644
+                        var r = $.parseJSON(result);
645
+                        if (r.state.toLowerCase() == "success") {
646
+                            $(".fjnr").text(r.data);
647
+                            $("#scfj").show();
648
+                        }
649
+                    }
650
+                });
651
+            } else {
652
+                layer.confirm('请上传文件!', {
653
+                    btn: ['确定']
654
+                });
655
+            }
656
+        }
657
+        //来源
658
+        function LY(obj) {
659
+            obj.empty();
660
+            obj.append('<option selected="selected" value="">请选择</option>');
661
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
662
+                "token": $.cookie("token"),
663
+                id: 1
664
+            }, function (data) {
665
+                if (data.state.toLowerCase() == "success") {
666
+                    var content = data.data;
667
+                    $(content).each(function (i, n) {
668
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
669
+                    })
670
+                }
671
+            })
672
+        }
673
+        //类别
674
+        function LB(obj) {
675
+            obj.empty();
676
+            obj.append('<option selected="selected" value="">请选择</option>');
677
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
678
+                "token": $.cookie("token"),
679
+                id: 2
680
+            }, function (data) {
681
+                if (data.state.toLowerCase() == "success") {
682
+                    var content = data.data;
683
+                    $(content).each(function (i, n) {
684
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
685
+                    })
686
+                }
687
+            })
688
+        }
689
+        //		主题
690
+        function ZT(obj) {
691
+            obj.empty();
692
+            obj.append('<option selected="selected" value="">请选择</option>');
693
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
694
+                "token": $.cookie("token"),
695
+                id: 3
696
+            }, function (data) {
697
+                if (data.state.toLowerCase() == "success") {
698
+                    var content = data.data;
699
+                    $(content).each(function (i, n) {
700
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
701
+                    })
702
+                }
703
+            })
704
+        }
705
+        
706
+        function tree() {
707
+            $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
708
+                "token": $.cookie("token"),
709
+                //		"pid": pid
710
+            }, function (result) {
711
+                result = $.parseJSON(result);
712
+                $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
713
+            });
714
+        }
715
+        var setting1 = {
716
+            data: {
717
+                key: {
718
+                    name: "F_DeptName"
719
+                },
720
+                simpleData: {
721
+                    enable: true,
722
+                    idKey: "F_DeptId",
723
+                    pIdKey: "F_PartentId",
724
+                    rootPId: 0
725
+                }
726
+            },
727
+            callback: {
728
+                onClick: zTreeOnClick
729
+            }
730
+        };
731
+        function zTreeOnClick(event, treeId, treeNode) {
732
+            if (treeNode.level >= 2) {
733
+                $('.inps').val(treeNode.F_DeptName);
734
+                $("#PID").val(treeNode.F_DeptId);
735
+                $("#Dpment").val(treeNode.F_DeptId);
736
+                $(".Cleans").show();
737
+            }
738
+        };
739
+        function Close() {
740
+            $(".lyxz").removeClass("cx");
741
+            if ($('audio').length > 0) {
742
+                $('audio')[0].pause();
743
+            }
744
+        }
745
+    </script>
746
+</body>
747
+
748
+</html>