From af094a9de73e456b33a4f058b2d9bf981852558a Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期三, 14 五月 2025 08:57:04 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb --- 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 f4ddb0f..ae43de9 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> @@ -1761,6 +1762,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) { @@ -2001,6 +2007,8 @@ this.dataList = selection; this.resetright(); } + + }, resetright() { if (this.dataList.length == 0) { -- Gitblit v1.8.0