Commit 623681be792b30f9aa86492fb6a234be4bec9f03

Authored by 王言钊
1 parent 40f40dcd

修复图文模块条件搜索下拉列展开

src/main/resources/templates/page/content.html
@@ -480,8 +480,10 @@ @@ -480,8 +480,10 @@
480 var count = ""; 480 var count = "";
481 var contentId = ""; 481 var contentId = "";
482 var content_tag = ""; 482 var content_tag = "";
  483 + var expand_list_state = "";
483 484
484 function updateValue() { 485 function updateValue() {
  486 + expand_list_state = $("#forms").attr("expand_list_state");
485 title = $("#video_titleID").val(); 487 title = $("#video_titleID").val();
486 source = $("#source").val(); 488 source = $("#source").val();
487 author = $("#author").val(); 489 author = $("#author").val();
@@ -500,7 +502,6 @@ @@ -500,7 +502,6 @@
500 //全部 502 //全部
501 function quanbu() { 503 function quanbu() {
502 updateValue(); 504 updateValue();
503 - var expand_list_state = $("#forms").attr("expand_list_state");  
504 window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state; 505 window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
505 } 506 }
506 507
@@ -508,25 +509,25 @@ @@ -508,25 +509,25 @@
508 $('#daishen').click(function () { 509 $('#daishen').click(function () {
509 updateValue(); 510 updateValue();
510 var receive_status = 0; 511 var receive_status = 0;
511 - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag; 512 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
512 }); 513 });
513 //我的待审核 514 //我的待审核
514 $('#Mydaishen').click(function () { 515 $('#Mydaishen').click(function () {
515 updateValue(); 516 updateValue();
516 var receive_status = 1; 517 var receive_status = 1;
517 - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag; 518 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
518 }); 519 });
519 //我的已审核 520 //我的已审核
520 $('#yishen').click(function () { 521 $('#yishen').click(function () {
521 updateValue(); 522 updateValue();
522 var receive_status = 2; 523 var receive_status = 2;
523 - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag; 524 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
524 }); 525 });
525 526
526 527
527 //查询 528 //查询
528 $('#videos_query').click(function () { 529 $('#videos_query').click(function () {
529 - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag; 530 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
530 }); 531 });
531 /*全选的操作*/ 532 /*全选的操作*/
532 $('#select_all').click(function () { 533 $('#select_all').click(function () {