From 6665e9f2c8676b812bf7579e4201ba37b0fdb5fc Mon Sep 17 00:00:00 2001 From: XiaoRuby <3114200645@qq.com> Date: 星期二, 22 八月 2023 18:03:20 +0800 Subject: [PATCH] 8-22标准库修改完成 --- 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