Browse Source

fix: 修改物料列表显示不全问题

yongCode 4 months ago
parent
commit
0dad56242b
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/views/DetailView.vue

+ 3 - 5
src/views/DetailView.vue

@@ -110,14 +110,12 @@
               </el-table>
               </el-table>
               <div class="w-full mt-2">
               <div class="w-full mt-2">
                 <el-pagination
                 <el-pagination
-                  class="float-right"
-                  v-if="total > 0"
                   background
                   background
                   hide-on-single-page
                   hide-on-single-page
                   :current-page="pageNum"
                   :current-page="pageNum"
-                  :page-size="20"
+                  :page-size="5"
                   :pager-count="5"
                   :pager-count="5"
-                  layout="prev, pager, next"
+                  layout="->,prev, pager, next"
                   :total="total"
                   :total="total"
                   @current-change="handleCurrentChange"
                   @current-change="handleCurrentChange"
                 />
                 />
@@ -196,7 +194,7 @@ const total = ref(0)
 
 
 const getWlList = (params) => {
 const getWlList = (params) => {
   getwlList({ basisId: queryId.value, ...params }).then((res) => {
   getwlList({ basisId: queryId.value, ...params }).then((res) => {
-    // console.log(res)
+     console.log(res)
     wlList.value = res.rows
     wlList.value = res.rows
     total.value = res.total
     total.value = res.total
   })
   })