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
291eef32
Commit
291eef32
authored
Jan 31, 2019
by
Tiank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
882aa97e
Pipeline
#94
failed with stages
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
22 deletions
+18
-22
AppDelegate.m
total/AppDelegate/AppDelegate.m
+4
-1
InspectionAnswerViewController.m
...sults(VI巡检结果)/Controller/InspectionAnswerViewController.m
+3
-2
InspectionPhotoViewController.m
...esults(VI巡检结果)/Controller/InspectionPhotoViewController.m
+7
-13
InspectionAnswerTableViewCell.m
...ctionResults(VI巡检结果)/View/InspectionAnswerTableViewCell.m
+1
-2
Patrol_PatrolInspect.storyboard
...siness/PatrolOnline(VI巡检)/Patrol_PatrolInspect.storyboard
+2
-3
Info.plist
total/Info.plist
+1
-1
No files found.
total/AppDelegate/AppDelegate.m
View file @
291eef32
...
...
@@ -34,7 +34,10 @@
self
.
window
=
[[
UIWindow
alloc
]
initWithFrame
:[[
UIScreen
mainScreen
]
bounds
]];
self
.
window
.
backgroundColor
=
[
UIColor
whiteColor
];
//设置SDImageCache 缓存策略 减少内存使用,之前详情页会有大量图片导致打开占用大量内存 滑动崩溃
[[
SDImageCache
sharedImageCache
]
setShouldDecompressImages
:
NO
];
[[
SDWebImageDownloader
sharedDownloader
]
setShouldDecompressImages
:
NO
];
[[
SDImageCache
sharedImageCache
]
setShouldCacheImagesInMemory
:
NO
];
[
UploadManager
getAppOption
];
//版本更新
[
self
enterpriseUpdate
];
...
...
total/GTOApp/Business/PatroIInspectionResults(VI巡检结果)/Controller/InspectionAnswerViewController.m
View file @
291eef32
...
...
@@ -27,7 +27,7 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
NSLog
(
@"InspectionAnswerViewController 初始化"
);
}
#pragma mark - 父视图传入的section闭合控制数组
...
...
@@ -51,11 +51,12 @@
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
InspectionAnswerTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:[
InspectionAnswerTableViewCell
className
]
forIndexPath
:
indexPath
];
cell
.
answerModel
=
self
.
datasArray
[
indexPath
.
section
];
cell
.
indexPath
=
indexPath
;
return
cell
;
}
-
(
UIView
*
)
tableView
:
(
UITableView
*
)
tableView
viewForHeaderInSection
:
(
NSInteger
)
section
{
InspectionAnswerSectionView
*
headerView
=
[
tableView
dequeueReusableCellWithIdentifier
:[
InspectionAnswerSectionView
className
]];
...
...
total/GTOApp/Business/PatroIInspectionResults(VI巡检结果)/Controller/InspectionPhotoViewController.m
View file @
291eef32
...
...
@@ -19,7 +19,6 @@ static NSString * const reuseIdentifier = @"InspectionPhotoCollectionViewCell";
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
self
setUpCollectionView
];
}
...
...
@@ -46,7 +45,8 @@ static NSString * const reuseIdentifier = @"InspectionPhotoCollectionViewCell";
-
(
UICollectionViewCell
*
)
collectionView
:
(
UICollectionView
*
)
collectionView
cellForItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
InspectionPhotoCollectionViewCell
*
cell
=
[
collectionView
dequeueReusableCellWithReuseIdentifier
:
reuseIdentifier
forIndexPath
:
indexPath
];
[
cell
.
inspectionImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:[
self
.
attachmentArray
yx_objectAtIndex
:
indexPath
.
item
]
[
@"fileUrl"
]]
placeholderImage
:
KNODATAIMAGE
];
NSString
*
path
=
[
NSString
stringWithFormat
:
@"%@?x-oss-process=image/resize,l_100"
,[
self
.
attachmentArray
yx_objectAtIndex
:
indexPath
.
item
][
@"fileUrl"
]];
[
cell
.
inspectionImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:
path
]
placeholderImage
:
KNODATAIMAGE
];
return
cell
;
}
...
...
@@ -54,17 +54,11 @@ static NSString * const reuseIdentifier = @"InspectionPhotoCollectionViewCell";
{
PYPhotoBrowseView
*
photoBroseView
=
[[
PYPhotoBrowseView
alloc
]
init
];
photoBroseView
.
currentIndex
=
indexPath
.
item
;
NSMutableArray
*
imageArray
=
[
NSMutableArray
array
];
int
number
=
(
int
)[
collectionView
numberOfItemsInSection
:
indexPath
.
section
];
for
(
int
index
=
0
;
index
<
number
;
index
++
){
NSIndexPath
*
cellIndex
=
[
NSIndexPath
indexPathForItem
:
index
inSection
:
indexPath
.
section
];
InspectionPhotoCollectionViewCell
*
cell
=
(
InspectionPhotoCollectionViewCell
*
)[
collectionView
cellForItemAtIndexPath
:
cellIndex
];
[
imageArray
addObject
:
cell
.
inspectionImageView
];
};
// for (InspectionPhotoCollectionViewCell *cell in collectionView.visibleCells) {
// [imageArray addObject:cell.inspectionImageView];
// }
photoBroseView
.
sourceImgageViews
=
imageArray
;
NSMutableArray
*
imageURLArray
=
[
NSMutableArray
array
];
for
(
int
index
=
0
;
index
<
self
.
attachmentArray
.
count
;
index
++
){
[
imageURLArray
addObject
:[
self
.
attachmentArray
yx_objectAtIndex
:
index
][
@"fileUrl"
]];
}
photoBroseView
.
imagesURL
=
imageURLArray
;
[
photoBroseView
show
];
}
...
...
total/GTOApp/Business/PatroIInspectionResults(VI巡检结果)/View/InspectionAnswerTableViewCell.m
View file @
291eef32
...
...
@@ -49,8 +49,7 @@
}
#pragma mark - 图片管理
-
(
void
)
addPhotoManager
{
-
(
void
)
addPhotoManager
{
self
.
photoManager
=
[
InspectionPhotoViewController
viewControllerWithStoryBoardType
:
STORYBOARD_TYPE_PATROLINSPECTRESULT
];
self
.
photoManager
.
view
.
backgroundColor
=
[
UIColor
clearColor
];
[
self
.
contentView
addSubview
:
self
.
photoManager
.
view
];
...
...
total/GTOApp/Business/PatrolOnline(VI巡检)/Patrol_PatrolInspect.storyboard
View file @
291eef32
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"1
3771
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"1
4113
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina4_7"
orientation=
"portrait"
>
<adaptation
id=
"fullscreen"
/>
</device>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
3772
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
4088
"
/>
<capability
name=
"Aspect ratio constraints"
minToolsVersion=
"5.1"
/>
<capability
name=
"Constraints with non-1.0 multipliers"
minToolsVersion=
"5.1"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
...
@@ -854,7 +854,6 @@
<constraint
firstAttribute=
"height"
relation=
"greaterThanOrEqual"
constant=
"21.5"
id=
"0Nh-vV-b3M"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<color
key=
"textColor"
white=
"0.0"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"参考图片:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Z9s-Sg-EJe"
>
...
...
total/Info.plist
View file @
291eef32
...
...
@@ -19,7 +19,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.4.
3
<
/string
>
<
string
>
1.4.
5
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
...
...
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