From d33acff5eaafe9ab6dc78a01f0b00d43c73833a5 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 16 五月 2024 17:41:39 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before into master

---
 src/components/tool/value-table.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue
index 20b9a47..0387ae4 100644
--- a/src/components/tool/value-table.vue
+++ b/src/components/tool/value-table.vue
@@ -564,14 +564,17 @@
       },
       sizeChange(val) {
         this.page.size = val
-        this.selectList()
+        this.selectList('page')
       },
       currentChange(val) {
         this.page.current = val
-        this.selectList()
+        this.selectList('page')
       },
-      selectList() {
+      selectList(val) {
         this.loading = true
+        if(val===undefined){
+          this.page.current = 1;
+        }
         if (this.data.isPage != undefined && this.data.isPage != true) {
           this.page = {
             current: -1,
@@ -593,6 +596,7 @@
           this.total = res.data.body.total
           this.tableHead = res.data.head
           this.tableData = res.data.body.records
+          // console.log(JSON.stringify(this.tableHead)+"---------"+JSON.stringify(this.tableData))
           for (var a in this.data.selectField) {
             if (this.data.selectField[a].choose == true) {
               this.tableData.map(b => {

--
Gitblit v1.9.3