video.html
43 KB
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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head th:replace="../templates/common/head::head">
</head>
<body class="skin-blue sidebar-mini">
<div class="wrapper">
<div th:replace="../templates/common/frame::frame"></div>
<div class="content-wrapper" style="min-height: 788px;">
<section class="content-header">
<h1>
点播审核
</h1>
<ol class="breadcrumb">
<li>首页</li>
<li class="active">点播审核</li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box box-info">
<div class="box-body">
<div class="btn-group margin-bottom pull-left">
<!-- <input type="hidden" name="state" id="state" value=""/> -->
<div class="btn-group margin-bottom" id="hide_select_area_2" style=>
<button type="button" class="btn btn-success btn-sm margin-r-5 action claim"
value="2" data="claim" id="claim" data-toggle="modal"
data-target="#modal" onclick="receive(0);">认领
</button>
<button type="button" class="btn btn-success btn-sm margin-r-5 action claim"
value="2" data="claim100" id="claim100" data-toggle="modal"
data-target="#modal" onclick="receive(10);">认领10条
</button>
<button type="button" class="btn btn-success btn-sm margin-r-5 action claim"
value="2" data="claim1000" id="claim1000" data-toggle="modal"
data-target="#modal" onclick="receive(100);">认领100条
</button>
<button type="button" class="btn btn-warning btn-sm margin-r-5 action claim"
value="2" data="claim1000" id="claim1000" data-toggle="modal"
data-target="#modal" onclick="retReceive();">退领
</button>
<button type="button" class="btn btn-danger btn-sm margin-r-5 action claim"
value="2" data="claim1000" id="claim1000" data-toggle="modal"
data-target="#modal" onclick="repulse();">拒绝
</button>
</div>
</div>
<div class="btn-group margin-bottom pull-right">
<button type="button" class="btn btn-success btn-sm margin-r-5 filter "
th:onclick="'javascript:daochu()'" value="" id="excel">
导出excel
</button>
<button type="button" class="btn btn-sm margin-r-5 filter "
th:onclick="'javascript:quanbu()'" value="" id="quanbu">
查询
</button>
</button>
<button type="button" class="btn btn-sm margin-r-5 filter " id="daishen"
th:onclick="'javascript:daishen()'" value="0">全部待领
</button>
<button type="button" class="btn btn-sm margin-r-5 filter " id="Mydaishen"
th:onclick="'javascript:Mydaishen()'" value="0">我的待审
</button>
<button type="button" class="btn btn-sm margin-r-5 filter " id="yishen"
th:onclick="'javascript:yishen()'" value="1">我的已审
</button>
<button type="button" class="btn btn-primary btn-sm margin-r-5" id="query"
onclick="openOrClose('forms')">
<span id="a_up">展开▼</span><span id="a_down" style="display: none;">收起▲</span>
</button>
</div>
<div class="form-horizontal form-group-sm" id="forms" style="display: none;float: left;">
<div class="btn-group margin-bottom col-md-6"
style="padding: 0;width: 15%;float: left;">
<div class="col-md-5" style="padding: 0;width: 100%;">
<label for="video_titleID" class="control-label cb-toolbar">标题:</label>
<div class="col-sm-9" style="padding: 0;">
<input class="form-control" type="text" th:value="${VideoTitle}" value="" id="video_titleID">
</div>
</div>
</div>
<div class="btn-group margin-bottom col-md-6"
style="padding: 0;width: 10%;float: left;">
<div class="col-md-5" style="padding: 0;width: 100%;">
<label for="state" class="control-label cb-toolbar">状态:</label>
<div class="col-sm-8" style="padding: 0;">
<select class="form-control" id="state" name="state">
<option value="">全部</option>
<option value="0" th:selected="${VideoStatus==0}">未审核</option>
<option value="1" th:selected="${VideoStatus==1}"}>已通过</option>
<option value="2" th:selected="${VideoStatus==2}">已拒绝</option>
</select>
<!--<input class="form-control" name="video_priority" type="text" id="video_priority">-->
</div>
</div>
</div>
<div class="btn-group margin-bottom col-md-6 pull-right"
style="position: relative;width: 75%;float: left !important;">
<div class="col-md-10" style="width: 100%;padding: 0;">
<div class="col-md-10" style="padding: 0;width: 25%;">
<label for="start_date" class="control-label cb-toolbar">时间:</label>
<div class="input-group col-md-9 date">
<input class="form-control date" name="start_date" type="text" th:value="${Start_date}"
id="start_date">
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<div class="col-md-10" style="padding: 0;width: 25%;">
<label for="start_date" class="control-label cb-toolbar">至</label>
<div class="input-group col-md-9 date">
<input class="form-control date" name="end_date" type="text"th:value="${End_date}"
id="end_date">
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<div class="col-md-6" style="padding: 0;width: 25%;"
th:if="${session.sessionUser.spid==0}">
<label for="sp_desc" class="control-label cb-toolbar">sp简称:</label>
<div class="col-sm-9" style="padding: 0;">
<input class="form-control" type="text" th:value="${sp_desc}" value="" id="sp_desc">
</div>
</div>
<div class="col-md-5" style="padding: 0;width: 25%;">
<label for="state" class="control-label cb-toolbar">分类:</label>
<div class="col-sm-8" style="padding: 0;">
<select class="form-control" id="source" name="source">
<option value="">全部</option>
<option th:each="activitys : ${activityList}"
th:selected="${source}==${activitys.id}"
th:value="${activitys.id}"
th:text="${activitys.activity}">
</option>
</select>
</div>
</div>
</div>
</div>
<div class="col-md-6" style="padding: 0;width: 18%;"
th:if="${session.sessionUser.spid==0}">
<label for="video_id" class="control-label cb-toolbar">videoId</label>
<div class="col-sm-9" style="padding: 0;">
<input class="form-control" type="text" th:value="${VideoId}" value="" id="video_id">
</div>
</div>
<div class="col-md-6" style="padding: 0;width: 18%;"
th:if="${session.sessionUser.spid==0}">
<label for="video_user_id" class="control-label cb-toolbar">sid</label>
<div class="col-sm-9" style="padding: 0;">
<input class="form-control" type="text" th:value="${Video_user_id}" value="" id="video_user_id">
</div>
</div>
<div class="col-md-6" style="padding: 0;width: 18%;"
th:if="${session.sessionUser.spid==0}">
<label for="contentId" class="control-label cb-toolbar">内容id:</label>
<div class="col-sm-9" style="padding: 0;">
<input class="form-control" type="text" th:value="${ContentId}" value="" id="contentId">
</div>
</div>
<div class="col-md-6" style="padding: 0;width: 18%;"
th:if="${session.sessionUser.spid==0}">
<label for="sp_Id" class="control-label cb-toolbar">sp_Id</label>
<div class="col-sm-9" style="padding: 0;">
<input class="form-control" type="text" th:value="${sp_Id}" value="" id="sp_Id">
</div>
</div>
<div class="col-md-6" style="padding: 0;width: 18%;"
th:if="${session.sessionUser.spid==0}">
<label for="shen_auditor_id" class="control-label cb-toolbar">审核员</label>
<div class="col-sm-9" style="padding: 0;">
<input class="form-control" type="text" th:value="${Shen_auditor_id}" value="" id="shen_auditor_id">
</div>
</div>
</div>
<div class="fixed-table-container" style="padding-bottom: 0px;">
<div class="fixed-table-body">
<table id="table" data-toggle="table" class="table table-hover table-striped"
style="margin-bottom: 0; ">
<thead>
<tr>
<th class="bs-checkbox " style="width: 5%; " data-field="state"
tabindex="0">
<div class="th-inner "><input name="btSelectAll" type="checkbox"
id="select_all">
</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 6%; " data-field="sp_id_brief"
tabindex="0">
<div class="th-inner ">sp简称</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 20%; " data-field="video_title"
tabindex="0">
<div class="th-inner ">标题</div>
<div class="fht-cell"></div>
</th>
<!--<th style="text-align: center; width: 10%; " data-field="video_cover_img" tabindex="0"><div class="th-inner ">点播封面图</div><div class="fht-cell"></div></th>-->
<th style="text-align: center; width: 6%; " data-field="updater"
tabindex="0">
<div class="th-inner ">审核员</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 3%; " data-field="is_hot_name"
tabindex="0">
<div class="th-inner ">热点</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 3%; " data-field="state_name"
tabindex="0">
<div class="th-inner ">审核状态</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 3%; " data-field="state_name"
tabindex="0">
<div class="th-inner ">审核类型</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 10%; " data-field="video_user_id"
tabindex="0">
<div class="th-inner ">视频上传时间</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 10%; " data-field="upload_time"
tabindex="0">
<div class="th-inner ">视频上传人的id</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 10%; " data-field="created_at"
tabindex="0">
<div class="th-inner ">视频送审时间</div>
<div class="fht-cell"></div>
</th>
<th style="text-align: center; width: 17%; " data-field="action"
tabindex="0">
<div class="th-inner ">操作</div>
<div class="fht-cell"></div>
</th>
</tr>
</thead>
<tbody>
<tr data-index="0" th:each="video : ${videoPage.list}">
<td class="bs-checkbox "><input data-index="0" name="btSelectItem"
type="checkbox" th:value="${video.id}"></td>
<td style="text-align: center; width: 6%;"
th:text="${video.spid_desc}"></td>
<td style="text-align: center; width: 20%;">
<a class="detail" th:href="@{'/videos/details/?id='+${video.id}}">
<span th:text="${video.video_title}">邓建国正面PK冯小刚</span>
</a>
</td>
<!--<td style="text-align: center; width: 10%;">-->
<!--<div width="160px" height="90px"><img th:src="@{${video.video_poster}}" width="160px" alt="封面图"></div>-->
<!--</td>-->
<td style="text-align: center; width: 6%;" th:text="${video.updater}">审核员
</td>
<td style="text-align: center; width: 3%;"
th:text="${video.video_priority=='1'?'是':'否'}">是
</td>
<td style="text-align: center; width: 3%;">
<span class="btn btn-sm btn-warning" th:if="${video.state==0}">待审</span>
<span class="btn btn-sm btn-success" th:if="${video.state==1}">通过</span>
<span class="btn btn-sm btn-danger" th:if="${video.state==2}">拒绝</span>
<!-- <span class="btn btn-sm btn-danger" th:if="${video.state==3}">自动审核失败</span> -->
</td>
<td style="text-align: center; width: 3%;">
<span th:if="${video.shenhe_type==1}">免审</span>
<span th:if="${video.shenhe_type==2}">机审</span>
<span th:if="${video.shenhe_type==3}">人工审</span>
</td>
<td style="text-align: center; width: 10%;"
th:text="${#dates.format(video.video_upload_time, 'yyyy-MM-dd HH:mm:ss')}">
2018-03-07 16:56:20
</td>
<td style="text-align: center; width: 6%;" th:text="${video.video_user_id}">
视频上传人的id
</td>
<td style="text-align: center; width: 10%;"
th:text="${#dates.format(video.created_at, 'yyyy-MM-dd HH:mm:ss')}">
2018-03-07 16:56:20
</td>
<td style="text-align: center; width: 17%;">
<a class="detail" th:href="@{'/videos/details/?id='+${video.id}}">
<!--th:if="${ (video.receive==true and session.sessionUser.userId==video.receive_user_id) or (video.state==1 or video.state==2) }"-->
<button class="btn btn-info btn-sm"
th:style="${state1 eq '0' && receive1 eq 'false'} ? 'display: none ' : ' '">
查看
</button>
</a>
<span th:if="${video.state==0 and video.receive==0}"> </span>
<a th:href="@{'javascript:applyReceive('+${video.id}+')'}"
th:if="${video.state==0 and video.receive==0}">
<button class="btn btn-primary btn-sm">认领</button>
</a>
<span th:if="${video.state==0 and video.receive==1 and session.sessionUser.userId==video.receive_user_id}"> </span>
<a th:href="@{'javascript:applyRetReceive('+${video.id}+')'}"
th:if="${video.state==0 and video.receive==1 and session.sessionUser.userId==video.receive_user_id}">
<button class="btn btn-warning btn-sm">退领</button>
</a>
</td>
</tr>
</tbody>
</table>
</div>
<!--分页处理-->
<div class="fixed-table-pagination" style="display: block;">
<div class="pull-left pagination-detail">
<span class="pagination-info" th:text="'共 '+${videoPage.total}+' 条记录,每页显示'">共 0 条记录</span>
<select class="" id="pageSize" name="pageSize" onchange="selectPageSize()">
<option value="10" th:selected="${pageSize==10}">10</option>
<option value="20" th:selected="${pageSize==20}">20</option>
<option value="50" th:selected="${pageSize==50}">50</option>
<option value="100" th:selected="${pageSize==100}">100</option>
</select>
<span class="pagination-info">条记录</span>
</div>
<div class="pull-right pagination">
<ul class="pagination" th:if="${videoPage.pages>1}">
<li class="page-pre"><a th:href="'javascript:fanye(1);'">‹‹</a></li>
<li class="page-pre" th:if="${!videoPage.isFirstPage}"><a
th:onclick="'javascript:fanye(\''+${videoPage.pageNum-1}+'\');'">‹</a>
</li>
<li class="page-number" th:if="${videoPage.pageNum-3>=1}"><a
th:onclick="'javascript:fanye(\''+${videoPage.pageNum-3}+'\');'"
th:text="${videoPage.pageNum-3}">2</a></li>
<li class="page-number" th:if="${videoPage.pageNum-2>=1}"><a
th:onclick="'javascript:fanye(\''+${videoPage.pageNum-2}+'\');'"
th:text="${videoPage.pageNum-2}">2</a></li>
<li class="page-number" th:if="${videoPage.pageNum-1>=1}"><a
th:onclick="'javascript:fanye(\''+${videoPage.pageNum-1}+'\');'"
th:text="${videoPage.pageNum-1}">2</a></li>
<li class="page-number active"><a href="javaScript:void(0);"
th:text="${videoPage.pageNum}">2</a></li>
<li class="page-number" th:if="${videoPage.pageNum+1<=videoPage.pages}"><a
th:onclick="'javascript:fanye(\''+${videoPage.pageNum+1}+'\');'"
th:text="${videoPage.pageNum+1}">2</a></li>
<li class="page-number" th:if="${videoPage.pageNum+2<=videoPage.pages}"><a
th:onclick="'javascript:fanye(\''+${videoPage.pageNum+2}+'\');'"
th:text="${videoPage.pageNum+2}">2</a></li>
<li class="page-number" th:if="${videoPage.pageNum+3<=videoPage.pages}"><a
th:onclick="'javascript:fanye(\''+${videoPage.pageNum+3}+'\');'"
th:text="${videoPage.pageNum+3}">2</a></li>
<li class="page-next" th:if="${!videoPage.isLastPage}"><a
th:onclick="'javascript:fanye(\''+${videoPage.pageNum+1}+'\');'">›</a>
</li>
<li class="page-next"><a
th:onclick="'javascript:fanye(\''+${videoPage.pages}+'\');'">››</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<script th:inline="javascript">
// 获取路径参数
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
// 状态==2是展开状态 触发展开
$(function () {
if (GetQueryString("expand_list_state") == "2") {
$("#query").click();
}
//按钮颜色设置
var state = [[${param.state}]] ? [[${param.state}]][0] : null;
var receive = [[${param.receive}]] ? [[${param.receive}]][0] : null;
var stateIsNull = $.trim(state) == "";
var receiveIsNull = $.trim(receive) == "";
if (stateIsNull && receiveIsNull) {
$("#quanbu").addClass("btn-info");
} else if (state == '0' && receive == '0') {
$("#daishen").addClass("btn-warning");
} else if (state == '0' && receive == '1') {
$("#Mydaishen").addClass("btn-success");
} else if (!stateIsNull && state != '0' && receive == '1') {
$("#yishen").addClass("btn-danger");
}
})
//翻页函数
function fanye(page) {
var param = location.search;
if (param.indexOf("page=") != -1) {
var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
var split = se.split("&");
var h = "";
for (var i = 0; i < split.length; i++) {
var s = split[i];
if (s.indexOf("page=") < 0) h = h + "&" + split[i];
}
h = h.substring(1, h.length);
window.location.href = "/videos/page?" + h + "&page=" + page;
} else {
param = param.substring(1, param.length);
window.location.href = "/videos/page?" + param + "&page=" + page;
}
}
//选择每页数量触发函数
function selectPageSize() {
var pageSize = $("#pageSize").val();
var param = location.search;
if (param.indexOf("pageSize=") != -1) {
var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
var split = se.split("&");
var h = "";
for (var i = 0; i < split.length; i++) {
var s = split[i];
if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i];
}
h = h.substring(1, h.length);
window.location.href = "/videos/page?" + h + "&page=" + 1 + "&pageSize=" + pageSize;
} else {
var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
var split = se.split("&");
var h = "";
for (var i = 0; i < split.length; i++) {
var s = split[i];
if (s.indexOf("page=") < 0) h = h + "&" + split[i];
}
h = h.substring(1, h.length);
window.location.href = "/videos/page?" + h + "&page=" + 1 + "&pageSize=" + pageSize;
}
}
//导出excel
function daochu() {
var param = location.search;
window.location.href = "/videos/excel" + param;
}
var video_priority = "";
var video_title = "";
var start_date = "";
var end_date = "";
var sp_desc = "";
var count = "";
var state = "";
var sp_Id = "";
var source = "";
var video_user_id = "";
var shen_auditor_id = "";
var contentId = "";
var video_id = "";
var expand_list_state = "";
function updateValue() {
video_title = $("#video_titleID").val();
start_date = $("#start_date").val();
end_date = $("#end_date").val();
state = $("#state").val();
sp_Id = $("#sp_Id").val();
source = $("#source").val();
var spId = [[${session.sessionUser.spid}]];
count = $("#pageSize").val();
expand_list_state = $("#forms").attr("expand_list_state");
if (spId == 0) {
sp_desc = $("#sp_desc").val();
video_user_id = $("#video_user_id").val();
shen_auditor_id = $("#shen_auditor_id").val();
contentId = $("#contentId").val();
video_id = $("#video_id").val();
}
}
//全部
function quanbu() {
updateValue();
window.location.href = "/videos/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&source=" + source + "&video_user_id=" + video_user_id + "&shen_auditor_id=" + shen_auditor_id + "&contentId=" + contentId + "&video_id=" + video_id + "&expand_list_state=" + expand_list_state;
}
//全部待领
$('#daishen').click(function () {
updateValue();
if ($.trim(state) == '') state = 0;
var receive = 0;
window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&source=" + source + "&video_user_id=" + video_user_id + "&shen_auditor_id=" + shen_auditor_id + "&contentId=" + contentId + "&video_id=" + video_id + "&expand_list_state=" + expand_list_state;
});
//我的待审核
$('#Mydaishen').click(function () {
updateValue();
var receive = 1;
if ($.trim(state) == '') state = 0;
window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&source=" + source + "&video_user_id=" + video_user_id + "&shen_auditor_id=" + shen_auditor_id + "&contentId=" + contentId + "&video_id=" + video_id + "&expand_list_state=" + expand_list_state;
});
//我的已审核
$('#yishen').click(function () {
updateValue();
var receive = 1;
if ($.trim(state) == '') state = 3;//审核状态,3代表通过和拒绝都查询
window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&source=" + source + "&video_user_id=" + video_user_id + "&shen_auditor_id=" + shen_auditor_id + "&contentId=" + contentId + "&video_id=" + video_id + "&expand_list_state=" + expand_list_state;
});
//查询
$('#videos_query').click(function () {
window.location.href = "/videos/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&source=" + source + "&video_user_id=" + video_user_id + "&shen_auditor_id=" + shen_auditor_id + "&contentId=" + contentId + "&video_id=" + video_id + "&expand_list_state=" + expand_list_state;
});
/*全选的操作*/
$('#select_all').click(function () {
if ($("[name=btSelectItem]:checkbox:not(:checked)").length > 0) {
$("#select_all").prop('checked', true);
$("[name=btSelectItem]:checkbox").each(function () {
$(this).prop('checked', true);
});
} else {
$("#select_all").prop('checked', false);
$("[name=btSelectItem]:checkbox").each(function () {
$(this).prop('checked', false);
});
}
});
/**
* 认领
*/
function receive(n) {
if (n > 0) {
applyReceiveNum(n);
} else {
var rows = $("[name=btSelectItem]:checkbox:checked");
if (rows.length > 0) {
var ids = "";
rows.each(function (i, e) {
ids = ids + "," + e.value;
})
ids = ids.substring(1);
applyReceive(ids);
} else {
alert("请选择要认领的内容!");
}
}
}
//认领选中请求
function applyReceive(ids) {
$.post("/videos/receive?ids=" + ids, function (data) {
if (data.errorCode == 0) {
alert(data.errorMessage);
location.href = location.href;
} else {
alert(data.errorMessage);
}
})
}
//认领多条请求
function applyReceiveNum(num) {
$.post("/videos/receive?num=" + num, function (data) {
if (data.errorCode == 0) {
alert(data.errorMessage);
location.href = location.href;
} else {
alert(data.errorMessage);
}
})
}
//退领选中内容
function retReceive() {
var rows = $("[name=btSelectItem]:checkbox:checked");
if (rows.length > 0) {
var r = confirm("您确定退领选中的" + rows.length + "条内容吗?");
if (r == true) {
var ids = "";
rows.each(function (i, e) {
ids = ids + "," + e.value;
})
ids = ids.substring(1);
applyRetReceive(ids);
}
} else {
alert("没有选中的数据!");
}
}
//退领
function applyRetReceive(ids) {
$.post("/videos/retReceive?ids=" + ids, function (data) {
if (data.errorCode == 0) {
alert(data.errorMessage);
location.href = location.href;
} else {
alert(data.errorMessage);
}
})
}
//拒绝(打回)
function repulse() {
var rows = $("[name=btSelectItem]:checkbox:checked");
if (rows.length > 0) {
var r = confirm("您确定拒绝选中的" + rows.length + "条内容吗?");
if (r == true) {
$('#msgModal').modal('show');
}
} else {
alert("没有选中的数据!");
}
}
//提交打回
function repulseSubmit() {
var rows = $("[name=btSelectItem]:checkbox:checked");
var ids = "";
rows.each(function (i, e) {
ids = ids + "," + e.value;
})
ids = ids.substring(1);
var msg = $("#reviewMsg").val();
$.post("/videos/repulse?ids=" + ids + "&msg=" + msg, function (data) {
if (data.errorCode == 0) {
alert(data.errorMessage);
location.href = location.href;
} else {
alert(data.errorMessage);
}
})
}
</script>
<!-- 模态框(Modal) -->
<div class="modal fade" id="msgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" style="margin-top: 30%;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">审核意见</h4>
</div>
<div class="modal-body">
<div class="form-group" style="margin-bottom: 0;">
<textarea id="reviewMsg" style="width: 100%;height: 80px;"></textarea>
</div>
<div class="form-group">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-primary" onclick="javascript:repulseSubmit();">提交</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<!--保留之前的样式代码-->
<script>
$('#a_down').hide();
/*查询样式*/
function openOrClose(id_name_str) {
var id_name = '#' + id_name_str;
if ($(id_name).css('display') == 'block') {
$(id_name).slideUp(350);
$('#a_up').show();
$('#a_down').hide();
$("#forms").attr("expand_list_state", "1");
} else {
$(id_name).slideDown(350);
$('#a_up').hide();
$('#a_down').show();
$("#forms").attr("expand_list_state", "2");
}
}
/*时间插件*/
$('.date').datetimepicker({
// format: 'YYYY-MM-DD HH:mm:ss',
format: 'YYYY-MM-DD',
locale: "zh-CN",
toolbarPlacement: 'bottom',
showClear: true,
});
</script>
<footer th:replace="../templates/common/foot::foot"></footer>
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="control-sidebar-bg" style="position: fixed; height: auto;"></div>
</div><!-- ./wrapper -->
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script type="text/javascript">
$('div.alert').not('.alert-danger').delay(3000).slideUp(300);
</script>
<!-- AdminLTE App -->
<script src="./../../static/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="./../../static/js/sidebar.js"></script>
</body>
</html>