From 25bbee380e5d5266ee2c3edbf9093b320f6c6cb5 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 21 Apr 2026 11:09:10 +0800
Subject: [PATCH] 1
---
src/views/product/markettrading.vue | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/views/product/markettrading.vue b/src/views/product/markettrading.vue
index 9aa1ffe..444dfc4 100644
--- a/src/views/product/markettrading.vue
+++ b/src/views/product/markettrading.vue
@@ -154,7 +154,7 @@
</template>
<script>
import {
- SettingqueryAll,
+ queryAllPage,
stockupdata,
stockadd,
stockdelete
@@ -400,12 +400,13 @@
getinit() {
this.getqueryParam()
this.pagination.current = 1
+ this.pagination.pageSize = this.queryParam.pageSize
this.getlist()
},
getlist() {
this.loading = true
- SettingqueryAll(this.queryParam).then((res) => {
- this.datalist = res.data
+ queryAllPage(this.queryParam).then((res) => {
+ this.datalist = res.data.records
this.pagination.total = res.data.total
this.loading = false
})
@@ -413,12 +414,17 @@
onPageChange(page, pageSize) {
this.queryParam.pageNum = page
this.pagination.current = page
+ if (pageSize) {
+ this.queryParam.pageSize = pageSize
+ this.pagination.pageSize = pageSize
+ }
this.getlist()
},
onSizeChange(current, pageSize) {
this.queryParam.pageNum = current
- this.pagination.current = page
this.queryParam.pageSize = pageSize
+ this.pagination.current = current
+ this.pagination.pageSize = pageSize
this.getlist()
},
},
--
Gitblit v1.9.3