From 5061c27b5fe99450a192843195b53cc04d95974a Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期二, 13 五月 2025 16:40:05 +0800
Subject: [PATCH] qx

---
 src/views/system/comp/index.vue |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/views/system/comp/index.vue b/src/views/system/comp/index.vue
index a2790d2..0bd0f14 100644
--- a/src/views/system/comp/index.vue
+++ b/src/views/system/comp/index.vue
@@ -98,6 +98,7 @@
       v-loading="loading"
       :data="compList"
       @selection-change="handleSelectionChange"
+      ref="tab"
     >
       <el-table-column
         fixed="left"
@@ -743,7 +744,7 @@
             <el-col :span="8">
               <span
                 >鎬у埆锛歿{
-                  forms.sex === "1" ? "鐢�" : forms.sex === "0" ? "濂�" : "鏈煡"
+                  forms.sex === "1" ? "濂�" : forms.sex === "0" ? "鐢�" : "鏈煡"
                 }}</span
               >
             </el-col>
@@ -1747,6 +1748,11 @@
       this.ids = selection.map((item) => item.drugManufacturerId);
       this.single = selection.length !== 1;
       this.multiple = !selection.length;
+        if (selection.length > 1) {
+        // 濡傛灉閫夋嫨浜嗗琛岋紝淇濈暀鏈�鍚庝竴琛�
+        this.$refs.tab.clearSelection();  // 娓呯┖鎵�鏈夐�夋嫨
+        this.$refs.tab.toggleRowSelection(selection[selection.length - 1]);  // 閲嶆柊閫夋嫨鏈�鍚庝竴椤�
+      }
     },
     // 閮ㄩ棬琛ㄦ牸鍗曡鑾峰彇
     handleSelection(selection) {
@@ -1987,6 +1993,8 @@
         this.dataList = selection;
         this.resetright();
       }
+
+      
     },
     resetright() {
       if (this.dataList.length == 0) {

--
Gitblit v1.8.0