Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
xffruit
Commits
39619a0c
Commit
39619a0c
authored
9 years ago
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报表Url修改
parent
f7200e08
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
IBTConstants.h
XFFruit/Utilities/IBTUIKit/IBTConstants.h
+8
-0
ReportDetailViewController.m
...ntrollers/Report/Controllers/ReportDetailViewController.m
+11
-8
No files found.
XFFruit/Utilities/IBTUIKit/IBTConstants.h
View file @
39619a0c
...
@@ -255,5 +255,13 @@
...
@@ -255,5 +255,13 @@
#define ReportChainMinusImage @"downSale"
#define ReportChainMinusImage @"downSale"
//报表查看权
//报表查看权
#define Report_ACTION_Check @"500901"
#define Report_ACTION_Check @"500901"
//报表
#define SaleWebUrl @"cruiser-web/chart/salesdatachart.thor"
//毛利率
#define GrossWebUrl @"cruiser-web/chart/grossprofitdatachart.thor"
//客流量
#define PassengerWebUrl @"cruiser-web/chart/passengerdatachart.thor"
//客单价
#define PriceWebUrl @"cruiser-web/chart/persalesdatachart.thor"
#endif
#endif
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Report/Controllers/ReportDetailViewController.m
View file @
39619a0c
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
#import "FinishTimeView.h"
#import "FinishTimeView.h"
#import "QueryOrder.h"
#import "QueryOrder.h"
#define WebUrl @"cruiser-web/chart/salesdatachart.thor"
@interface
ReportDetailViewController
()
<
CustomSegViewDelegate
,
FinishTimeViewDelegate
,
UIWebViewDelegate
>
@interface
ReportDetailViewController
()
<
CustomSegViewDelegate
,
FinishTimeViewDelegate
,
UIWebViewDelegate
>
@property
(
nonatomic
,
strong
)
CustomSegView
*
segView
;
@property
(
nonatomic
,
strong
)
CustomSegView
*
segView
;
...
@@ -143,13 +142,17 @@
...
@@ -143,13 +142,17 @@
#pragma mark- 请求webView
#pragma mark- 请求webView
-
(
void
)
loadWebViewFromServer
{
-
(
void
)
loadWebViewFromServer
{
#warning 测试
#warning 测试
// NSString *url = http://218.244.151.129:7580/cruiser-web/chart/surveychart.thor?enterprise=1111&surveyUuid=2222
NSString
*
passgerUrl
=
[
NSString
stringWithFormat
:
@"%@/%@?enterprise=%@&dateScopeType=%@&dateScope=%@&orgUuid=%@"
,
HTTP_REST_API_BASE_URL
,
PassengerWebUrl
,[
ICRUserUtil
sharedInstance
].
orgId
,
self
.
dayType
,
self
.
scopeType
,
self
.
compass
.
orgUuid
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@/%@?enterprise=%@&dateScopeType=%@&dateScope=%@&orgUuid=%@"
,
HTTP_REST_API_BASE_URL
,
WebUrl
,[
ICRUserUtil
sharedInstance
].
orgId
,
self
.
dayType
,
self
.
scopeType
,
self
.
compass
.
orgUuid
];
[
self
.
rpassgerWebView
loadRequest
:[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
passgerUrl
]]];
CLog
(
@"==========%@"
,
url
);
[
self
.
rpassgerWebView
loadRequest
:[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
url
]]];
NSString
*
priceUrl
=
[
NSString
stringWithFormat
:
@"%@/%@?enterprise=%@&dateScopeType=%@&dateScope=%@&orgUuid=%@"
,
HTTP_REST_API_BASE_URL
,
PriceWebUrl
,[
ICRUserUtil
sharedInstance
].
orgId
,
self
.
dayType
,
self
.
scopeType
,
self
.
compass
.
orgUuid
];
[
self
.
rpriceWebView
loadRequest
:[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
url
]]];
[
self
.
rpriceWebView
loadRequest
:[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
priceUrl
]]];
[
self
.
rgrossWebView
loadRequest
:[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
url
]]];
[
self
.
rwebView
loadRequest
:[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
url
]]];
NSString
*
grossUrl
=
[
NSString
stringWithFormat
:
@"%@/%@?enterprise=%@&dateScopeType=%@&dateScope=%@&orgUuid=%@"
,
HTTP_REST_API_BASE_URL
,
GrossWebUrl
,[
ICRUserUtil
sharedInstance
].
orgId
,
self
.
dayType
,
self
.
scopeType
,
self
.
compass
.
orgUuid
];
[
self
.
rgrossWebView
loadRequest
:[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
grossUrl
]]];
NSString
*
saleUrl
=
[
NSString
stringWithFormat
:
@"%@/%@?enterprise=%@&dateScopeType=%@&dateScope=%@&orgUuid=%@"
,
HTTP_REST_API_BASE_URL
,
SaleWebUrl
,[
ICRUserUtil
sharedInstance
].
orgId
,
self
.
dayType
,
self
.
scopeType
,
self
.
compass
.
orgUuid
];
[
self
.
rwebView
loadRequest
:[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
saleUrl
]]];
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment