From c81bf2132d6d3b7246075c6faa1382365d5f17e2 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期六, 26 八月 2023 15:28:41 +0800 Subject: [PATCH] modified: package.json modified: src/api/standardLibrary.js new file: src/components/experiment/checkTheReport/index.vue modified: src/layout/components/Navbar.vue modified: src/main.js modified: src/router/index.js modified: src/views/chart/work/index.vue modified: src/views/experiment/checkTheReport/index.vue modified: src/views/standardLibrary/index.vue --- src/views/basicData/index.vue | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/views/basicData/index.vue b/src/views/basicData/index.vue index 576920a..4ee318a 100644 --- a/src/views/basicData/index.vue +++ b/src/views/basicData/index.vue @@ -347,20 +347,17 @@ // 鑷畾涔� if (this.isAllSelect) { val.forEach((i) => { - let isExist = false; - this.deleteList.findIndex((c) => { - if (c === i.id) { - isExist = true; - } - }); - if (!isExist && i.id !== undefined) { + if (i.id !== undefined) { this.deleteList.push(i.id); + } else { + i.children.forEach((c) => { + this.deleteList.push(c.id); + }); } }); } else { this.deleteList.splice(0, this.deleteList.length); } - // 鑷畾涔夌粨鏉� }, //閫夋嫨鏌愯 selectTr(selection, row) { -- Gitblit v1.9.3