Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
mobile-group
galaxy-iOS
Commits
5175d0ca
Commit
5175d0ca
authored
Oct 18, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
续签文书管理优化测试bug修复
parent
76659233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
YHResignDocumentDetailViewController.swift
...ment(续签文书管理)/C/YHResignDocumentDetailViewController.swift
+29
-12
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignDocumentManagement(续签文书管理)/C/YHResignDocumentDetailViewController.swift
View file @
5175d0ca
...
@@ -254,6 +254,18 @@ extension YHResignDocumentDetailViewController {
...
@@ -254,6 +254,18 @@ extension YHResignDocumentDetailViewController {
safariViewController
.
modalPresentationStyle
=
.
fullScreen
safariViewController
.
modalPresentationStyle
=
.
fullScreen
present
(
safariViewController
,
animated
:
true
,
completion
:
nil
)
present
(
safariViewController
,
animated
:
true
,
completion
:
nil
)
}
}
private
func
previewUploadedFiles
(
_
urlStr
:
String
,
title
:
String
)
{
guard
URL
(
string
:
urlStr
)
!=
nil
else
{
return
}
YHHUD
.
show
(
.
progress
(
message
:
""
))
viewModel
.
getRealUsefulUrl
(
urlStr
)
{
[
weak
self
]
resultUrl
in
guard
let
self
=
self
else
{
return
}
YHHUD
.
hide
()
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
resultUrl
,
fileName
:
title
)
}
}
}
}
extension
YHResignDocumentDetailViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
extension
YHResignDocumentDetailViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
...
@@ -327,17 +339,7 @@ extension YHResignDocumentDetailViewController: UITableViewDelegate, UITableView
...
@@ -327,17 +339,7 @@ extension YHResignDocumentDetailViewController: UITableViewDelegate, UITableView
self
.
updateUploadFilesSection
()
self
.
updateUploadFilesSection
()
}
}
}
else
if
editType
==
.
preview
{
// 预览
}
else
if
editType
==
.
preview
{
// 预览
guard
URL
(
string
:
urlStr
)
!=
nil
else
{
self
.
previewUploadedFiles
(
urlStr
,
title
:
title
)
return
}
YHHUD
.
show
(
.
progress
(
message
:
""
))
self
.
viewModel
.
getPublicImageUrl
(
urlStr
)
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
YHHUD
.
hide
()
if
let
success
=
success
{
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
success
,
fileName
:
""
)
}
}
}
}
}
.
show
()
}
.
show
()
}
}
...
@@ -390,6 +392,21 @@ extension YHResignDocumentDetailViewController: UITableViewDelegate, UITableView
...
@@ -390,6 +392,21 @@ extension YHResignDocumentDetailViewController: UITableViewDelegate, UITableView
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
return
UIView
()
}
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
tableView
.
deselectRow
(
at
:
indexPath
,
animated
:
true
)
guard
datas
.
count
>
indexPath
.
section
else
{
return
}
let
sectionArr
=
datas
[
indexPath
.
section
]
guard
sectionArr
.
count
>
indexPath
.
row
else
{
return
}
let
item
=
sectionArr
[
indexPath
.
row
]
if
case
let
.
uploadFile
(
title
,
urlStr
,
editTypes
)
=
item
{
previewUploadedFiles
(
urlStr
,
title
:
title
)
}
}
}
}
extension
YHResignDocumentDetailViewController
{
extension
YHResignDocumentDetailViewController
{
...
@@ -826,7 +843,7 @@ extension YHResignDocumentDetailViewController {
...
@@ -826,7 +843,7 @@ extension YHResignDocumentDetailViewController {
return
uploadModel
return
uploadModel
}
}
self
.
viewModel
.
uploadSignedDoc
(
self
.
docId
,
type
:
.
upload
,
docs
)
{
[
weak
self
]
success
,
error
in
self
.
viewModel
.
uploadSignedDoc
(
self
.
docId
,
type
:
.
submit
,
docs
)
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
success
{
if
success
{
YHHUD
.
flash
(
message
:
"提交成功"
)
YHHUD
.
flash
(
message
:
"提交成功"
)
...
...
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