From 121bee9ec862f74c86f57e0cc740ac0743316341 Mon Sep 17 00:00:00 2001 From: djz8236 Date: Tue, 27 Jun 2023 22:14:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E6=8E=A5=E5=8F=A3=E7=9A=84?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/stockManagement/stockList.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/warehousing-system/project_web/src/components/stockManagement/stockList.vue b/warehousing-system/project_web/src/components/stockManagement/stockList.vue index 7586d586..17caf389 100644 --- a/warehousing-system/project_web/src/components/stockManagement/stockList.vue +++ b/warehousing-system/project_web/src/components/stockManagement/stockList.vue @@ -3,7 +3,7 @@ - + @@ -83,9 +83,9 @@ @@ -101,9 +101,9 @@ export default { data () { return { queryInfo: { - query: '', - pageNum: 1, - pageSize: 5 + params: {}, + current: 1, + size: 10 }, total: 0, stockList: [] @@ -111,12 +111,12 @@ export default { }, methods: { handleSizeChange (val) { - this.queryInfo.pageSize = val + this.queryInfo.size = val this.getStockList() }, handleCurrentChange (val) { - this.queryInfo.pageNum = val + this.queryInfo.current = val this.getStockList() }, // 序号 @@ -126,7 +126,7 @@ export default { return pageindex }, async getStockList () { - const { data: result } = await this.$http.post('/stock/listPage', { params: this.queryInfo }) + 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