Commit 745c6b0c authored by 刘俊宏's avatar 刘俊宏

修改工作中心无权限的

parent d02e4496
...@@ -32,8 +32,19 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC ...@@ -32,8 +32,19 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
self.dataModel?.auth_res?.forEach({ (md) in self.dataModel?.auth_res?.forEach({ (md) in
if md.auth_pid == 0 { if md.auth_pid == 0 {
titleStrArr.append(md.auth_name!)
pAuthResModelArr.append(md) var chlicdAuthResModelArr:[WorkcenterIndexAuthResModel] = []
let pAuthModel = md//父model
self.dataModel?.auth_res?.forEach({ (model) in //子model
if pAuthModel.auth_id == model.auth_pid {
chlicdAuthResModelArr.append(md)
}
})
if chlicdAuthResModelArr.count > 0 {
titleStrArr.append(md.auth_name!)
pAuthResModelArr.append(md)
}
} }
}) })
......
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