| | |
| | | </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> |
| | |
| | | }, |
| | | tableRowClick(row) { |
| | | console.log(row) |
| | | this.productPagerOptions.currPage = 1 |
| | | this.supplierId = row.ID |
| | | this.getProductList() |
| | | }, |
| | |
| | | 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() |
| | | } |
| | | } |
| | | } |