Browse Source

新增组件及页面

liuqiwen 4 years ago
parent
commit
ca547238a1
2 changed files with 41 additions and 31 deletions
  1. 1 1
      dgtis-ui/package.json
  2. 40 30
      dgtis-ui/src/views/system/userInfoList/index.vue

+ 1 - 1
dgtis-ui/package.json

@@ -60,12 +60,12 @@
     "quill": "1.3.7",
     "screenfull": "4.2.0",
     "sortablejs": "1.8.4",
+    "vant": "^2.12.9",
     "vue": "2.6.10",
     "vue-count-to": "1.0.13",
     "vue-cropper": "0.4.9",
     "vue-router": "3.0.2",
     "vue-splitpane": "1.0.4",
-    "vue_pageination": "^1.1.2",
     "vuedraggable": "2.20.0",
     "vuex": "3.1.0"
   },

+ 40 - 30
dgtis-ui/src/views/system/userInfoList/index.vue

@@ -93,7 +93,26 @@
 <!--                @next-click="currentChange"-->
 <!--              />-->
 <!--            </div>-->
-            <pageinationnew :total="total" :size="queryParams.pageSize" :page="queryParams.pageNum" :changge="currentChange" :isUrl="true"></pageinationnew>
+            <div style="overflow: hidden;margin-top: 20px;">
+              <div style="width: 330px;float: right;">
+                <van-pagination
+                  v-model="queryParams.pageNum"
+                  :total-items="total"
+                  :show-page-size="7"
+                  force-ellipses
+                  @change="currentChange"
+                >
+                  <template #prev-text>
+                    <i class="el-icon-arrow-left"></i>
+                  </template>
+                  <template #next-text>
+                    <i class="el-icon-arrow-right"></i>
+                  </template>
+                </van-pagination>
+              </div>
+            </div>
+
+
           </div>
         </div>
       </el-col>
@@ -105,14 +124,16 @@
   import { listCustomer,listExport } from "@/api/customerInformation/customerInformation.js";
   import Axios from 'axios'
   import { tansParams } from "@/utils/ruoyi";
-  import Vue from 'vue'
-  import pageinationnew from 'vue_pageination';
-  Vue.use(pageinationnew);
+  import Vue from 'vue';
+  import { Pagination } from 'vant';
+  import 'vant/lib/index.css'
+
+  Vue.use(Pagination);
 
   export default {
   name: "UserInfoList",
   components: {
-    pageinationnew
+    [Pagination.name]: Pagination,
   },
   data() {
     return {
@@ -276,33 +297,22 @@
   }
 </style>
 <style>
-  .pagination-container {
-    /*background: #fff;*/
-    padding: 32px 16px;
-  }
-  .pagination-container.hidden {
-    display: none;
-  }
-  .pageination div:first-child,.pageination div:last-child{
-    display: none;
-  }
-  .pageination div:nth-last-child(2){
-    border-right:1px solid #d1dbe5;
-  }
-  .pagination_page{
+  .van-pagination__item{
     min-width: 30px !important;
-    box-sizing: border-box;
-    border: 0 !important;
-    margin: 0 6px;
+    height: 28px !important;
+    border-radius: 2px;
+    font-weight: bold;
+    color: #606266;
+  }
+  .van-pagination__item--active{
+    color: #FFF;
+    background: #013C8A;
   }
-  .pagination_page_active{
-    background-color: #013C8A !important;
-    color: #FFFFFF !important;
-    border: 1px solid #013C8A !important;
-    border-radius: 3px;
+  [class*=van-hairline]::after{
+    border: none;
   }
-  .pageination_align{
-    text-align: right !important;
-    margin-top: 30px;
+  .van-pagination__item:active {
+    color: #FFF;
+    background-color: #013C8A;
   }
 </style>