Commit c83bc79f1e89a7aadea34425327ae8c3351569ab

Authored by liwei2917
1 parent 1b05023b

增加查询条数

src/main/resources/templates/page/video.html
... ... @@ -129,6 +129,12 @@
129 129 <input class="form-control" type="text" value="" id="sp_desc">
130 130 </div>
131 131 </div>
  132 + <div class="col-md-6" style="padding: 0;width: 25%;" th:if="${session.sessionUser.spid==0}">
  133 + <label for="count" class="control-label cb-toolbar">每页条数:</label>
  134 + <div class="col-sm-9" style="padding: 0;">
  135 + <input class="form-control" type="text" value="" id="count">
  136 + </div>
  137 + </div>
132 138 </div>
133 139 </div>
134 140 <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 1%;float: left;">
... ... @@ -349,7 +355,9 @@
349 355 var video_title = $("#video_titleID").val();
350 356 var start_date = $("#start_date").val();
351 357 var end_date = $("#end_date").val();
352   - window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority;
  358 + var sp_desc = $("#sp_desc").val();
  359 + var count = $("#count").val();
  360 + 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;
353 361 });
354 362 //我的待审核
355 363 $('#Mydaishen').click(function () {
... ... @@ -359,7 +367,9 @@
359 367 var video_title = $("#video_titleID").val();
360 368 var start_date = $("#start_date").val();
361 369 var end_date = $("#end_date").val();
362   - window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority;
  370 + var sp_desc = $("#sp_desc").val();
  371 + var count = $("#count").val();
  372 + 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;
363 373 });
364 374 //我的已审核
365 375 $('#yishen').click(function () {
... ... @@ -369,7 +379,9 @@
369 379 var video_title = $("#video_titleID").val();
370 380 var start_date = $("#start_date").val();
371 381 var end_date = $("#end_date").val();
372   - window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority;
  382 + var sp_desc = $("#sp_desc").val();
  383 + var count = $("#count").val();
  384 + 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;
373 385 });
374 386  
375 387  
... ... @@ -380,7 +392,8 @@
380 392 var start_date = $("#start_date").val();
381 393 var end_date = $("#end_date").val();
382 394 var sp_desc = $("#sp_desc").val();
383   - window.location.href = "/videos/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=&video_priority=" + video_priority + "&sp_desc=" + sp_desc;
  395 + var count = $("#count").val();
  396 + window.location.href = "/videos/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=&video_priority=" + video_priority + "&sp_desc=" + sp_desc+"&pageSize="+count;
384 397 });
385 398 /*全选的操作*/
386 399 $('#select_all').click(function () {
... ...