From ea640ebc01dba1455d7e2dbece470c3b83a5be38 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期四, 05 十二月 2024 13:56:21 +0800 Subject: [PATCH] 20241205 --- src/views/sampling/sampling/index.vue | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue index 8fcccea..ade4abb 100644 --- a/src/views/sampling/sampling/index.vue +++ b/src/views/sampling/sampling/index.vue @@ -189,11 +189,6 @@ </el-table> </div> <div style="width: 50%"> - <!-- :default-sort="{ prop: 'specimenType', order: 'ascending' }" :default-sort="{ prop: 'specimenType', order: 'ascending' }" - @sort-change="handleSortChange" - :span-method="objectSpanMethod" - @selection-change="handleChange" ref="tab1" - :row-class-name="tableRowClassName"--> <el-table v-loading="loading" :data="tableList" @@ -471,6 +466,7 @@ this.$nextTick(() => { this.$refs.inputName.focus(); }); + this.selectAllRows(); }, computed: { disabled() { @@ -967,6 +963,13 @@ this.ids = selection.map((item) => item.id); }, + selectAllRows() { + this.$nextTick(() => { + if (this.$refs.tab1) { + this.$refs.tab1.toggleAllSelection(); + } + }); + }, // 绂侀�� // selectEnable(row, rowIndex) { -- Gitblit v1.8.0