From c55ca6e6d52254f2acca7af443403fa215c42ded Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期三, 22 五月 2024 17:22:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/tool/value-table.vue |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue
index 5785a9d..0387ae4 100644
--- a/src/components/tool/value-table.vue
+++ b/src/components/tool/value-table.vue
@@ -95,6 +95,12 @@
     align-items: center;
     justify-content: center;
   }
+  .el-table__empty-text{
+    text-align: left;
+    width: 100%;
+    display: inline-block;
+    margin-left: 200px;
+  }
 </style>
 
 <template>
@@ -156,7 +162,7 @@
         :total="total">
       </el-pagination>
     </div>
-    <el-dialog title="缂栬緫" :visible.sync="upDia" :width="data.row==1?'500px':500+data.row * 200 + 'px'" append-to-body>
+    <el-dialog title="缂栬緫" :visible.sync="upDia" :width="data.row==1?'500px':540+data.row * 200 + 'px'" append-to-body>
       <div class="body" style="max-height: 550px;overflow-y: auto;padding: 5px 10px 5px 0;">
         <div v-if="data.row > 1">
           <div v-for="(a, ai) in upHead" :key="ai" style="line-height: 50px;">
@@ -225,7 +231,7 @@
         <el-button type="primary" @click="saveUpData" :loading="upLoad">纭� 瀹�</el-button>
       </span>
     </el-dialog>
-    <el-dialog title="鏂板" :visible.sync="addDia" :width="data.row==1?'500px':500+data.row * 200 + 'px'" append-to-body>
+    <el-dialog title="鏂板" :visible.sync="addDia" :width="data.row==1?'500px':540+data.row * 200 + 'px'" append-to-body>
       <div class="body" v-if="addDia" style="max-height: 550px;overflow-y: auto;padding: 5px 10px 5px 0;">
         <div v-if="data.row > 1">
           <div v-for="(a, ai) in upHead" :key="ai" style="line-height: 50px;">
@@ -558,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,
@@ -587,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