Browse Source

修改reportlist到中文

insomniaLee 4 years ago
parent
commit
023d0ec3f3

+ 28 - 0
src/main/resources/templates/all_review_report.html

@@ -287,6 +287,34 @@
         // $('#crowdSidebar-reportReview').addClass('menu-open');
         // $('#crowdSidebar-reportReviewMenu').css("display","block");
         $("#crowdSidebar-reportReview-allReport").addClass('active');
+        $('#report-list').DataTable({
+            language: {
+                "sProcessing": "处理中...",
+                "sLengthMenu": "显示 _MENU_ 项数据",
+                "sZeroRecords": "没有匹配结果",
+                "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
+                "sInfoEmpty": "显示第 0 至 0 项结果,共 0 项",
+                "sInfoFiltered": "(由 _MAX_ 项结果过滤)",
+                "sInfoPostFix": "",
+                "sSearch": "搜索:",
+                "sUrl": "",
+                "sEmptyTable": "表中数据为空",
+                "sLoadingRecords": "载入中...",
+                "sInfoThousands": ",",
+                "oPaginate": {
+                    "sFirst": "首页",
+                    "sPrevious": "上页",
+                    "sNext": "下页",
+                    "sLast": "末页"
+                },
+                "oAria": {
+                    "sSortAscending": ": 以升序排列此列",
+                    "sSortDescending": ": 以降序排列此列"
+                }
+            },
+            searching: true,
+            pageLength: 25
+        });
     });
 
 

+ 29 - 0
src/main/resources/templates/final_report_list.html

@@ -151,6 +151,35 @@
     $(document).ready(function(){
         $('#crowdSidebar').addClass('active');
         $('#crowdSidebar-finalReport').addClass('active');
+
+        $('#report-list').DataTable({
+            language: {
+                "sProcessing": "处理中...",
+                "sLengthMenu": "显示 _MENU_ 项数据",
+                "sZeroRecords": "没有匹配结果",
+                "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
+                "sInfoEmpty": "显示第 0 至 0 项结果,共 0 项",
+                "sInfoFiltered": "(由 _MAX_ 项结果过滤)",
+                "sInfoPostFix": "",
+                "sSearch": "搜索:",
+                "sUrl": "",
+                "sEmptyTable": "表中数据为空",
+                "sLoadingRecords": "载入中...",
+                "sInfoThousands": ",",
+                "oPaginate": {
+                    "sFirst": "首页",
+                    "sPrevious": "上页",
+                    "sNext": "下页",
+                    "sLast": "末页"
+                },
+                "oAria": {
+                    "sSortAscending": ": 以升序排列此列",
+                    "sSortDescending": ": 以降序排列此列"
+                }
+            },
+            searching: true,
+            pageLength: 25
+        });
     });
 
     function deleteReport(finalReportId) {

+ 28 - 1
src/main/resources/templates/task_detail.html

@@ -361,7 +361,34 @@
     $(document).ready(function(){
         $('#crowdSidebar').addClass('active');
         $('#crowdSidebar-taskDetail').addClass('active');
-
+        $('#report-list').DataTable({
+            language: {
+                "sProcessing": "处理中...",
+                "sLengthMenu": "显示 _MENU_ 项数据",
+                "sZeroRecords": "没有匹配结果",
+                "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
+                "sInfoEmpty": "显示第 0 至 0 项结果,共 0 项",
+                "sInfoFiltered": "(由 _MAX_ 项结果过滤)",
+                "sInfoPostFix": "",
+                "sSearch": "搜索:",
+                "sUrl": "",
+                "sEmptyTable": "表中数据为空",
+                "sLoadingRecords": "载入中...",
+                "sInfoThousands": ",",
+                "oPaginate": {
+                    "sFirst": "首页",
+                    "sPrevious": "上页",
+                    "sNext": "下页",
+                    "sLast": "末页"
+                },
+                "oAria": {
+                    "sSortAscending": ": 以升序排列此列",
+                    "sSortDescending": ": 以降序排列此列"
+                }
+            },
+            searching: true,
+            pageLength: 25
+        });
     });