yangfeng
2023-09-18 6b8cde57ce4e1548617af33ddbb94de6558eea18
src/views/supplierManage/supplier/index.vue
@@ -79,7 +79,12 @@
          </TableCommonView>
        </div>
        <div class="btn-pager">
          <PagerView class="page" :pager-options="productPagerOptions" v-on="pagerEvents" />
          <PagerView
            class="page"
            :pager-options="productPagerOptions"
            @size-change="productChangeHandler"
            @current-change="currentProductHandler"
          />
        </div>
      </template>
    </div>
@@ -335,6 +340,7 @@
    },
    tableRowClick(row) {
      console.log(row)
      this.productPagerOptions.currPage = 1
      this.supplierId = row.ID
      this.getProductList()
    },
@@ -343,6 +349,16 @@
      console.log(row)
      this.commonDetail.visible = true
      this.commonDetail.infomation = { ...row }
    },
    // 产品列表翻页
    productChangeHandler(val) {
      this.productPagerOptions.currPage = 1
      this.productPagerOptions.pageSize = val
      this.getProductList()
    },
    currentProductHandler(val) {
      this.productPagerOptions.currPage = val
      this.getProductList()
    }
  }
}