|
@@ -469,6 +469,7 @@
|
|
|
mainBlock(^{
|
|
|
weakSelf.midTableView.outSideDataArr = Arr;
|
|
|
[weakSelf.midTableView reloadDataFun];
|
|
|
+ [weakSelf handleDownloadingRightButFun];
|
|
|
});
|
|
|
}];
|
|
|
|
|
@@ -478,26 +479,46 @@
|
|
|
#pragma mark 处理上传中的 全部暂停等
|
|
|
- (void)handleUploadingRightButFun
|
|
|
{
|
|
|
-// if(_leftTableView.curDataArr.count ==0){
|
|
|
-// //不处理
|
|
|
-// }
|
|
|
-// else{
|
|
|
-// NSMutableArray *upLoadingArr = [uploadFileManager shareInstance].fileModelDataArr;
|
|
|
-// BOOL isUploadIngType = [uploadFileManager shareInstance].isUploadIngType;
|
|
|
-//
|
|
|
-// if(!upLoadingArr ||upLoadingArr.count == 0 || !isUploadIngType){//不是上传状态
|
|
|
-// _leftHeadView.rightButton.selected = YES;
|
|
|
-// }
|
|
|
-// else if(upLoadingArr.count == _leftTableView.curDataArr.count){
|
|
|
-// _leftHeadView.rightButton.selected = NO;
|
|
|
-// }
|
|
|
-// else{
|
|
|
-// _leftHeadView.rightButton.selected = YES;
|
|
|
-// }
|
|
|
-// }
|
|
|
+ if(_leftTableView.uploadingArr.count == 0){
|
|
|
+ //不处理
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ NSMutableArray *upLoadingArr = [uploadFileManager shareInstance].fileModelDataArr;
|
|
|
+ BOOL isUploadIngType = [uploadFileManager shareInstance].isUploadIngType;
|
|
|
+
|
|
|
+ if(!upLoadingArr ||upLoadingArr.count == 0 || !isUploadIngType){//不是上传状态
|
|
|
+ _leftTableView.uploadingHeadView.rightButton.selected = YES;
|
|
|
+ }
|
|
|
+ else if(upLoadingArr.count == _leftTableView.uploadingArr.count){
|
|
|
+ _leftTableView.uploadingHeadView.rightButton.selected = NO;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ _leftTableView.uploadingHeadView.rightButton.selected = YES;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+#pragma mark 处理下载中的 全部暂停等
|
|
|
+- (void)handleDownloadingRightButFun
|
|
|
+{
|
|
|
+ if(_midTableView.downloadingArr.count == 0){
|
|
|
+ //不处理
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ NSMutableArray *upLoadingArr = [downloadManager shareInstance].downLoadFileModelDataArr;
|
|
|
+ BOOL isDownloadIngType = [downloadManager shareInstance].isDownloadIngType;
|
|
|
|
|
|
+ if(!upLoadingArr ||upLoadingArr.count == 0 || !isDownloadIngType){//不是下载状态
|
|
|
+ _midTableView.downloadingHeadView.rightButton.selected = YES;
|
|
|
+ }
|
|
|
+ else if(upLoadingArr.count == _midTableView.downloadingArr.count){
|
|
|
+ _midTableView.downloadingHeadView.rightButton.selected = NO;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ _midTableView.downloadingHeadView.rightButton.selected = YES;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- (void)uploadFileRefreshFun:(NSNotification*)not
|
|
|
{
|