videoDetail.html
29.5 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
<!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">
<!-- right column -->
<div class="col-xs-12">
<div class="box box-info">
<div class="box-body form-horizontal">
<div class="col-sm-12">
<div class="form-group" style="margin-bottom: 6px;">
<div style=" margin-left: -5%;">
<label for="activity_id" class="control-label col-sm-2">点播活动id:</label>
<div class="col-sm-2">
<h5 id="activity_id" th:text="${video.video_id}">
82_7d92ef8192364d4891820426329801bd</h5>
</div>
</div>
<div style="margin-left: -14%;">
<label for="spid" class="control-label col-sm-2">spId:</label>
<div class="col-sm-2">
<h5 th:text="${video.spid}">视讯中国</h5>
</div>
</div>
<div>
<label for="upload_time" class="control-label col-sm-2"
style="margin-left: -5%">视频上传时间:</label>
<div class="col-sm-2">
<h5 th:text="${#dates.format(video.video_upload_time, 'yyyy-MM-dd HH:mm:ss')}">
2017-07-12 10:16:50</h5>
</div>
</div>
</div>
<hr>
</div>
<div id="tabContents" class="tab-content">
<div id="tabHome" class="tab-pane fade in active padding-t-15">
<div class="col-sm-5">
<div class="form-group" style="margin-bottom: 6px;">
<label for="video_title" class="control-label col-sm-4">点播标题:</label>
<div class="col-sm-8">
<h5 style="font-size:1.5em; font-weight: bold;"
th:text="${video.video_title}">标题</h5>
</div>
</div>
<div class="form-group intro" style="margin-bottom: 6px;">
<label for="video_intro" class="control-label col-sm-4">点播简介:</label>
<div class="col-sm-8">
<h5 style="font-size:1.5em; font-weight: bold; width:100%"
th:text="${video.video_desc}">简介</h5>
</div>
</div>
<div class="form-group">
<label for="video_tag" class="control-label col-sm-4">点播标签:</label>
<div class="col-sm-8">
<h5 style="font-size:1.5em; font-weight: bold;" id="video_tag"
th:text="${video.video_tags}">点播标签</h5>
</div>
</div>
<div class="form-group">
<label for="video_keyword" class="control-label col-sm-4">点播关键字:</label>
<div class="col-sm-8">
<h5 style="font-size:1.5em; font-weight: bold;"
th:text="${video.video_keyword}">关键字</h5>
</div>
</div>
<div class="form-group">
<label for="video_user_id" class="control-label col-sm-4">视频上传人的id:</label>
<div class="col-sm-8">
<h5 style="font-size:1.5em; font-weight: bold;"
th:text="${video.video_user_id}">video_user_id</h5>
</div>
</div>
<div class="form-group">
<label for="spid_desc" class="control-label col-sm-4">sp简称:</label>
<div class="col-sm-8">
<h5 style="font-size:1.5em; font-weight: bold;"
th:text="${video.spid_desc}">video_user_id</h5>
</div>
</div>
<hr>
<div class="form-group">
<div class="col-sm-12">
<div class="modal-body" id="videoBox" style="height:450px">
<script type="text/javascript"
src="//resweb.cnliveimg.com/sites/common/cnlive_video.min.js"></script>
<script th:inline="javascript">
var videoUrl = [[${video.video_url}]];
var cover = [[${video.video_poster}]];
cnliveVideo.init({
"eleId": "videoBox",
"model": 3,
"autoplay": 1,
"currRate": 3,
"cover": cover,
"videoUrl_3": videoUrl
});
</script>
</div>
</div>
</div>
<br>
<hr>
<div class="form-group">
<label for="state" class="control-label col-sm-3">审核状态:</label>
<div class="col-sm-9">
<h5 th:if="${video.state==0}">未审核</h5>
<h5 th:if="${video.state==1}">已审 通过</h5>
<h5 th:if="${video.state==2}">拒绝</h5>
<h5 th:if="${video.state==3}">自动审核失败</h5>
</div>
</div>
<!--<div class="form-group ">-->
<!--<label for="state" class="control-label col-sm-3">审核日志:</label>-->
<!--<div class="col-sm-9 ">-->
<!--<h5 id="state">1:系统审核;2017-07-12 11:54:01;点播审核可信,系统自动审核-->
<!--<br></h5>-->
<!--</div>-->
<!--</div>-->
<div class="form-group ">
<label for="auditor_id" class="control-label col-sm-3">审核员:</label>
<div class="col-sm-9 ">
<h5 id="auditor_id" th:text="${video.updater}">系统审核 </h5>
</div>
</div>
<div class="form-group file">
<label class="control-label col-sm-3" for="attr_tags">常用审核意见:</label>
<div class="col-sm-9">
<select class="form-control select2 select2-hidden-accessible"
onchange="change()" multiple="" data-placeholder="选择常用审核意见,可多选"
name="attr_tags[]" id="attr_tags" style="width: 100%;"
tabindex="-1" aria-hidden="true">
<option value="其他"
th:selected="${video.attr_tags.indexOf('其他')!=-1}">其他
</option>
<option value="不符"
th:selected="${video.attr_tags.indexOf('不符')!=-1}">不符
</option>
<option value="规范"
th:selected="${video.attr_tags.indexOf('规范')!=-1}">规范
</option>
<option value="建议"
th:selected="${video.attr_tags.indexOf('建议')!=-1}">建议
</option>
<option value="错字"
th:selected="${video.attr_tags.indexOf('错字')!=-1}">错字
</option>
<option value="要求"
th:selected="${video.attr_tags.indexOf('要求')!=-1}">要求
</option>
<option value="图片"
th:selected="${video.attr_tags.indexOf('图片')!=-1}">图片
</option>
<option value="敏感"
th:selected="${video.attr_tags.indexOf('敏感')!=-1}">敏感
</option>
<option value="视频"
th:selected="${video.attr_tags.indexOf('视频')!=-1}">视频
</option>
<option value="提交"
th:selected="${video.attr_tags.indexOf('提交')!=-1}">提交
</option>
</select>
</div>
</div>
<div class="form-group">
<label for="msg" class="control-label col-sm-3">审核备注</label>
<div class="col-sm-9">
<textarea name="msg" id="msg" cols="5" rows="5" class="form-control"
th:text="${video.msg}"></textarea>
</div>
</div>
</div>
</div>
<!--抽真图-->
<div class="form-group col-sm-7">
<label class="control-label col-sm-3">抽帧截图 : </label>
</div>
<div class="form-group col-sm-7"
style="overflow:scroll; height:400px; width: 44%;position: relative;right: -14%;margin-top: -4%;">
<div class="col-sm-12" th:each="avImage,avImageStat : ${avsampleImgs}">
<div style="padding:5px;width: 108%;" class="col-sm-8 popover-options"
th:if="${avImageStat.index%2==0}">
<a href="javascript:void (0);"
style="float: left; width: 48%; margin-right: 1%"><img
th:src="${yuming}+ @{${avImage}}"
style="width: 100%; " alt="抽帧图"></a>
<a href="javascript:void (0);" style="float: left; width: 48%;"
th:if="${!avImageStat.last}"><img
th:src="${yuming}+ @{${avsampleImgs[avImageStat.index+1]}}"
style="width: 100%;" alt="抽帧图"></a>
</div>
</div>
</div>
<div class="form-group col-sm-7">
<div>
<label for="video_cover_img" class="control-label col-sm-4"
style="margin-left: -3%">封面图:</label>
</div>
<div style="height:110px; margin-left: 17%;">
<div class="col-sm-4 popover-options "
th:style="${imgsStat.index==0}? 'float:left;margin-right: 43px;margin-left: -18px;':''"
th:if="${imgsStat.index<2}"
th:each="imgs :${images}">
<a href="#">
<img th:src="@{${imgs.value}}" height="100px" alt="封面图">
</a>
<b th:text="${imgs.key}"></b>
</div>
</div>
<div style="height: 110px;margin-top: 15px;">
<label for="" class="control-label col-sm-4"
style="width: 26.3%;"></label>
<div class="col-sm-4 popover-options "
th:style="${imgsStat.index==2}?'float:left;margin-right: 15px;':'float:left;'"
th:if="${imgsStat.index>=2&&imgsStat.index<4}"
th:each="imgs :${images}">
<a href="#">
<img th:src="@{${imgs.value}}" height="100px" alt="封面图">
</a>
<b th:text="${imgs.key}"></b>
</div>
</div>
<div style="height: 110px;margin-top: 15px;">
<label for="" class="control-label col-sm-4"
style="width: 26.3%;"></label>
<div class="col-sm-4 popover-options"
th:style="${imgsStat.index==4}?'float:left;margin-right: 15px;':'float:left;'"
th:if="${imgsStat.index>=4}"
th:each="imgs :${images}">
<a href="#">
<img th:src="@{${imgs.value}}" height="100px" alt="封面图">
</a>
<b th:text="${imgs.key}"></b>
</div>
</div>
</div>
<!--不能删,此处已隐藏,起一个格式作用,使通过,拒绝,返回列表能顶到底部-->
<div class="form-group">
<input type="text" hidden="hidden" id="video_id" value="">
</div>
<div class="box-footer">
<div class="col-sm-5">
<button type="button" class="btn btn-danger pull-right" id="reject">拒 绝</button>
</div>
<div class="col-sm-1" style="margin-right:26px;">
<button type="button" class="btn btn-primary pull-right" id="pass">通 过</button>
</div>
<div class="col-sm-1">
<button type="submit" class="btn btn-info pull-right" id="back">返回列表</button>
</div>
</div>
<!-- 拒绝确认弹出框 -->
<div class="modal" id="action_note" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> ×</button>
<h4 class="modal-title">温馨提示</h4>
</div>
<div class="modal-body" id="msg2"></div>
<div class="modal-footer">
<button type="button" class="btn btn-default " data-dismiss="modal"
id="action_note_no">取消
</button>
<button type="button" class="btn btn-primary" id="action_note_yes">确认
</button>
<input type="hidden" name="action_note_type" id="action_note_type"
value="">
<input type="hidden" name="action_note_id" id="action_note_id" value="">
</div>
</div>
</div>
</div>
<script th:inline="javascript">
$(function () {
var url = "/videos/page";
$('ul.treeview-menu>li').removeClass("active");
$('.sidebar-menu>li').removeClass("active");
$('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //二级链接高亮
$('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li.treeview').addClass('active'); //一级栏目[含二级链接]高亮
$('.sidebar-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //一级栏目[不含二级链接]高亮
})
//使常用审核意见回显到下方的备注中
function change() {
// $("#msg").val($("#attr_tags").val());
}
/*拒绝*/
$("#reject").click(function () {
var attr_tags = $('#attr_tags').val();//获取标签属性信息
var msg = $('#msg').val(); //获取审核msg
if (attr_tags == null && msg == '') { //两个都为空 不行
alert('请输入审核备注或者常用审核意见!');
return false;
}
//拒绝弹出框
$('#msg2').html('您确认拒绝此条点播吗?');
$('#action_note').show();
$("#action_note_type").val('reject');
$("#action_note_id").val();
});
//弹出框取消
$("#action_note_no, .close").click(function () {
$("#action_note").hide();
});
//弹出框确认
$("#action_note_yes").click(function () {
var id = [[${video.id}]];
var activity_id = [[${video.video_id}]];
var state = 4;
var row_id = $("#video_id").val();
var attr_tags = $('#attr_tags').val();//获取标签属性信息
var msg = $('#msg').val(); //获取审核msg
var callback = [[${video.callback}]];
if (attr_tags == null && msg == '') { //两个都为空 不行
alert('请输入审核备注或者常用审核意见!');
return false;
}
if (typeof (row_id) == "undefined") {
return false;
}
//拒绝
$("#action_note").hide();//隐藏弹出框
var action_note_type = $("#action_note_type").val();
if (action_note_type == 'reject') {
$.post("/videos/shenheVideo", {
id: id,
activity_id: activity_id,
state: state,
attr_tags: attr_tags + "",
msg: msg,
callback: callback
},
function (data) {
if (data.errorCode == 0) {
alert(data.errorMessage);
self.location = document.referrer;
} else {
alert(data.errorMessage);
}
})
}
});
/*通过*/
$("#pass").click(function () {
var id = [[${video.id}]];
var state = 3;
var activity_id = [[${video.video_id}]];
var attr_tags = $('#attr_tags').val();//获取标签属性信息
var msg = $('#msg').val(); //获取审核msg
var callback = [[${video.callback}]];
if (typeof (activity_id) == "undefined") {
return false;
}
if (confirm("您确认通过此条点播吗?")) {
$.post("/videos/shenheVideo", {
id: id,
activity_id: activity_id,
state: state,
attr_tags: attr_tags + "",
msg: msg,
callback: callback
},
function (data) {
if (data.errorCode == 0) {
alert(data.errorMessage);
self.location = document.referrer;
} else {
alert(data.errorMessage);
}
});
}
});
/*返回列表 */
$("#back").click(function () {
// window.location.href = '/videos/page';
self.location = document.referrer;
});
</script>
<!-- Select2 todo xiaohu -->
<script src="../../static/js/select2.full.min.js"></script>
<!-- Select2 todo xiaohu -->
<link rel="stylesheet" href="../../static/css/select2.min.css">
<link rel="stylesheet" href="../../static/css/AdminLTE.min.css">
<script>
$(function () {
$(".select2").select2();
});
</script>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<footer th:replace="../templates/common/foot::foot"></footer>
<div class="control-sidebar-bg" style="position: fixed; height: auto;"></div>
</div>
<!-- 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>