From fe27b6242f9732b9443c76af683cfb6442f5bc55 Mon Sep 17 00:00:00 2001
From: 李 <344137771@qq.com>
Date: Wed, 29 Apr 2026 14:22:41 +0800
Subject: [PATCH] 更新为3.29
---
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