From 470a98a975f0c95853dcecbce75d88763e66c191 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期四, 05 十二月 2024 18:30:07 +0800
Subject: [PATCH] last

---
 src/views/sampling/sampling/index.vue |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue
index ade4abb..700a605 100644
--- a/src/views/sampling/sampling/index.vue
+++ b/src/views/sampling/sampling/index.vue
@@ -188,8 +188,9 @@
           </el-table-column>
         </el-table>
       </div>
-      <div style="width: 50%">
+      <div style="width: 50%" v-if="this.rightTabShow">
         <el-table
+         
           v-loading="loading"
           :data="tableList"
           @selection-change="handleChange"
@@ -453,6 +454,7 @@
       form: {},
       // 琛ㄥ崟鏍¢獙
       rules: {},
+      rightTabShow: false
     };
   },
   created() {
@@ -466,7 +468,7 @@
     this.$nextTick(() => {
       this.$refs.inputName.focus();
     });
-    this.selectAllRows();
+
   },
   computed: {
     disabled() {
@@ -594,7 +596,10 @@
             this.$nextTick(() => {
               this.$refs.tb.toggleRowSelection(this.samplingList[0], true);
               // this.fetchData(this.samplingList[0].tjNumber);
+              // ddddddddddddddd
+              this.rightTabShow = true
             });
+       
           }
           this.total = response.data.total;
           this.loading1 = false;
@@ -959,16 +964,10 @@
       // console.log(selection);
 
       this.selectList = selection;
-      console.log(this.selectList, 5555);
+      // console.log(this.selectList, 5555);
+      var array = selection;
 
-      this.ids = selection.map((item) => item.id);
-    },
-    selectAllRows() {
-      this.$nextTick(() => {
-        if (this.$refs.tab1) {
-          this.$refs.tab1.toggleAllSelection();
-        }
-      });
+      this.ids = array.map((item) => item.id);
     },
 
     // 绂侀��

--
Gitblit v1.8.0