Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
total
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
张杰
total
Commits
d1a07089
Commit
d1a07089
authored
7 years ago
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取上传附件配置项提前到app启动时
parent
41c5d0db
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
24 deletions
+22
-24
AppDelegate.m
total/AppDelegate/AppDelegate.m
+3
-0
PatrolExamAttachmentCell.m
...line(VI巡检)/Cells/QuestionCells/PatrolExamAttachmentCell.m
+0
-4
Patrol_PatrolInspect.storyboard
...siness/PatrolOnline(VI巡检)/Patrol_PatrolInspect.storyboard
+3
-3
PatrolExamViewController.m
...lOnline(VI巡检)/ViewConstrollers/PatrolExamViewController.m
+1
-1
PicViewModel.m
total/GTOApp/UserUtil/PictureCell/PicViewModel.m
+1
-1
UploadManager.h
total/GTOApp/UserUtil/UploadManager/UploadManager.h
+2
-0
UploadManager.m
total/GTOApp/UserUtil/UploadManager/UploadManager.m
+0
-1
Info.plist
total/Info.plist
+2
-2
GTOAppMacro.h
total/Macro/GTOAppMacro.h
+10
-12
No files found.
total/AppDelegate/AppDelegate.m
View file @
d1a07089
...
...
@@ -10,6 +10,8 @@
//#import "BMKMapManager.h"
#import "IQKeyboardManager.h"
#import "APService.h"
#import "UploadManager.h"
@interface
AppDelegate
()
{
BMKMapManager
*
_mapManager
;
...
...
@@ -33,6 +35,7 @@
self
.
window
=
[[
UIWindow
alloc
]
initWithFrame
:[[
UIScreen
mainScreen
]
bounds
]];
self
.
window
.
backgroundColor
=
[
UIColor
whiteColor
];
[
UploadManager
getAppOption
];
//版本更新
[
self
enterpriseUpdate
];
[
self
SetIQKeyboardManager
];
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/PatrolOnline(VI巡检)/Cells/QuestionCells/PatrolExamAttachmentCell.m
View file @
d1a07089
...
...
@@ -113,19 +113,15 @@
}
else
{
picVM
.
type
=
kPicCellTypeAdd
;
}
//根据单据状态判断是添加还是查看
attVC
.
viewModel
=
picVM
;
[
self
.
viewController
pushViewController
:
attVC
animated
:
YES
];
}
-
(
PatrolStandardViewController
*
)
standardVC
{
if
(
!
_standardVC
)
{
_standardVC
=
[
PatrolStandardViewController
viewControllerWithStoryBoardType
:
STORYBOARD_TYPE_PATROLINSPECT
];
_standardVC
.
question
=
self
.
cellModel
.
question
;
_standardVC
.
superVC
=
self
.
viewController
;
}
return
_standardVC
;
}
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/PatrolOnline(VI巡检)/Patrol_PatrolInspect.storyboard
View file @
d1a07089
...
...
@@ -1097,13 +1097,13 @@
<userDefinedRuntimeAttribute
type=
"string"
keyPath=
"text"
value=
"图片附件"
/>
</userDefinedRuntimeAttributes>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"注:图片最多不能超过
4
张"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XHL-mA-tKw"
>
<rect
key=
"frame"
x=
"97.5"
y=
"46.5"
width=
"1
78
"
height=
"18"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"注:图片最多不能超过
10
张"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XHL-mA-tKw"
>
<rect
key=
"frame"
x=
"97.5"
y=
"46.5"
width=
"1
84.5
"
height=
"18"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"15"
/>
<color
key=
"textColor"
red=
"0.63179747500000005"
green=
"0.63179747500000005"
blue=
"0.63179747500000005"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<nil
key=
"highlightedColor"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"string"
keyPath=
"text"
value=
"注:图片最多不超过
4
张"
/>
<userDefinedRuntimeAttribute
type=
"string"
keyPath=
"text"
value=
"注:图片最多不超过
10
张"
/>
</userDefinedRuntimeAttributes>
</label>
</subviews>
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/PatrolOnline(VI巡检)/ViewConstrollers/PatrolExamViewController.m
View file @
d1a07089
...
...
@@ -207,7 +207,7 @@
#pragma mark -通知刷新回调
-
(
void
)
actionNotiAnswerChanged
:
(
NSNotification
*
)
noti
{
[
self
.
tableView
reloadData
];
[
self
showAirPlanModeVc
];
//
[self showAirPlanModeVc];
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/UserUtil/PictureCell/PicViewModel.m
View file @
d1a07089
...
...
@@ -13,7 +13,7 @@
-
(
instancetype
)
init
{
self
=
[
super
init
];
if
(
self
)
{
self
.
maxPictureNumber
=
4
;
self
.
maxPictureNumber
=
10
;
self
.
columns
=
2
;
}
return
self
;
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/UserUtil/UploadManager/UploadManager.h
View file @
d1a07089
...
...
@@ -22,6 +22,7 @@ typedef NS_ENUM(NSInteger,UPLOAD_TYPE){
@interface
UploadResponse
:
NSObject
/**
上传类型
*/
...
...
@@ -40,6 +41,7 @@ typedef NS_ENUM(NSInteger,UPLOAD_TYPE){
+
(
UPLOAD_TYPE
)
getUploadType
;
+
(
void
)
getAppOption
;
/**
上传文件
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/UserUtil/UploadManager/UploadManager.m
View file @
d1a07089
...
...
@@ -19,7 +19,6 @@
@implementation
UploadManager
/**
获取App配置项
*/
...
...
This diff is collapsed.
Click to expand it.
total/Info.plist
View file @
d1a07089
...
...
@@ -19,11 +19,11 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.3.
2
<
/string
>
<
string
>
1.3.
6
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.3.
2
<
/string
>
<
string
>
1.3.
6
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
...
...
This diff is collapsed.
Click to expand it.
total/Macro/GTOAppMacro.h
View file @
d1a07089
...
...
@@ -204,8 +204,8 @@ typedef NS_ENUM(NSInteger,ATTACHMENT_LOCATION){
//#define HTTP_LOCAL_BASE_URL @"http://218.244.151.129:7580"
//正式环境
//
#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:7080/total-server/rest"
//
#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:7080"
#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:7080/total-server/rest"
#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:7080"
//测试环境
//#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8180/total-server/rest"
...
...
@@ -216,16 +216,14 @@ typedef NS_ENUM(NSInteger,ATTACHMENT_LOCATION){
//#define VIHTTP_LOCAL_BASE_URL @"http://139.196.39.77:8280"
//正式VI检查、VI抽查、VI检查结果模块使用
//#define VIHTTP_REST_API_BASE_URL @"http://139.196.39.77:7280/total-server/rest"
//#define VIHTTP_LOCAL_BASE_URL @"http://139.196.39.77:7280"
//开发环境
#define HTTP_LOCAL_BASE_URL @"http://192.168.1.176:8083"
#define HTTP_REST_API_BASE_URL @"http://192.168.1.176:8083/total-server/rest"
#define VIHTTP_REST_API_BASE_URL @"http://192.168.1.176:8083/total-server/rest"
#define VIHTTP_LOCAL_BASE_URL @"http://192.168.1.176:8083"
#define VIHTTP_REST_API_BASE_URL @"http://139.196.39.77:7280/total-server/rest"
#define VIHTTP_LOCAL_BASE_URL @"http://139.196.39.77:7280"
////开发环境
//#define HTTP_LOCAL_BASE_URL @"http://192.168.1.176:8083"
//#define HTTP_REST_API_BASE_URL @"http://192.168.1.176:8083/total-server/rest"
//#define VIHTTP_REST_API_BASE_URL @"http://192.168.1.176:8083/total-server/rest"
//#define VIHTTP_LOCAL_BASE_URL @"http://192.168.1.176:8083"
//外网映射开发环境
//#define HTTP_LOCAL_BASE_URL @"http://dev.gomoretech.com"
...
...
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