|
@@ -258,6 +258,39 @@
|
|
|
#pragma mark 底部删除点击
|
|
|
-(void)didClickBottomDeleteFun
|
|
|
{
|
|
|
+ NSString *delTipTip = nil;
|
|
|
+ if(_selectIndex == 1){
|
|
|
+ delTipTip = NSLocalizedString(@"File_upload_Record_clear_uploading_Tip_msg",nil);;
|
|
|
+ }
|
|
|
+ else if(_selectIndex == 2){
|
|
|
+ delTipTip = NSLocalizedString(@"File_upload_Record_clear_done_Tip_msg",nil);
|
|
|
+ }
|
|
|
+ else if(_selectIndex == 3){
|
|
|
+ delTipTip = NSLocalizedString(@"File_upload_Record_clear_fail_Tip_msg",nil);
|
|
|
+ }
|
|
|
+
|
|
|
+ /*弹窗提示二次确认*/
|
|
|
+ KWeakSelf
|
|
|
+ ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:NSLocalizedString(@"File_upload_Record_clear_Tip_title",nil)
|
|
|
+ msg:delTipTip
|
|
|
+ imageStr:nil
|
|
|
+ cancelTitle:NSLocalizedString(@"other_cancel",nil)
|
|
|
+ okTitle:NSLocalizedString(@"other_comment_ok",nil) isOkBtnHighlight:YES
|
|
|
+ didClickOk:^{
|
|
|
+ [weakSelf didClickBottomDeleteFunAfterAleartFun];
|
|
|
+ } didClickCancel:^{
|
|
|
+
|
|
|
+ }];
|
|
|
+ nextVC.modalPresentationStyle = UIModalPresentationCustom;
|
|
|
+
|
|
|
+ [self presentViewController:nextVC animated:YES completion:^{
|
|
|
+ nextVC.view.superview.backgroundColor = [UIColor clearColor];
|
|
|
+ }];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+-(void)didClickBottomDeleteFunAfterAleartFun
|
|
|
+{
|
|
|
if(_selectIndex == 1){
|
|
|
[_leftTableView deleteModelOneByOneFun];
|
|
|
}
|
|
@@ -326,7 +359,7 @@
|
|
|
{
|
|
|
|
|
|
KWeakSelf
|
|
|
- [[uploadFileManager shareInstance] getDataInDatabaseFun:NO complete:^(NSMutableArray * _Nonnull Arr) {
|
|
|
+ [[uploadFileManager shareInstance] getDataInDatabaseFun:_isNotUploadingType complete:^(NSMutableArray * _Nonnull Arr) {
|
|
|
//[weakSelf setRecordBodyDataFunBy:Arr];
|
|
|
|
|
|
if(!Arr ||Arr.count != 3){
|
|
@@ -577,21 +610,18 @@
|
|
|
{
|
|
|
_isEditType = isEditType;
|
|
|
|
|
|
+ _leftButton.hidden = !isEditType;
|
|
|
+ _rightButton.hidden = !isEditType;
|
|
|
+ self.backBtn.hidden = isEditType;
|
|
|
+
|
|
|
+ _uploadFileRecordEditBottomV.hidden = !isEditType;
|
|
|
+ _uploadFileRecordheadV.userInteractionEnabled = !isEditType;
|
|
|
+ _uploadFileRecordBgScorllV.scrollEnabled = !isEditType;
|
|
|
+
|
|
|
+ _leftHeadView.rightButton.userInteractionEnabled = !isEditType;
|
|
|
+
|
|
|
if(_isEditType){
|
|
|
- _leftButton.hidden = NO;
|
|
|
- _rightButton.hidden = NO;
|
|
|
- self.backBtn.hidden = YES;
|
|
|
- _uploadFileRecordEditBottomV.hidden = NO;
|
|
|
- _uploadFileRecordheadV.userInteractionEnabled = NO;
|
|
|
- _uploadFileRecordBgScorllV.scrollEnabled = NO;
|
|
|
-
|
|
|
-// [_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);
|
|
|
-// }];
|
|
|
-
|
|
|
+
|
|
|
CGFloat curHeight = SCREEN_H - CGRectGetMaxY(self.navBarBGView.frame) - 50 - 15 - (60 + safeArea);
|
|
|
[_uploadFileRecordBgScorllV mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.left.mas_equalTo(0);
|
|
@@ -624,22 +654,7 @@
|
|
|
|
|
|
}
|
|
|
else{
|
|
|
- _leftButton.hidden = YES;
|
|
|
- _rightButton.hidden = YES;
|
|
|
- self.backBtn.hidden = NO;
|
|
|
-
|
|
|
- _uploadFileRecordEditBottomV.hidden = YES;
|
|
|
- _uploadFileRecordheadV.userInteractionEnabled = YES;
|
|
|
- _uploadFileRecordBgScorllV.scrollEnabled = YES;
|
|
|
-
|
|
|
-// [_uploadFileRecordBodyV mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
-// make.left.mas_equalTo(0);
|
|
|
-// make.right.mas_equalTo(0);
|
|
|
-// make.top.mas_equalTo(_uploadFileRecordheadV.mas_bottom).offset(0.0);
|
|
|
-// make.bottom.mas_equalTo(0);
|
|
|
-// }];
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
CGFloat curHeight = SCREEN_H - CGRectGetMaxY(self.navBarBGView.frame) - 50 - 15;
|
|
|
[_uploadFileRecordBgScorllV mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.left.mas_equalTo(0);
|
|
@@ -691,7 +706,7 @@
|
|
|
/*弹窗提示二次确认*/
|
|
|
KWeakSelf
|
|
|
ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:NSLocalizedString(@"File_upload_Record_clear_Tip_title",nil)
|
|
|
- msg:NSLocalizedString(@"File_upload_Record_clear_Tip_msg",nil)
|
|
|
+ msg:NSLocalizedString(@"File_upload_Record_clear_done_Tip_msg",nil)
|
|
|
imageStr:nil
|
|
|
cancelTitle:NSLocalizedString(@"other_cancel",nil)
|
|
|
okTitle:NSLocalizedString(@"other_comment_ok",nil) isOkBtnHighlight:YES
|
|
@@ -726,7 +741,7 @@
|
|
|
/*弹窗提示二次确认*/
|
|
|
KWeakSelf
|
|
|
ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:NSLocalizedString(@"File_upload_Record_clear_Tip_title",nil)
|
|
|
- msg:NSLocalizedString(@"File_upload_Record_clear_Tip_msg",nil)
|
|
|
+ msg:NSLocalizedString(@"File_upload_Record_clear_fail_Tip_msg",nil)
|
|
|
imageStr:nil
|
|
|
cancelTitle:NSLocalizedString(@"other_cancel",nil)
|
|
|
okTitle:NSLocalizedString(@"other_comment_ok",nil) isOkBtnHighlight:YES
|