Browse Source

修正分页异常

Administrator 7 years ago
parent
commit
8fffa81152
2 changed files with 3 additions and 4 deletions
  1. 0 2
      components/supplier/merchant.vue
  2. 3 2
      components/supplier/resource.vue

+ 0 - 2
components/supplier/merchant.vue

@@ -101,11 +101,9 @@
       },
       jumpResource (id, type) {
         if (!this.hasJump) {
-          console.log('12')
           if (type === 1) {
             this.$router.push('supplier/' + id)
           } else {
-            console.log('12333')
             this.hasDialog = true
           }
         }

+ 3 - 2
components/supplier/resource.vue

@@ -194,7 +194,7 @@
         hasClick: false,
         searchCode: '',
         pageParams: {
-          count: 10,
+          count: 20,
           page: 1
         }
       }
@@ -204,6 +204,7 @@
     },
     computed: {
       list () {
+        console.log(this.$store.state.supplier.material.material.data)
         return this.$store.state.supplier.material.material.data
       },
       enUser () {
@@ -230,7 +231,7 @@
       // 获取分页数据
       handleCurrentChange (type) {
         this.pageParams.page = type
-        this.$store.dispatch('supplier/loadMaterialList', {page: type, size: 20, vendUU: this.$route.params.uuid, keyword: this.searchCode})
+        this.$store.dispatch('supplier/loadMaterialList', {page: type, size: this.pageParams.count, vendUU: this.$route.params.uuid, keyword: this.searchCode})
       },
       // 根据搜索信息获取数据
       goodsSearch (type) {