Commit cb744932 authored by Steven杜宇's avatar Steven杜宇

// 赴港

parent b4a603d8
...@@ -501,7 +501,28 @@ extension YHCertificateAppointViewController { ...@@ -501,7 +501,28 @@ extension YHCertificateAppointViewController {
} }
} else { // 如果操作是选中 } else { // 如果操作是选中
// 肯定会有下一层因为之前取消过
let nextGroupIndex = groupLevel+1
if 0 <= nextGroupIndex, nextGroupIndex < items2.count {
for i in nextGroupIndex..<items2.count {
let item = items2[nextGroupIndex]
if var members = item.model?.arr {
// 下几批的组员中都要删除该人
members = members.filter { $0.id != currentMember.id }
item.model?.arr = members
}
}
}
// 检测下几层有无空数组,有则删除该批
if 0 <= nextGroupIndex, nextGroupIndex < items2.count {
for i in nextGroupIndex..<items2.count {
let item = items2[nextGroupIndex]
if var members = item.model?.arr, members.count == 0 {
}
}
}
} }
refreshData() refreshData()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment