Commit ea82248d authored by admin's avatar admin

屏蔽“在线抽查”

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