Commit d6bff5f6d76ac69a2c7b1c564baf1fd0ac0f34a7

Authored by 徐近程
1 parent 98322b2e

update

src/main/resources/templates/page/video.html
... ... @@ -25,7 +25,7 @@
25 25 <div class="box-body">
26 26  
27 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 29 <div class="btn-group margin-bottom" id="hide_select_area_2" style=>
30 30 <button type="button" class="btn btn-success btn-sm margin-r-5 action claim"
31 31 value="2" data="claim" id="claim" data-toggle="modal"
... ... @@ -130,27 +130,20 @@
130 130 <input class="form-control" type="text" value="" id="sp_desc">
131 131 </div>
132 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 139 </div>
147 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 147 </div>
155 148  
156 149 <div class="fixed-table-container" style="padding-bottom: 0px;">
... ... @@ -221,9 +214,9 @@
221 214 <td style="text-align: center; width: 6%;"
222 215 th:text="${video.spid_desc}"></td>
223 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 220 </td>
228 221 <!--<td style="text-align: center; width: 10%;">-->
229 222 <!--<div width="160px" height="90px"><img th:src="@{${video.video_poster}}" width="160px" alt="封面图"></div>-->
... ... @@ -237,7 +230,7 @@
237 230 <span class="btn btn-sm btn-warning" th:if="${video.state==0}">待审</span>
238 231 <span class="btn btn-sm btn-success" th:if="${video.state==1}">通过</span>
239 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 234 </td>
242 235 <td style="text-align: center; width: 3%;">
243 236 <span th:if="${video.shenhe_type==1}">免审</span>
... ... @@ -277,12 +270,12 @@
277 270 <!--分页处理-->
278 271 <div class="fixed-table-pagination" style="display: block;">
279 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 279 </select>
287 280 <span class="pagination-info" >条记录</span>
288 281 </div>
... ... @@ -353,7 +346,7 @@
353 346 function fanye(page) {
354 347 var param = location.search;
355 348 if (param.indexOf("page=") != -1) {
356   - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
  349 + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
357 350 var split = se.split("&");
358 351 var h = "";
359 352 for (var i = 0; i < split.length; i++) {
... ... @@ -367,32 +360,32 @@
367 360 window.location.href = "/videos/page?" + param + "&page=" + page;
368 361 }
369 362 }
370   -
  363 +
371 364 //选择每页数量触发函数
372 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 391 //导出excel
... ... @@ -400,63 +393,61 @@
400 393 var param = location.search;
401 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 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 413 sp_desc = $("#sp_desc").val();
423 414 count = $("#pageSize").val();
424   - }
425 415 }
426   -
  416 + }
  417 +
427 418  
428 419 //全部
429 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 426 $('#daishen').click(function () {
436   - updateValue();
437   - if($.trim(state) == '') state=0;
  427 + updateValue();
  428 + if($.trim(state) == '') state=0;
438 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 433 $('#Mydaishen').click(function () {
443   - updateValue();
  434 + updateValue();
444 435 var receive = 1;
445 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 440 $('#yishen').click(function () {
450   - updateValue();
  441 + updateValue();
451 442 var receive = 1;
452 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 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 453 $('#select_all').click(function () {
... ...