Commit 9417cfcd6875eb5445cf25822806befa91f7c2cb

Authored by 王言钊
1 parent c09f7721

优化审核云页面代码 变量名、无用代码、添加解释注释

src/main/resources/templates/common/frame.html
... ... @@ -74,7 +74,7 @@ line-height: 2em; margin: 0 auto;font-size: 2em"
74 74 <ul class="sidebar-menu">
75 75 <li class="header">菜单导航</li>
76 76 <li class="treeview active">
77   - <a href="#" id="s">
  77 + <a href="#">
78 78 <span class="menu-item-top">审核云</span>
79 79 </a>
80 80 <ul class="treeview-menu">
... ... @@ -89,7 +89,7 @@ line-height: 2em; margin: 0 auto;font-size: 2em&quot;
89 89 </ul>
90 90 </li>
91 91 <li class="treeview" th:if="${session.sessionUser.spid==0 || session.sessionUser.spid==60}">
92   - <a href="#" id="x">
  92 + <a href="#">
93 93 <span class="menu-item-top">系统管理</span>
94 94 </a>
95 95 <ul class="treeview-menu">
... ...
src/main/resources/templates/page/audio.html
... ... @@ -338,18 +338,17 @@
338 338 </section>
339 339 </div>
340 340 <script th:inline="javascript">
  341 + // 获取路径参数
341 342 function GetQueryString(name) {
342 343 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
343 344 var r = window.location.search.substr(1).match(reg);
344 345 if (r != null) return unescape(r[2]);
345 346 return null;
346 347 }
347   -
  348 + // 状态==2是展开状态 触发展开
348 349 $(function () {
349   - if (GetQueryString("up_d") == "2") {
  350 + if (GetQueryString("expand_list_state") == "2") {
350 351 $("#query").click();
351   - } else {
352   -
353 352 }
354 353 //按钮颜色设置
355 354 var state = [[${param.state}]] ? [[${param.state}]][0] : null;
... ... @@ -448,8 +447,8 @@
448 447 //全部
449 448 function quanbu() {
450 449 updateValue();
451   - var up_d = $("#forms").attr("up_d");
452   - window.location.href = "/audio/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 + "&up_d=" + up_d;
  450 + var expand_list_state = $("#forms").attr("expand_list_state");
  451 + window.location.href = "/audio/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 + "&expand_list_state=" + expand_list_state;
453 452 }
454 453  
455 454 //全部待领
... ... @@ -636,12 +635,12 @@
636 635 $(id_name).slideUp(350);
637 636 $('#a_up').show();
638 637 $('#a_down').hide();
639   - $("#forms").attr("up_d", "1");
  638 + $("#forms").attr("expand_list_state", "1");
640 639 } else {
641 640 $(id_name).slideDown(350);
642 641 $('#a_up').hide();
643 642 $('#a_down').show();
644   - $("#forms").attr("up_d", "2");
  643 + $("#forms").attr("expand_list_state", "2");
645 644 }
646 645 }
647 646  
... ...
src/main/resources/templates/page/channel.html
... ... @@ -400,18 +400,17 @@
400 400 </div>
401 401 <!-- /.modal -->
402 402 <script th:inline="javascript">
  403 + // 获取路径参数
403 404 function GetQueryString(name) {
404 405 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
405 406 var r = window.location.search.substr(1).match(reg);
406 407 if (r != null) return unescape(r[2]);
407 408 return null;
408 409 }
409   -
  410 + // 状态==2是展开状态 触发展开
410 411 $(function () {
411   - if (GetQueryString("up_d") == "2") {
  412 + if (GetQueryString("expand_list_state") == "2") {
412 413 $("#query").click();
413   - } else {
414   -
415 414 }
416 415 //按钮颜色设置
417 416 var state = [[${param.shenhe_status}]] ? [[${param.shenhe_status}]][0] : null;
... ... @@ -488,8 +487,8 @@
488 487 start_date = $("#start_date").val();
489 488 end_date = $("#end_date").val();
490 489 count = $("#pageSize").val();
491   - var up_d = $("#forms").attr("up_d");
492   - window.location.href = "/channel/page?channel_id=" + channel_id + "&start_date=" + start_date + "&end_date=" + end_date + "&channel_name=" + channel_name + "&pageSize=" + count + "&shenhe_status=" + shenhe_status + "&receive=" + receive + "&up_d=" + up_d;
  490 + var expand_list_state = $("#forms").attr("expand_list_state");
  491 + window.location.href = "/channel/page?channel_id=" + channel_id + "&start_date=" + start_date + "&end_date=" + end_date + "&channel_name=" + channel_name + "&pageSize=" + count + "&shenhe_status=" + shenhe_status + "&receive=" + receive + "&expand_list_state=" + expand_list_state;
493 492 }
494 493  
495 494 //全部
... ... @@ -560,12 +559,12 @@
560 559 $(id_name).slideUp(350);
561 560 $('#a_up').show();
562 561 $('#a_down').hide();
563   - $("#forms").attr("up_d", "1");
  562 + $("#forms").attr("expand_list_state", "1");
564 563 } else {
565 564 $(id_name).slideDown(350);
566 565 $('#a_up').hide();
567 566 $('#a_down').show();
568   - $("#forms").attr("up_d", "2");
  567 + $("#forms").attr("expand_list_state", "2");
569 568 }
570 569 }
571 570  
... ...
src/main/resources/templates/page/comment.html
... ... @@ -527,6 +527,7 @@
527 527 </div>
528 528 <!-- /.modal -->
529 529 <script th:inline="javascript">
  530 + // 获取路径参数
530 531 function GetQueryString(name) {
531 532 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
532 533 var r = window.location.search.substr(1).match(reg);
... ... @@ -534,12 +535,10 @@
534 535 return null;
535 536 }
536 537  
537   -
  538 + // 状态==2是展开状态 触发展开
538 539 $(function () {
539   - if (GetQueryString("up_d") == "2") {
  540 + if (GetQueryString("expand_list_state") == "2") {
540 541 $("#query").click();
541   - } else {
542   -
543 542 }
544 543 //按钮颜色设置
545 544 var state = [[${param.state}]] ? [[${param.state}]][0] : null;
... ... @@ -622,8 +621,8 @@
622 621 count = $("#pageSize").val();
623 622 type = $("#topic").val();
624 623 comment_user_id = $("#comment_user_id").val();
625   - var up_d = $("#forms").attr("up_d");
626   - window.location.href = "/comments/page?activity_id=" + activity_id + "&start_date=" + start_date + "&end_date=" + end_date + "&content=" + content + "&pageSize=" + count + "&state=" + state + "&receive=" + receive + "&type=" + type + "&comment_user_id=" + comment_user_id + "&up_d=" + up_d;
  624 + var expand_list_state = $("#forms").attr("expand_list_state");
  625 + window.location.href = "/comments/page?activity_id=" + activity_id + "&start_date=" + start_date + "&end_date=" + end_date + "&content=" + content + "&pageSize=" + count + "&state=" + state + "&receive=" + receive + "&type=" + type + "&comment_user_id=" + comment_user_id + "&expand_list_state=" + expand_list_state;
627 626 }
628 627  
629 628 //全部
... ... @@ -736,12 +735,12 @@
736 735 $(id_name).slideUp(350);
737 736 $('#a_up').show();
738 737 $('#a_down').hide();
739   - $("#forms").attr("up_d", "1");
  738 + $("#forms").attr("expand_list_state", "1");
740 739 } else {
741 740 $(id_name).slideDown(350);
742 741 $('#a_up').hide();
743 742 $('#a_down').show();
744   - $("#forms").attr("up_d", "2");
  743 + $("#forms").attr("expand_list_state", "2");
745 744 }
746 745 }
747 746  
... ...
src/main/resources/templates/page/content.html
... ... @@ -377,7 +377,7 @@
377 377 </section>
378 378 </div>
379 379 <script th:inline="javascript">
380   -
  380 + // 获取路径参数
381 381 function GetQueryString(name) {
382 382 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
383 383 var r = window.location.search.substr(1).match(reg);
... ... @@ -385,12 +385,10 @@
385 385 return null;
386 386 }
387 387  
388   -
  388 + // 状态==2是展开状态 触发展开
389 389 $(function () {
390   - if (GetQueryString("up_d") == "2") {
  390 + if (GetQueryString("expand_list_state") == "2") {
391 391 $("#query").click();
392   - } else {
393   -
394 392 }
395 393 //按钮颜色设置
396 394 var receive_status = [[${param.receive_status}]] ? [[${param.receive_status}]][0] : null;
... ... @@ -490,8 +488,8 @@
490 488 //全部
491 489 function quanbu() {
492 490 updateValue();
493   - var up_d = $("#forms").attr("up_d");
494   - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&up_d=" + up_d;
  491 + var expand_list_state = $("#forms").attr("expand_list_state");
  492 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
495 493 }
496 494  
497 495 //全部待领
... ... @@ -682,12 +680,12 @@
682 680 $(id_name).slideUp(350);
683 681 $('#a_up').show();
684 682 $('#a_down').hide();
685   - $("#forms").attr("up_d", "1");
  683 + $("#forms").attr("expand_list_state", "1");
686 684 } else {
687 685 $(id_name).slideDown(350);
688 686 $('#a_up').hide();
689 687 $('#a_down').show();
690   - $("#forms").attr("up_d", "2");
  688 + $("#forms").attr("expand_list_state", "2");
691 689 }
692 690 }
693 691  
... ...
src/main/resources/templates/page/live.html
... ... @@ -458,7 +458,7 @@
458 458  
459 459  
460 460 <script th:inline="javascript">
461   -
  461 + // 获取路径参数
462 462 function GetQueryString(name) {
463 463 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
464 464 var r = window.location.search.substr(1).match(reg);
... ... @@ -489,8 +489,8 @@
489 489 sp_desc = $("#sp_desc").val();
490 490 contentId = $("#contentId").val();
491 491 }
492   - var up_d = $("#forms").attr("up_d");
493   - window.location.href = "/live/page?activity_status=" + activity_status + "&activity_id=" + activity_id + "&start_date=" + start_date + "&end_date=" + end_date + "&activity_name=" + activity_name + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&shenhe_state=" + shenhe_state + "&contentId=" + contentId + "&up_d=" + up_d;
  492 + var expand_list_state = $("#forms").attr("expand_list_state");
  493 + window.location.href = "/live/page?activity_status=" + activity_status + "&activity_id=" + activity_id + "&start_date=" + start_date + "&end_date=" + end_date + "&activity_name=" + activity_name + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&shenhe_state=" + shenhe_state + "&contentId=" + contentId + "&expand_list_state=" + expand_list_state;
494 494 }
495 495  
496 496 //全部
... ... @@ -709,21 +709,19 @@
709 709 $(id_name).slideUp(350);
710 710 $('#a_up').show();
711 711 $('#a_down').hide();
712   - $("#forms").attr("up_d", "1");
  712 + $("#forms").attr("expand_list_state", "1");
713 713 } else {
714 714 $(id_name).slideDown(350);
715 715 $('#a_up').hide();
716 716 $('#a_down').show();
717   - $("#forms").attr("up_d", "2");
  717 + $("#forms").attr("expand_list_state", "2");
718 718 }
719 719 }
720 720  
721   -
  721 + // 状态==2是展开状态 触发展开
722 722 $(function () {
723   - if (GetQueryString("up_d") == "2") {
  723 + if (GetQueryString("expand_list_state") == "2") {
724 724 $("#query").click();
725   - } else {
726   -
727 725 }
728 726 //按钮颜色设置
729 727 var shenhe_state = [[${param.shenhe_state}]] ? [[${param.shenhe_state}]][0] : null;
... ...
src/main/resources/templates/page/liveApply.html
... ... @@ -400,18 +400,17 @@
400 400 </section>
401 401 </div>
402 402 <script th:inline="javascript">
  403 + // 获取路径参数
403 404 function GetQueryString(name) {
404 405 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
405 406 var r = window.location.search.substr(1).match(reg);
406 407 if (r != null) return unescape(r[2]);
407 408 return null;
408 409 }
409   -
  410 + // 状态==2是展开状态 触发展开
410 411 $(function () {
411   - if (GetQueryString("up_d") == "2") {
  412 + if (GetQueryString("expand_list_state") == "2") {
412 413 $("#query").click();
413   - } else {
414   -
415 414 }
416 415 //按钮颜色设置
417 416 var state = [[${param.shenhe_state}]] ? [[${param.shenhe_state}]][0] : null;
... ... @@ -508,8 +507,8 @@
508 507 function quanbu() {
509 508 updateValue();
510 509 var receive = "";
511   - var up_d = $("#forms").attr("up_d");
512   - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&up_d=" + up_d;
  510 + var expand_list_state = $("#forms").attr("expand_list_state");
  511 + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&expand_list_state=" + expand_list_state;
513 512 }
514 513  
515 514 //全部待领
... ... @@ -726,12 +725,12 @@
726 725 $(id_name).slideUp(350);
727 726 $('#a_up').show();
728 727 $('#a_down').hide();
729   - $("#forms").attr("up_d", "1");
  728 + $("#forms").attr("expand_list_state", "1");
730 729 } else {
731 730 $(id_name).slideDown(350);
732 731 $('#a_up').hide();
733 732 $('#a_down').show();
734   - $("#forms").attr("up_d", "2");
  733 + $("#forms").attr("expand_list_state", "2");
735 734 }
736 735 }
737 736  
... ...
src/main/resources/templates/page/notspeak.html
... ... @@ -444,19 +444,17 @@
444 444 </div>
445 445 <!-- /.modal -->
446 446 <script th:inline="javascript">
447   -
  447 + // 获取路径参数
448 448 function GetQueryString(name) {
449 449 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
450 450 var r = window.location.search.substr(1).match(reg);
451 451 if (r != null) return unescape(r[2]);
452 452 return null;
453 453 }
454   -
  454 + // 状态==2是展开状态 触发展开
455 455 $(function () {
456   - if (GetQueryString("up_d") == "2") {
  456 + if (GetQueryString("expand_list_state") == "2") {
457 457 $("#query").click();
458   - } else {
459   -
460 458 }
461 459 //按钮颜色设置
462 460 var state = [[${param.state}]] ? [[${param.state}]][0] : null;
... ... @@ -484,8 +482,8 @@
484 482 user_id = $("#user_id").val();
485 483 user_name = $("#user_name").val();
486 484 count = $("#pageSize").val();
487   - var up_d = $("#forms").attr("up_d");
488   - window.location.href = "/notSpeak/page?user_id=" + user_id + "&user_name=" + user_name + "&state=" + state + "&pageSize=" + count + "&up_d=" + up_d;
  485 + var expand_list_state = $("#forms").attr("expand_list_state");
  486 + window.location.href = "/notSpeak/page?user_id=" + user_id + "&user_name=" + user_name + "&state=" + state + "&pageSize=" + count + "&expand_list_state=" + expand_list_state;
489 487 }
490 488  
491 489 //全部
... ... @@ -660,12 +658,12 @@
660 658 $(id_name).slideUp(350);
661 659 $('#a_up').show();
662 660 $('#a_down').hide();
663   - $("#forms").attr("up_d", "1");
  661 + $("#forms").attr("expand_list_state", "1");
664 662 } else {
665 663 $(id_name).slideDown(350);
666 664 $('#a_up').hide();
667 665 $('#a_down').show();
668   - $("#forms").attr("up_d", "2");
  666 + $("#forms").attr("expand_list_state", "2");
669 667 }
670 668 }
671 669 </script>
... ...
src/main/resources/templates/page/topic.html
... ... @@ -418,6 +418,7 @@
418 418 </div>
419 419 <!-- /.modal -->
420 420 <script th:inline="javascript">
  421 + // 获取路径参数
421 422 function GetQueryString(name) {
422 423 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
423 424 var r = window.location.search.substr(1).match(reg);
... ... @@ -426,10 +427,8 @@
426 427 }
427 428  
428 429 $(function () {
429   - if (GetQueryString("up_d") == "2") {
  430 + if (GetQueryString("expand_list_state") == "2") {
430 431 $("#query").click();
431   - } else {
432   -
433 432 }
434 433 //按钮颜色设置
435 434 var state = [[${param.shenhe_status}]] ? [[${param.shenhe_status}]][0] : null;
... ... @@ -508,8 +507,8 @@
508 507 end_date = $("#end_date").val();
509 508 count = $("#pageSize").val();
510 509 sp_desc = $("#sp_desc").val();
511   - var up_d = $("#forms").attr("up_d");
512   - window.location.href = "/topic/page?topic_id=" + topic_id + "&start_date=" + start_date + "&end_date=" + end_date + "&topic_name=" + topic_name + "&pageSize=" + count + "&shenhe_status=" + shenhe_status + "&receive=" + receive + "&sp_desc=" + sp_desc + "&up_d=" + up_d;
  510 + var expand_list_state = $("#forms").attr("expand_list_state");
  511 + window.location.href = "/topic/page?topic_id=" + topic_id + "&start_date=" + start_date + "&end_date=" + end_date + "&topic_name=" + topic_name + "&pageSize=" + count + "&shenhe_status=" + shenhe_status + "&receive=" + receive + "&sp_desc=" + sp_desc + "&expand_list_state=" + expand_list_state;
513 512 }
514 513  
515 514 //全部
... ... @@ -584,12 +583,12 @@
584 583 $(id_name).slideUp(350);
585 584 $('#a_up').show();
586 585 $('#a_down').hide();
587   - $("#forms").attr("up_d", "1");
  586 + $("#forms").attr("expand_list_state", "1");
588 587 } else {
589 588 $(id_name).slideDown(350);
590 589 $('#a_up').hide();
591 590 $('#a_down').show();
592   - $("#forms").attr("up_d", "2");
  591 + $("#forms").attr("expand_list_state", "2");
593 592 }
594 593 }
595 594  
... ...
src/main/resources/templates/page/video.html
... ... @@ -75,8 +75,7 @@
75 75 <span id="a_up">展开▼</span><span id="a_down" style="display: none;">收起▲</span>
76 76 </button>
77 77 </div>
78   - <div class="form-horizontal form-group-sm" id="forms" style="display: none;float: left;"
79   - up_d="1">
  78 + <div class="form-horizontal form-group-sm" id="forms" style="display: none;float: left;">
80 79 <div class="btn-group margin-bottom col-md-6"
81 80 style="padding: 0;width: 15%;float: left;">
82 81 <div class="col-md-5" style="padding: 0;width: 100%;">
... ... @@ -384,6 +383,7 @@
384 383 </section>
385 384 </div>
386 385 <script th:inline="javascript">
  386 + // 获取路径参数
387 387 function GetQueryString(name) {
388 388 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
389 389 var r = window.location.search.substr(1).match(reg);
... ... @@ -391,12 +391,10 @@
391 391 return null;
392 392 }
393 393  
  394 + // 状态==2是展开状态 触发展开
394 395 $(function () {
395   - //alert(GetQueryString("up_d"));
396   - if (GetQueryString("up_d") == "2") {
  396 + if (GetQueryString("expand_list_state") == "2") {
397 397 $("#query").click();
398   - } else {
399   -
400 398 }
401 399 //按钮颜色设置
402 400 var state = [[${param.state}]] ? [[${param.state}]][0] : null;
... ... @@ -504,8 +502,8 @@
504 502 //全部
505 503 function quanbu() {
506 504 updateValue();
507   - var up_d = $("#forms").attr("up_d");
508   - 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 + "&source=" + source + "&video_user_id=" + video_user_id + "&shen_auditor_id=" + shen_auditor_id + "&contentId=" + contentId + "&video_id=" + video_id + "&up_d=" + up_d;
  505 + var expand_list_state = $("#forms").attr("expand_list_state");
  506 + 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 + "&source=" + source + "&video_user_id=" + video_user_id + "&shen_auditor_id=" + shen_auditor_id + "&contentId=" + contentId + "&video_id=" + video_id + "&expand_list_state=" + expand_list_state;
509 507  
510 508 }
511 509  
... ... @@ -693,12 +691,12 @@
693 691 $(id_name).slideUp(350);
694 692 $('#a_up').show();
695 693 $('#a_down').hide();
696   - $("#forms").attr("up_d", "1");
  694 + $("#forms").attr("expand_list_state", "1");
697 695 } else {
698 696 $(id_name).slideDown(350);
699 697 $('#a_up').hide();
700 698 $('#a_down').show();
701   - $("#forms").attr("up_d", "2");
  699 + $("#forms").attr("expand_list_state", "2");
702 700 }
703 701 }
704 702  
... ...