diff --git a/warehousing-system/project_web/src/components/stockManagement/stockList.vue b/warehousing-system/project_web/src/components/stockManagement/stockList.vue index 17caf389..075cac3b 100644 --- a/warehousing-system/project_web/src/components/stockManagement/stockList.vue +++ b/warehousing-system/project_web/src/components/stockManagement/stockList.vue @@ -8,7 +8,7 @@ - @@ -114,22 +114,21 @@ export default { this.queryInfo.size = val this.getStockList() }, - + indexMethod(index) { + var pagestart = (this.queryInfo.current - 1) * this.queryInfo.size + var pageindex = index + 1 + pagestart + return pageindex + }, handleCurrentChange (val) { this.queryInfo.current = val this.getStockList() }, - // 序号 - indexMethod(index) { - var pagestart = (this.queryInfo.pageNum - 1) * this.queryInfo.pageSize - var pageindex = index + 1 + pagestart - return pageindex - }, async getStockList () { const { data: result } = await this.$http.post('/stock/listPage', this.queryInfo ) if (result.code !== "200") return this.$message.error('获取列表失败') this.total = result.data.total this.stockList = result.data.records + console.log( this.stockList); } },