|
@@ -37,6 +37,8 @@
|
|
|
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(uploadFileRefreshFun:) name:uploadFileRefreshNotification object:nil];
|
|
|
|
|
|
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(uploadFileDeteleFun:) name:uploadFileDeteleNotification object:nil];
|
|
|
+
|
|
|
[self.view setBackgroundColor:[UIColor whiteColor]];
|
|
|
|
|
|
self.titleLabel.text = NSLocalizedString(@"my_set_no_File_upload_record",nil) ;
|
|
@@ -248,6 +250,35 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
+- (void)uploadFileDeteleFun:(NSNotification*)not
|
|
|
+{
|
|
|
+ uploadFileDataModel *uploadFileDataMod = [not object];
|
|
|
+ HLog(@"%@",uploadFileDataMod);
|
|
|
+
|
|
|
+ if(_allDataArr.count == 3 && [uploadFileDataMod isKindOfClass:[uploadFileDataModel class]] ){
|
|
|
+
|
|
|
+ NSMutableArray *curArr = _allDataArr[0];
|
|
|
+
|
|
|
+ NSInteger index = 0;
|
|
|
+ for (uploadFileDataModel*mod in curArr) {
|
|
|
+ HLog(@"bg_id:%@ ?=? %@",mod.bg_id,uploadFileDataMod.bg_id);
|
|
|
+
|
|
|
+ if(mod.bg_id.integerValue == uploadFileDataMod.bg_id.integerValue){
|
|
|
+ [curArr removeObject:mod];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ index++;
|
|
|
+ }
|
|
|
+
|
|
|
+ //精准刷新
|
|
|
+ [self.uploadFileRecordBodyV RefreshDataWithUploadingArr:_allDataArr[0] withDoneArr:nil withfailArr:nil];
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
#pragma mark 按钮点击
|
|
|
- (void)didClickButFun:(UIButton*)but
|
|
|
{
|
|
@@ -270,6 +301,7 @@
|
|
|
_rightButton.hidden = NO;
|
|
|
self.backBtn.hidden = YES;
|
|
|
_uploadFileRecordEditBottomV.hidden = NO;
|
|
|
+ _uploadFileRecordheadV.userInteractionEnabled = NO;
|
|
|
|
|
|
[_uploadFileRecordBodyV mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.left.mas_equalTo(0);
|
|
@@ -277,6 +309,22 @@
|
|
|
make.bottom.mas_equalTo(_uploadFileRecordEditBottomV.mas_top).offset(0.0);
|
|
|
make.top.mas_equalTo(_uploadFileRecordheadV.mas_bottom).offset(0.0);
|
|
|
}];
|
|
|
+
|
|
|
+ //dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.15 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+// UITableView *curTabview = [_uploadFileRecordBodyV.bgScrollV viewWithTag:(10+_uploadFileRecordBodyV.selectIndex -1)];
|
|
|
+//
|
|
|
+// CGRect frame = curTabview.frame;
|
|
|
+// frame.size.height = SCREEN_H - CGRectGetMaxY(_uploadFileRecordheadV.frame) - (60 + safeArea);
|
|
|
+//
|
|
|
+// CGSize curSize = _uploadFileRecordBodyV.bgScrollV.contentSize;
|
|
|
+// curSize.height = frame.size.height;
|
|
|
+// _uploadFileRecordBodyV.bgScrollV.contentSize = curSize;
|
|
|
+
|
|
|
+ //curTabview.frame = frame;
|
|
|
+
|
|
|
+
|
|
|
+ //});
|
|
|
+
|
|
|
}
|
|
|
else{
|
|
|
_leftButton.hidden = YES;
|
|
@@ -284,13 +332,22 @@
|
|
|
self.backBtn.hidden = NO;
|
|
|
|
|
|
_uploadFileRecordEditBottomV.hidden = YES;
|
|
|
+ _uploadFileRecordheadV.userInteractionEnabled = YES;
|
|
|
|
|
|
[_uploadFileRecordBodyV mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.left.mas_equalTo(0);
|
|
|
make.right.mas_equalTo(0);
|
|
|
- make.bottom.mas_equalTo(_uploadFileRecordEditBottomV.mas_top).offset(0.0);
|
|
|
make.top.mas_equalTo(_uploadFileRecordheadV.mas_bottom).offset(0.0);
|
|
|
+ make.bottom.mas_equalTo(0);
|
|
|
}];
|
|
|
+
|
|
|
+
|
|
|
+// UITableView *curTabview = [_uploadFileRecordBodyV.bgScrollV viewWithTag:(10+_uploadFileRecordBodyV.selectIndex -1)];
|
|
|
+//
|
|
|
+// CGRect frame = curTabview.frame;
|
|
|
+// frame.size.height = SCREEN_W - CGRectGetHeight(_uploadFileRecordBodyV.frame);
|
|
|
+// curTabview.frame = frame;
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
@end
|