Commit d6bff5f6d76ac69a2c7b1c564baf1fd0ac0f34a7

Authored by 徐近程
1 parent 98322b2e

update

src/main/resources/templates/page/video.html
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 <div class="box-body"> 25 <div class="box-body">
26 26
27 <div class="btn-group margin-bottom pull-left"> 27 <div class="btn-group margin-bottom pull-left">
28 -<!-- <input type="hidden" name="state" id="state" value=""/> --> 28 + <!-- <input type="hidden" name="state" id="state" value=""/> -->
29 <div class="btn-group margin-bottom" id="hide_select_area_2" style=> 29 <div class="btn-group margin-bottom" id="hide_select_area_2" style=>
30 <button type="button" class="btn btn-success btn-sm margin-r-5 action claim" 30 <button type="button" class="btn btn-success btn-sm margin-r-5 action claim"
31 value="2" data="claim" id="claim" data-toggle="modal" 31 value="2" data="claim" id="claim" data-toggle="modal"
@@ -130,27 +130,20 @@ @@ -130,27 +130,20 @@
130 <input class="form-control" type="text" value="" id="sp_desc"> 130 <input class="form-control" type="text" value="" id="sp_desc">
131 </div> 131 </div>
132 </div> 132 </div>
133 -  
134 - <div class="col-md-6" style="padding: 0;width: 25%;" th:if="${session.sessionUser.spid==0}">  
135 - <label for="sp_Id" class="control-label cb-toolbar">spId</label>  
136 - <div class="col-sm-9" style="padding: 0;">  
137 - <input class="form-control" type="text" value="" id="sp_Id">  
138 - </div>  
139 - </div>  
140 -<!-- <div class="col-md-6" style="padding: 0;width: 15%;" th:if="${session.sessionUser.spid==0}"> -->  
141 -<!-- <label for="count" class="control-label cb-toolbar">每页条数:</label> -->  
142 -<!-- <div class="col-sm-5" style="padding: 0;"> -->  
143 -<!-- <input class="form-control" type="text" value="" id="count"> -->  
144 -<!-- </div> -->  
145 -<!-- </div> --> 133 + <!-- <div class="col-md-6" style="padding: 0;width: 15%;" th:if="${session.sessionUser.spid==0}"> -->
  134 + <!-- <label for="count" class="control-label cb-toolbar">每页条数:</label> -->
  135 + <!-- <div class="col-sm-5" style="padding: 0;"> -->
  136 + <!-- <input class="form-control" type="text" value="" id="count"> -->
  137 + <!-- </div> -->
  138 + <!-- </div> -->
146 </div> 139 </div>
147 </div> 140 </div>
148 -<!-- <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 1%;float: left;"> -->  
149 -<!-- <div class="col-md-1 text-center" style="width: 12%;padding: 0;float: right;"> -->  
150 -<!-- <button type="button" class="btn btn-primary btn-sm" id="videos_query">查 询 -->  
151 -<!-- </button> -->  
152 -<!-- </div> -->  
153 -<!-- </div> --> 141 + <!-- <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 1%;float: left;"> -->
  142 + <!-- <div class="col-md-1 text-center" style="width: 12%;padding: 0;float: right;"> -->
  143 + <!-- <button type="button" class="btn btn-primary btn-sm" id="videos_query">查 询 -->
  144 + <!-- </button> -->
  145 + <!-- </div> -->
  146 + <!-- </div> -->
154 </div> 147 </div>
155 148
156 <div class="fixed-table-container" style="padding-bottom: 0px;"> 149 <div class="fixed-table-container" style="padding-bottom: 0px;">
@@ -221,9 +214,9 @@ @@ -221,9 +214,9 @@
221 <td style="text-align: center; width: 6%;" 214 <td style="text-align: center; width: 6%;"
222 th:text="${video.spid_desc}"></td> 215 th:text="${video.spid_desc}"></td>
223 <td style="text-align: center; width: 20%;" > 216 <td style="text-align: center; width: 20%;" >
224 - <a class="detail" th:href="@{'/videos/details/?id='+${video.id}}">  
225 - <span th:text="${video.video_title}">邓建国正面PK冯小刚</span>  
226 - </a> 217 + <a class="detail" th:href="@{'/videos/details/?id='+${video.id}}">
  218 + <span th:text="${video.video_title}">邓建国正面PK冯小刚</span>
  219 + </a>
227 </td> 220 </td>
228 <!--<td style="text-align: center; width: 10%;">--> 221 <!--<td style="text-align: center; width: 10%;">-->
229 <!--<div width="160px" height="90px"><img th:src="@{${video.video_poster}}" width="160px" alt="封面图"></div>--> 222 <!--<div width="160px" height="90px"><img th:src="@{${video.video_poster}}" width="160px" alt="封面图"></div>-->
@@ -237,7 +230,7 @@ @@ -237,7 +230,7 @@
237 <span class="btn btn-sm btn-warning" th:if="${video.state==0}">待审</span> 230 <span class="btn btn-sm btn-warning" th:if="${video.state==0}">待审</span>
238 <span class="btn btn-sm btn-success" th:if="${video.state==1}">通过</span> 231 <span class="btn btn-sm btn-success" th:if="${video.state==1}">通过</span>
239 <span class="btn btn-sm btn-danger" th:if="${video.state==2}">拒绝</span> 232 <span class="btn btn-sm btn-danger" th:if="${video.state==2}">拒绝</span>
240 -<!-- <span class="btn btn-sm btn-danger" th:if="${video.state==3}">自动审核失败</span> --> 233 + <!-- <span class="btn btn-sm btn-danger" th:if="${video.state==3}">自动审核失败</span> -->
241 </td> 234 </td>
242 <td style="text-align: center; width: 3%;"> 235 <td style="text-align: center; width: 3%;">
243 <span th:if="${video.shenhe_type==1}">免审</span> 236 <span th:if="${video.shenhe_type==1}">免审</span>
@@ -277,12 +270,12 @@ @@ -277,12 +270,12 @@
277 <!--分页处理--> 270 <!--分页处理-->
278 <div class="fixed-table-pagination" style="display: block;"> 271 <div class="fixed-table-pagination" style="display: block;">
279 <div class="pull-left pagination-detail"> 272 <div class="pull-left pagination-detail">
280 - <span class="pagination-info" th:text="'共 '+${videoPage.total}+' 条记录,每页显示'">共 0 条记录</span>  
281 - <select class="" id="pageSize" name="pageSize" onchange="selectPageSize()">  
282 - <option value="10" th:selected="${pageSize==10}">10</option>  
283 - <option value="20" th:selected="${pageSize==20}">20</option>  
284 - <option value="50" th:selected="${pageSize==50}">50</option>  
285 - <option value="100" th:selected="${pageSize==100}">100</option> 273 + <span class="pagination-info" th:text="'共 '+${videoPage.total}+' 条记录,每页显示'">共 0 条记录</span>
  274 + <select class="" id="pageSize" name="pageSize" onchange="selectPageSize()">
  275 + <option value="10" th:selected="${pageSize==10}">10</option>
  276 + <option value="20" th:selected="${pageSize==20}">20</option>
  277 + <option value="50" th:selected="${pageSize==50}">50</option>
  278 + <option value="100" th:selected="${pageSize==100}">100</option>
286 </select> 279 </select>
287 <span class="pagination-info" >条记录</span> 280 <span class="pagination-info" >条记录</span>
288 </div> 281 </div>
@@ -353,7 +346,7 @@ @@ -353,7 +346,7 @@
353 function fanye(page) { 346 function fanye(page) {
354 var param = location.search; 347 var param = location.search;
355 if (param.indexOf("page=") != -1) { 348 if (param.indexOf("page=") != -1) {
356 - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 349 + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
357 var split = se.split("&"); 350 var split = se.split("&");
358 var h = ""; 351 var h = "";
359 for (var i = 0; i < split.length; i++) { 352 for (var i = 0; i < split.length; i++) {
@@ -367,32 +360,32 @@ @@ -367,32 +360,32 @@
367 window.location.href = "/videos/page?" + param + "&page=" + page; 360 window.location.href = "/videos/page?" + param + "&page=" + page;
368 } 361 }
369 } 362 }
370 - 363 +
371 //选择每页数量触发函数 364 //选择每页数量触发函数
372 function selectPageSize(){ 365 function selectPageSize(){
373 - var pageSize=$("#pageSize").val();  
374 - var param = location.search;  
375 - if (param.indexOf("pageSize=") != -1) {  
376 - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连  
377 - var split = se.split("&");  
378 - var h = "";  
379 - for (var i = 0; i < split.length; i++) {  
380 - var s = split[i];  
381 - if (s.indexOf("pageSize=") < 0 &&s.indexOf("page=") < 0) h = h + "&" + split[i];  
382 - }  
383 - h = h.substring(1, h.length);  
384 - window.location.href = "/videos/page?" + h + "&pageSize=" + pageSize;  
385 - } else {  
386 - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连  
387 - var split = se.split("&");  
388 - var h = "";  
389 - for (var i = 0; i < split.length; i++) {  
390 - var s = split[i];  
391 - if (s.indexOf("page=") < 0) h = h + "&" + split[i];  
392 - }  
393 - h = h.substring(1, h.length);  
394 - window.location.href = "/videos/page?" + h + "&pageSize=" + pageSize;  
395 - } 366 + var pageSize=$("#pageSize").val();
  367 + var param = location.search;
  368 + if (param.indexOf("pageSize=") != -1) {
  369 + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
  370 + var split = se.split("&");
  371 + var h = "";
  372 + for (var i = 0; i < split.length; i++) {
  373 + var s = split[i];
  374 + if (s.indexOf("pageSize=") < 0 &&s.indexOf("page=") < 0) h = h + "&" + split[i];
  375 + }
  376 + h = h.substring(1, h.length);
  377 + window.location.href = "/videos/page?" + h + "&pageSize=" + pageSize;
  378 + } else {
  379 + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
  380 + var split = se.split("&");
  381 + var h = "";
  382 + for (var i = 0; i < split.length; i++) {
  383 + var s = split[i];
  384 + if (s.indexOf("page=") < 0) h = h + "&" + split[i];
  385 + }
  386 + h = h.substring(1, h.length);
  387 + window.location.href = "/videos/page?" + h + "&pageSize=" + pageSize;
  388 + }
396 } 389 }
397 390
398 //导出excel 391 //导出excel
@@ -400,63 +393,61 @@ @@ -400,63 +393,61 @@
400 var param = location.search; 393 var param = location.search;
401 window.location.href = "/videos/excel" + param; 394 window.location.href = "/videos/excel" + param;
402 } 395 }
403 -  
404 - var video_priority ="";  
405 - var video_title = "";  
406 - var start_date ="";  
407 - var end_date = "";  
408 - var sp_desc ="";  
409 - var count = "";  
410 - var state = "";  
411 - var sp_Id = "";  
412 -  
413 - function updateValue(){ 396 +
  397 + var video_priority ="";
  398 + var video_title = "";
  399 + var start_date ="";
  400 + var end_date = "";
  401 + var sp_desc ="";
  402 + var count = "";
  403 + var state = "";
  404 +
  405 + function updateValue(){
414 // video_priority = $("#video_priority").val(); 406 // video_priority = $("#video_priority").val();
415 - video_title = $("#video_titleID").val();  
416 - start_date = $("#start_date").val();  
417 - end_date = $("#end_date").val();  
418 - state = $("#state").val();  
419 - sp_Id = $("#sp_Id").val();  
420 - var spId=[[${session.sessionUser.spid}]];  
421 - if(spId==0){ 407 + video_title = $("#video_titleID").val();
  408 + start_date = $("#start_date").val();
  409 + end_date = $("#end_date").val();
  410 + state = $("#state").val();
  411 + var spId=[[${session.sessionUser.spid}]];
  412 + if(spId==0){
422 sp_desc = $("#sp_desc").val(); 413 sp_desc = $("#sp_desc").val();
423 count = $("#pageSize").val(); 414 count = $("#pageSize").val();
424 - }  
425 } 415 }
426 - 416 + }
  417 +
427 418
428 //全部 419 //全部
429 function quanbu() { 420 function quanbu() {
430 - updateValue();  
431 - 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+"&pageSize="+count+"&sp_Id="+sp_Id; 421 + updateValue();
  422 + 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+"&pageSize="+count;
432 } 423 }
433 424
434 //全部待领 425 //全部待领
435 $('#daishen').click(function () { 426 $('#daishen').click(function () {
436 - updateValue();  
437 - if($.trim(state) == '') state=0; 427 + updateValue();
  428 + if($.trim(state) == '') state=0;
438 var receive = 0; 429 var receive = 0;
439 - 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+"&pageSize="+count+"&sp_Id="+sp_Id; 430 + 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+"&pageSize="+count;
440 }); 431 });
441 //我的待审核 432 //我的待审核
442 $('#Mydaishen').click(function () { 433 $('#Mydaishen').click(function () {
443 - updateValue(); 434 + updateValue();
444 var receive = 1; 435 var receive = 1;
445 if($.trim(state) == '') state=0; 436 if($.trim(state) == '') state=0;
446 - 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+"&pageSize="+count+"&sp_Id="+sp_Id; 437 + 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+"&pageSize="+count;
447 }); 438 });
448 //我的已审核 439 //我的已审核
449 $('#yishen').click(function () { 440 $('#yishen').click(function () {
450 - updateValue(); 441 + updateValue();
451 var receive = 1; 442 var receive = 1;
452 if($.trim(state) == '') state=3;//审核状态,3代表通过和拒绝都查询 443 if($.trim(state) == '') state=3;//审核状态,3代表通过和拒绝都查询
453 - 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+"&pageSize="+count+"&sp_Id="+sp_Id; 444 + 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+"&pageSize="+count;
454 }); 445 });
455 446
456 447
457 //查询 448 //查询
458 $('#videos_query').click(function () { 449 $('#videos_query').click(function () {
459 - 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+"&pageSize="+count+"&sp_Id="+sp_Id; 450 + 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+"&pageSize="+count;
460 }); 451 });
461 /*全选的操作*/ 452 /*全选的操作*/
462 $('#select_all').click(function () { 453 $('#select_all').click(function () {