|
@@ -34,6 +34,8 @@
|
|
|
@property (nonatomic, strong) UIView *SortView;
|
|
|
@property (nonatomic, strong) UIButton *allSelectBtn;
|
|
|
@property (nonatomic, strong) UILabel *selectCountL;
|
|
|
+@property (nonatomic, assign) BOOL allSelected;
|
|
|
+
|
|
|
@end
|
|
|
|
|
|
@implementation AddLookUpUserSecondVC
|
|
@@ -60,13 +62,8 @@
|
|
|
}];
|
|
|
WS(weakSelf);
|
|
|
UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithActionBlock:^(id _Nonnull sender) {
|
|
|
- MailListSearchVC *vc = [[MailListSearchVC alloc] init];
|
|
|
- vc.notChangeColor = weakSelf.notSearchChangeColor;
|
|
|
- vc.IsAddUser = YES;
|
|
|
- vc.isShow = weakSelf.isShow;
|
|
|
- vc.UserIds = weakSelf.UserIds;
|
|
|
- vc.DepartmentId = weakSelf.indexId;
|
|
|
- vc.SearchType = weakSelf.isMyGroup;
|
|
|
+ MailGroupListSerachVC *vc = [[MailGroupListSerachVC alloc] init];
|
|
|
+ vc.IsSelect = YES;
|
|
|
[weakSelf.navigationController pushViewController:vc animated:YES];
|
|
|
}];
|
|
|
[self.listHeaderVIew addGestureRecognizer:tap];
|
|
@@ -115,7 +112,7 @@
|
|
|
|
|
|
//全选操作
|
|
|
- (void)selectedAction{
|
|
|
- if (self.isAllSelected) {
|
|
|
+ if (self.allSelected) {
|
|
|
[self.allSelectBtn setImage:IMG(@"sendinfo_yes") forState:UIControlStateNormal];
|
|
|
}else{
|
|
|
[self.allSelectBtn setImage:IMG(@"sendinfo_no") forState:UIControlStateNormal];
|
|
@@ -125,7 +122,7 @@
|
|
|
for(NSInteger i = 0 ; i < 2 ; i++){
|
|
|
if (i == 0) {
|
|
|
for (Department *depart in self.departSourceDataArray) {
|
|
|
- depart.hadSelected = self.isAllSelected;
|
|
|
+ depart.hadSelected = self.allSelected;
|
|
|
if (depart.hadSelected) {
|
|
|
count ++;
|
|
|
}
|
|
@@ -134,7 +131,7 @@
|
|
|
}
|
|
|
if (i == 1) {
|
|
|
for (SelectModel * model in self.usersSourceDataArray) {
|
|
|
- model.hadSelected = self.isAllSelected;
|
|
|
+ model.hadSelected = self.allSelected;
|
|
|
if (model.hadSelected) {
|
|
|
count ++;
|
|
|
}
|
|
@@ -149,7 +146,7 @@
|
|
|
for (id sub in array) {
|
|
|
if ([sub isKindOfClass:[MailModel class]]) {
|
|
|
MailModel * model = (MailModel *)sub;
|
|
|
- model.IsSelect = self.isAllSelected;
|
|
|
+ model.IsSelect = self.allSelected;
|
|
|
if (model.IsSelect) {
|
|
|
count ++;
|
|
|
}
|
|
@@ -157,7 +154,7 @@
|
|
|
}
|
|
|
if ([sub isKindOfClass:[SelectModel class]]) {
|
|
|
SelectModel * model = (SelectModel *)sub;
|
|
|
- model.hadSelected = self.isAllSelected;
|
|
|
+ model.hadSelected = self.allSelected;
|
|
|
if (model.hadSelected) {
|
|
|
count ++;
|
|
|
}
|
|
@@ -181,41 +178,22 @@
|
|
|
}
|
|
|
|
|
|
- (void)confirmAction:(UIButton*)btn{
|
|
|
- NSMutableDictionary * paraDict = [NSMutableDictionary dictionary];
|
|
|
- if (self.dataSourceArray.count > 0) {
|
|
|
- NSMutableArray * mArray = [NSMutableArray array];
|
|
|
- for (NSArray * array in self.dataSourceArray) {
|
|
|
- for (id sub in array) {
|
|
|
- if ([sub isKindOfClass:[MailModel class]]) {
|
|
|
- MailModel * model = (MailModel *)sub;
|
|
|
- if (model.IsSelect) {
|
|
|
- [mArray addObject:@{@"SourceType":@(model.TypeId),@"SourceId":@(model.Id),@"SourceTypeValue":@(model.TypeValue),@"SourceName":model.Name}];
|
|
|
- }
|
|
|
- }
|
|
|
- if ([sub isKindOfClass:[SelectModel class]]) {
|
|
|
- SelectModel * model = (SelectModel *)sub;
|
|
|
- if (model.hadSelected) {
|
|
|
- [mArray addObject:@{@"SourceType":@(model.TypeId),@"SourceId":@(model.Id),@"SourceTypeValue":@(model.TypeValue),@"SourceName":model.Name}];
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (mArray.count > 0) {
|
|
|
- [paraDict setValue:mArray forKey:@"Item"];
|
|
|
- }
|
|
|
- }
|
|
|
- if (self.departSourceDataArray.count > 0) {
|
|
|
- NSMutableArray * mArray = [NSMutableArray array];
|
|
|
- for (Department *model in self.departSourceDataArray) {
|
|
|
- if (model.hadSelected) {
|
|
|
- [mArray addObject:@{@"SourceType":@(model.TypeId),@"SourceId":@(model.Id),@"SourceTypeValue":@(0),@"SourceName":model.Name}];
|
|
|
- }
|
|
|
- }
|
|
|
- if (mArray.count > 0) {
|
|
|
- [paraDict setValue:mArray forKey:@"Item"];
|
|
|
- }
|
|
|
- }
|
|
|
- [self.selectArray removeAllObjects];
|
|
|
+ NSMutableArray * mailArray = [NSMutableArray arrayWithArray:USERDEFAULTSGET(MAILSELECT)];
|
|
|
+ NSMutableArray * chaoArray = [NSMutableArray array];
|
|
|
+ NSMutableDictionary * paraDict = [NSMutableDictionary dictionary];
|
|
|
+ NSMutableArray * mArray = [NSMutableArray array];
|
|
|
+ [self.selectArray removeAllObjects];
|
|
|
+ [mailArray enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
|
|
+ SelectModel * sModel = (SelectModel*) [NSKeyedUnarchiver unarchiveObjectWithData:(NSData *)obj];
|
|
|
+ [chaoArray addObject:sModel];
|
|
|
+ [mArray addObject:@{@"SourceType":@(sModel.SourceType),@"SourceId":@(sModel.SourceId),@"SourceTypeValue":@(sModel.TypeValue),@"SourceName":sModel.SourceName}];
|
|
|
+ }];
|
|
|
+ if (self.isAllSelected) {
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:NOTIFI_ChaoSongRen object:nil userInfo:@{@"selectPeople":chaoArray}];
|
|
|
+ [self back1];
|
|
|
+ return;
|
|
|
+ }else{
|
|
|
+ [paraDict setValue:mArray forKey:@"Item"];
|
|
|
SHOWLOADING
|
|
|
WS(weakSelf);
|
|
|
[[HttpManager sharedHttpManager] POSTUrl:Host(API_APP_User_Middle) parameters:paraDict responseStyle:JOSN success:^(id _Nonnull responseObject) {
|
|
@@ -234,124 +212,8 @@
|
|
|
} failure:^(NSError * _Nonnull error) {
|
|
|
SHOWERROR([ZYCTool handerResultData:error]);
|
|
|
}];
|
|
|
-
|
|
|
-// if (self.isAllSelected) {
|
|
|
-// //获取所有被选中的分组
|
|
|
-// NSMutableArray *groupIDArray = [NSMutableArray array];
|
|
|
-// for (Department *model in self.departSourceDataArray) {
|
|
|
-// if (model.hadSelected) {
|
|
|
-// [groupIDArray addObject:model];
|
|
|
-// }
|
|
|
-// }
|
|
|
-// for (SelectModel *mode in self.usersSourceDataArray) {
|
|
|
-// if (mode.hadSelected) {
|
|
|
-// mode.SourceType = 0;
|
|
|
-// mode.SourceId = mode.UserId;
|
|
|
-// mode.SourceName = mode.UserName;
|
|
|
-// [self.selectArray addObject:mode];
|
|
|
-// }
|
|
|
-// }
|
|
|
-// if (groupIDArray.count == 0) {
|
|
|
-// NSLog(@"选中%@",self.selectArray);
|
|
|
-// [[NSNotificationCenter defaultCenter] postNotificationName:NOTIFI_ChaoSongRen object:nil userInfo:@{@"selectPeople":self.selectArray}];
|
|
|
-// [self back1];
|
|
|
-// return;
|
|
|
-// } else {
|
|
|
-// NSMutableArray *selectedUsers = [[NSMutableArray alloc] init];
|
|
|
-// //把部门转换为成员
|
|
|
-// for (Department *model in groupIDArray) {
|
|
|
-// SelectModel *selectModel = [[SelectModel alloc] init];
|
|
|
-// selectModel.UserId = model.Id;
|
|
|
-// selectModel.UserName = model.Name ? model.Name : model.GroupName;
|
|
|
-// selectModel.SourceType = self.SourceType;
|
|
|
-// selectModel.SourceId = model.Id;
|
|
|
-// selectModel.SourceName = model.Name ? model.Name : model.GroupName;
|
|
|
-// [selectedUsers addObject:selectModel];
|
|
|
-// if ([model.Name isEqualToString:@"单位通讯录"]) {
|
|
|
-// selectModel.SourceType = 1;
|
|
|
-// }else if ([model.Name isEqualToString:@"自建通讯录"]) {
|
|
|
-// selectModel.SourceType = 3;
|
|
|
-// }
|
|
|
-// }
|
|
|
-// if (self.selectArray.count > 0) {
|
|
|
-// [selectedUsers addObjectsFromArray:self.selectArray];
|
|
|
-// }
|
|
|
-// [[NSNotificationCenter defaultCenter] postNotificationName:NOTIFI_ChaoSongRen object:nil userInfo:@{@"selectPeople":selectedUsers}];
|
|
|
-// [self back1];
|
|
|
-// return;
|
|
|
-// }
|
|
|
-// }
|
|
|
-// NSMutableArray *groupIDArray = [NSMutableArray array];
|
|
|
-// for (Department *model in self.departSourceDataArray) {
|
|
|
-// if (model.hadSelected) {
|
|
|
-// [groupIDArray addObject:@(model.Id)];
|
|
|
-// }
|
|
|
-// }
|
|
|
-// for (SelectModel *mode in self.usersSourceDataArray) {
|
|
|
-// if (mode.hadSelected) {
|
|
|
-// [self.selectArray addObject:mode];
|
|
|
-// }
|
|
|
-// }
|
|
|
-
|
|
|
-// if (self.selectArray.count > 0) {
|
|
|
-// NSLog(@"选中%@",self.selectArray);
|
|
|
-// [[NSNotificationCenter defaultCenter] postNotificationName:NOTIFI_ChaoSongRen object:nil userInfo:@{@"selectPeople":self.selectArray}];
|
|
|
-// [self back1];
|
|
|
-// return;
|
|
|
-// }else{
|
|
|
-// NSMutableDictionary *dic = @{@"ItemId":groupIDArray}.mutableCopy;
|
|
|
-// [dic setValue:@(self.isMyGroup) forKey:@"TypeId"];
|
|
|
-// if (self.isDefalutPage == 1) {
|
|
|
-// [dic setValue:@[@(0)] forKey:@"ItemId"];
|
|
|
-// if (self.indexflag == 0) {
|
|
|
-// if (self.departSourceDataArray.firstObject.hadSelected) {
|
|
|
-// [dic setValue:@(1) forKey:@"TypeId"];
|
|
|
-// }else{
|
|
|
-// [dic setValue:@(2) forKey:@"TypeId"];
|
|
|
-// }
|
|
|
-// }else if (self.indexflag == 1) {
|
|
|
-// if (self.departSourceDataArray.firstObject.hadSelected) {
|
|
|
-// [dic setValue:@(1) forKey:@"TypeId"];
|
|
|
-// }else{
|
|
|
-// [dic setValue:@(2) forKey:@"TypeId"];
|
|
|
-// }
|
|
|
-// }else if (self.indexflag == 2){
|
|
|
-// [dic setValue:@(1) forKey:@"TypeId"];
|
|
|
-// }
|
|
|
-// }
|
|
|
-// NSLog(@"请求参数1%@",dic);
|
|
|
-// [[HttpManager sharedHttpManager] POSTUrl:[NSString stringWithFormat:@"%@%@",BaseUrl,AddChaoSongRen_Post] parameters:dic responseStyle:JOSN success:^(id _Nonnull responseObject) {
|
|
|
-// REMOVESHOW
|
|
|
-// for (NSDictionary *dict in responseObject) {
|
|
|
-// SelectModel * model = [SelectModel modelWithDictionary:dict];
|
|
|
-// model.UserId = model.Id;
|
|
|
-// model.UserName = model.Name;
|
|
|
-// model.SourceType = weakSelf.SourceType;
|
|
|
-// model.SourceId = model.UserId;
|
|
|
-// model.SourceName = model.UserName;
|
|
|
-// [weakSelf.selectArray addObject:model];
|
|
|
-// }
|
|
|
-// [[NSNotificationCenter defaultCenter] postNotificationName:NOTIFI_ChaoSongRen object:nil userInfo:@{@"selectPeople":weakSelf.selectArray}];
|
|
|
-// [weakSelf back1];
|
|
|
-// } failure:^(NSError * _Nonnull error) {
|
|
|
-// SHOWERROR([ZYCTool handerResultData:error]);
|
|
|
-// }];
|
|
|
-
|
|
|
-// }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
-//- (void)setRIghtButtonTitle:(NSInteger)indeflag{
|
|
|
-// [self.myNavigationBar.rightButton setTitle:[NSString stringWithFormat:@"确定(%ld)",(long)indeflag] forState:UIControlStateNormal];
|
|
|
-// if (self.isDefalutPage == 1){
|
|
|
-// if (indeflag == 2) {
|
|
|
-// [self.myNavigationBar.backButton2 setTitle:@"取消全选" forState:UIControlStateNormal];
|
|
|
-// }else{
|
|
|
-// [self.myNavigationBar.backButton2 setTitle:@"全选" forState:UIControlStateNormal];
|
|
|
-// }
|
|
|
-// }else{
|
|
|
-// [self.myNavigationBar.backButton2 setTitle:@"全选" forState:UIControlStateNormal];
|
|
|
-// }
|
|
|
-//}
|
|
|
#pragma mark - setter
|
|
|
- (TDTableView *)myTableView{
|
|
|
if (!_myTableView) {
|
|
@@ -533,47 +395,64 @@
|
|
|
if (self.IsSubVC) {
|
|
|
if (self.isDefalutPage == 1) {
|
|
|
if (indexPath.row == 0) { //
|
|
|
+ Department *model = self.departSourceDataArray[indexPath.row];
|
|
|
AddLookUpUserSecondVC *vc = [[AddLookUpUserSecondVC alloc] init];
|
|
|
- vc.indexId = self.departSourceDataArray[indexPath.row].Id;
|
|
|
- vc.isDefalutPage = 2;
|
|
|
- vc.isMyGroup = 1;
|
|
|
- vc.SourceType = 1;
|
|
|
- vc.IsSubVC = YES;
|
|
|
- vc.isShow = self.isShow;
|
|
|
- vc.UserIds = self.UserIds;
|
|
|
- vc.titleStr = self.titleStr;
|
|
|
- vc.grouperArray = self.grouperArray;
|
|
|
- vc.isAllSelected = self.isAllSelected;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ if (model.hadSelected) {
|
|
|
+ model.hadSelected = !model.hadSelected;
|
|
|
+ [self.myTableView reloadRow:indexPath.row inSection:indexPath.section withRowAnimation:UITableViewRowAnimationNone];
|
|
|
+ }else{
|
|
|
+ vc.indexId = model.Id;
|
|
|
+ vc.isDefalutPage = 2;
|
|
|
+ vc.isMyGroup = 1;
|
|
|
+ vc.SourceType = 1;
|
|
|
+ vc.IsSubVC = YES;
|
|
|
+ vc.isShow = self.isShow;
|
|
|
+ vc.UserIds = self.UserIds;
|
|
|
+ vc.titleStr = self.titleStr;
|
|
|
+ vc.grouperArray = self.grouperArray;
|
|
|
+ vc.isAllSelected = self.isAllSelected;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
}else{
|
|
|
+ Department *model = self.departSourceDataArray[indexPath.row];
|
|
|
AddLookUpUserSecondVC *vc = [[AddLookUpUserSecondVC alloc] init];
|
|
|
- vc.indexId = self.departSourceDataArray[indexPath.row].Id;
|
|
|
- vc.isDefalutPage = 2;
|
|
|
- vc.isMyGroup = 2;
|
|
|
- vc.titleStr = self.titleStr;
|
|
|
- vc.SourceType = 3;
|
|
|
- vc.IsSubVC = YES;
|
|
|
- vc.isShow = self.isShow;
|
|
|
- vc.UserIds = self.UserIds;
|
|
|
- vc.grouperArray = self.grouperArray;
|
|
|
- vc.isAllSelected = self.isAllSelected;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ if (model.hadSelected) {
|
|
|
+ model.hadSelected = !model.hadSelected;
|
|
|
+ [self.myTableView reloadRow:indexPath.row inSection:indexPath.section withRowAnimation:UITableViewRowAnimationNone];
|
|
|
+ }else{
|
|
|
+ vc.indexId = model.Id;
|
|
|
+ vc.isDefalutPage = 2;
|
|
|
+ vc.isMyGroup = 2;
|
|
|
+ vc.titleStr = self.titleStr;
|
|
|
+ vc.SourceType = 3;
|
|
|
+ vc.IsSubVC = YES;
|
|
|
+ vc.isShow = self.isShow;
|
|
|
+ vc.UserIds = self.UserIds;
|
|
|
+ vc.grouperArray = self.grouperArray;
|
|
|
+ vc.isAllSelected = self.isAllSelected;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
}
|
|
|
}else{
|
|
|
if (indexPath.section == 0) {
|
|
|
- AddLookUpUserSecondVC *vc = [[AddLookUpUserSecondVC alloc] init];
|
|
|
Department *model = self.departSourceDataArray[indexPath.row];
|
|
|
- vc.indexId = model.Id;
|
|
|
- vc.isDefalutPage = 2;
|
|
|
- vc.IsSubVC = YES;
|
|
|
- vc.isShow = self.isShow;
|
|
|
- vc.UserIds = self.UserIds;
|
|
|
- vc.titleStr = self.titleStr;
|
|
|
- vc.isMyGroup = self.isMyGroup;
|
|
|
- vc.SourceType = self.SourceType;
|
|
|
- vc.grouperArray = self.grouperArray;
|
|
|
- vc.isAllSelected = self.isAllSelected;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ if (model.hadSelected) {
|
|
|
+ model.hadSelected = !model.hadSelected;
|
|
|
+ [self.myTableView reloadRow:indexPath.row inSection:indexPath.section withRowAnimation:UITableViewRowAnimationNone];
|
|
|
+ }else{
|
|
|
+ AddLookUpUserSecondVC *vc = [[AddLookUpUserSecondVC alloc] init];
|
|
|
+ vc.indexId = model.Id;
|
|
|
+ vc.isDefalutPage = 2;
|
|
|
+ vc.IsSubVC = YES;
|
|
|
+ vc.isShow = self.isShow;
|
|
|
+ vc.UserIds = self.UserIds;
|
|
|
+ vc.titleStr = self.titleStr;
|
|
|
+ vc.isMyGroup = self.isMyGroup;
|
|
|
+ vc.SourceType = self.SourceType;
|
|
|
+ vc.grouperArray = self.grouperArray;
|
|
|
+ vc.isAllSelected = self.isAllSelected;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
}else{
|
|
|
SelectModel *model = self.usersSourceDataArray[indexPath.row];
|
|
|
model.hadSelected = !model.hadSelected;
|
|
@@ -602,40 +481,58 @@
|
|
|
ShowDesVC * vc = [ShowDesVC initShowDesVC];
|
|
|
vc.dataSourceArray = model.Items.mutableCopy;
|
|
|
vc.IsSelect = YES;
|
|
|
+ vc.IsSelectDes = self.isAllSelected;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
|
case MailListSysType:
|
|
|
{
|
|
|
- ShowSysVC * vc = [ShowSysVC initShowSysVC];
|
|
|
- vc.dataSourceArray = model.Items.mutableCopy;
|
|
|
- vc.IsSelect = YES;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ if (model.IsSelect) {
|
|
|
+ model.IsSelect = !model.IsSelect;
|
|
|
+ [self.myTableView reloadRow:indexPath.row inSection:indexPath.section withRowAnimation:UITableViewRowAnimationNone];
|
|
|
+ }else{
|
|
|
+ ShowSysVC * vc = [ShowSysVC initShowSysVC];
|
|
|
+ vc.dataSourceArray = model.Items.mutableCopy;
|
|
|
+ vc.IsSelect = YES;
|
|
|
+ vc.IsSelectDes = self.isAllSelected;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
}
|
|
|
break;
|
|
|
case MailListOtherType:
|
|
|
{
|
|
|
- ShowUserVC * vc = [ShowUserVC initShowUserVC];
|
|
|
- vc.IsSelect = YES;
|
|
|
- vc.dataSourceArray = self.OtherArray.mutableCopy;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ if (model.IsSelect) {
|
|
|
+ model.IsSelect = !model.IsSelect;
|
|
|
+ [self.myTableView reloadRow:indexPath.row inSection:indexPath.section withRowAnimation:UITableViewRowAnimationNone];
|
|
|
+ }else{
|
|
|
+ ShowUserVC * vc = [ShowUserVC initShowUserVC];
|
|
|
+ vc.IsSelect = YES;
|
|
|
+ vc.IsSelectDes = self.isAllSelected;
|
|
|
+ vc.dataSourceArray = self.OtherArray.mutableCopy;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
|
{
|
|
|
- AddLookUpUserSecondVC *vc = [[AddLookUpUserSecondVC alloc] init];
|
|
|
- vc.indexId = self.departSourceDataArray[indexPath.row].Id;
|
|
|
- vc.isDefalutPage = 2;
|
|
|
- vc.isMyGroup = 2;
|
|
|
- vc.titleStr = self.titleStr;
|
|
|
- vc.SourceType = 3;
|
|
|
- vc.IsSubVC = YES;
|
|
|
- vc.isShow = self.isShow;
|
|
|
- vc.UserIds = self.UserIds;
|
|
|
- vc.grouperArray = self.grouperArray;
|
|
|
- vc.isAllSelected = self.isAllSelected;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ if (model.IsSelect) {
|
|
|
+ model.IsSelect = !model.IsSelect;
|
|
|
+ [self.myTableView reloadRow:indexPath.row inSection:indexPath.section withRowAnimation:UITableViewRowAnimationNone];
|
|
|
+ }else{
|
|
|
+ AddLookUpUserSecondVC *vc = [[AddLookUpUserSecondVC alloc] init];
|
|
|
+ vc.indexId = self.departSourceDataArray[indexPath.row].Id;
|
|
|
+ vc.isDefalutPage = 2;
|
|
|
+ vc.isMyGroup = 2;
|
|
|
+ vc.titleStr = self.titleStr;
|
|
|
+ vc.SourceType = 3;
|
|
|
+ vc.IsSubVC = YES;
|
|
|
+ vc.isShow = self.isShow;
|
|
|
+ vc.UserIds = self.UserIds;
|
|
|
+ vc.grouperArray = self.grouperArray;
|
|
|
+ vc.isAllSelected = self.isAllSelected;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -774,9 +671,9 @@
|
|
|
MailModel * mModel = (MailModel *)model;
|
|
|
SelectModel * sModel = [[SelectModel alloc] init];
|
|
|
sModel.SourceType = mModel.TypeId;
|
|
|
- sModel.SourceId = 0;
|
|
|
+ sModel.SourceId = mModel.Id;
|
|
|
sModel.SourceName = mModel.Name;
|
|
|
- sModel.TypeValue = 0;
|
|
|
+ sModel.TypeValue = mModel.TypeValue;
|
|
|
sModel.hadSelected = mModel.IsSelect;
|
|
|
return sModel;
|
|
|
}
|
|
@@ -1047,7 +944,7 @@
|
|
|
|
|
|
WS(weakSelf);
|
|
|
[self.allSelectBtn setAction:^{
|
|
|
- weakSelf.isAllSelected = !weakSelf.isAllSelected;
|
|
|
+ weakSelf.allSelected = !weakSelf.allSelected;
|
|
|
[weakSelf selectedAction];
|
|
|
}];
|
|
|
}
|