Commit ea82248d authored by admin's avatar admin

屏蔽“在线抽查”

parent 6fc57053
......@@ -236,7 +236,7 @@
NSFileManager *fileManager = [NSFileManager defaultManager];
if ([fileManager fileExistsAtPath:url]) {
ShowPDFWebViewController *showVC = [[ShowPDFWebViewController alloc] init];
showVC.url = url;
showVC.fileName = atta.fileName;
......@@ -301,19 +301,21 @@
operation.outputStream = [NSOutputStream outputStreamToFileAtPath:fileName append:NO];
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
//已完成下载
[operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
[self closeRedView];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"提示" message:@"下载成功!" delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil];
alert.tag = 66690;
[alert show];
[MBProgressHUD hideHUDForView:self.view animated:YES];
[self.tableView reloadData];
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
[self closeRedView];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"警告" message:@"下载失败!" delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil];
[alert show];
[MBProgressHUD hideHUDForView:self.view animated:YES];
[self.tableView reloadData];
}];
......
......@@ -7,6 +7,7 @@
//
#import "ShowPDFWebViewController.h"
#import <MBProgressHUD.h>
@interface ShowPDFWebViewController ()
@property (nonatomic, strong) UIWebView *webView;
......@@ -21,6 +22,7 @@
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL fileURLWithPath:self.url]];
[self.webView loadRequest:request];
}
......
......@@ -109,7 +109,9 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
self.navigationItem.titleView = customLab;
self.titleArray = [NSMutableArray array];
self.sectionArray = [NSMutableArray arrayWithObjects:@"口碑报告",@"商场风采",@"优秀案例",@"巡店报告", @"问题知识",@"口碑巡检",@"在线抽查", @"查看抽查",nil];
// self.sectionArray = [NSMutableArray arrayWithObjects:@"口碑报告",@"商场风采",@"优秀案例",@"巡店报告", @"问题知识",@"口碑巡检",@"在线抽查", @"查看抽查",nil];
self.sectionArray = [NSMutableArray arrayWithObjects:@"口碑报告",@"商场风采",@"优秀案例",@"巡店报告", @"问题知识",@"口碑巡检",nil];
self.allRankListArray = [NSMutableArray array];
self.taskListDataArray = [NSMutableArray array];
self.allQuestionArray = [NSMutableArray array];
......@@ -165,15 +167,15 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
[_sectionArray removeObject:@"口碑巡检"];
}
if ([permissions containsObject:@"500701"]) {
[self.titleArray addObject:@"在线抽查"];
[self requestSpotCheckList];
}
if ([permissions containsObject:@"500702"]) {
[self.titleArray addObject:@"查看抽查"];
[self requestLookOnLineList];
}
// if ([permissions containsObject:@"500701"]) {
// [self.titleArray addObject:@"在线抽查"];
// [self requestSpotCheckList];
// }
//
// if ([permissions containsObject:@"500702"]) {
// [self.titleArray addObject:@"查看抽查"];
// [self requestLookOnLineList];
// }
[self setupTableView];
......
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