From 6f2e4f80e8698ff90a70aabffcb6842d0760445f Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期四, 05 十二月 2024 17:35:14 +0800 Subject: [PATCH] 10 --- src/views/sampling/sampling/index.vue | 15 +++++---------- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue index ade4abb..c7bdd2e 100644 --- a/src/views/sampling/sampling/index.vue +++ b/src/views/sampling/sampling/index.vue @@ -466,7 +466,7 @@ this.$nextTick(() => { this.$refs.inputName.focus(); }); - this.selectAllRows(); + }, computed: { disabled() { @@ -595,6 +595,7 @@ this.$refs.tb.toggleRowSelection(this.samplingList[0], true); // this.fetchData(this.samplingList[0].tjNumber); }); + } this.total = response.data.total; this.loading1 = false; @@ -959,16 +960,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