Browse Source

query page fix

chenjunkai 6 years ago
parent
commit
691bcff216
1 changed files with 23 additions and 10 deletions
  1. 23 10
      web/index.html

+ 23 - 10
web/index.html

@@ -43,10 +43,17 @@
 
     <input type="radio" class="tab-3" name="tab" onclick="location.href='userTab.html'">
     <span>Users</span><i class="fa fa-user"></i>
+
+    <span></span>
+    <span></span>
+    <span></span>
+    <span></span>
+    <span></span>
+    <span></span>
+    <span></span>
     <!--
 
-        <input type="radio" class="tab-4" name="tab">
-        <span>Comments</span><i class="fa fa-comment"></i>
+
 
         <input type="radio" class="tab-5" name="tab">
         <span>Upload</span><i class="fa fa-cloud-upload"></i>
@@ -109,10 +116,16 @@
                         </table>
                     </div>
                 </div>
-                <div id="pagination"></div>
+                <!--<div id="pagination" style="padding-top: 15px;margin-bottom: 15px"></div>-->
+                <div id="pagination" style="margin:15px 0 15px 0;"></div>
+
+                <div class="row">
+                </div>
             </div>
 
-            <hr>
+            <hr class="simple" color="#6f5499" />
+
+
 
             <!---->
             <div class="container-fluid">
@@ -175,7 +188,7 @@
         let post_data = {
             'token': $.cookie('access_token'),
             'page': 1,
-            'line': 5,
+            'line': 10,
         };
         InitIndex(post_data)
         // $('#pagination').pagination({
@@ -203,12 +216,12 @@
                     // console.log(data['res'])
                     console.log(data)
                     addTable(data['res'])
-                    let count_page = Math.ceil(data['res']['count'] / 5)
+                    let count_page = Math.ceil(data['res']['count'] / 10)
                     $('#pagination').pagination({
                         pages: count_page, //总页数
                         // pages: 10000, //总页数
                         edges: 2,
-                        cssStyle: 'pagination-sm', //按纽大小pagination-lg或写入自定义css
+                        cssStyle: 'pagination', //按纽大小pagination-lg或写入自定义css
                         displayedPages: 5, //显示几个
                         onPageClick: function (pageNumber, event) {
                             //点击时调用
@@ -234,7 +247,7 @@
         let post_data = {
             'token': $.cookie('access_token'),
             'page': page,
-            'line': 5
+            'line': 10
         };
         $.postJSON(
             http_ip_prot + 'langWord/query', JSON.stringify(post_data),
@@ -452,7 +465,7 @@
             post_data = {
                 'token': $.cookie('access_token'),
                 'page': 1,
-                'line': 5,
+                'line': 10,
                 'searchKey': searchKey,
                 'searchVal': searchVal
             };
@@ -460,7 +473,7 @@
             post_data = {
                 'token': $.cookie('access_token'),
                 'page': 1,
-                'line': 5,
+                'line': 10,
             };
         }
         InitIndex(post_data)