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
67218898
Commit
67218898
authored
Sep 23, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
续签文书管理文书预览和编辑调整
parent
457ceb1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
6 deletions
+46
-6
YHResignDocumentDetailViewController.swift
...ment(续签文书管理)/C/YHResignDocumentDetailViewController.swift
+19
-6
YHResignDocumentViewModel.swift
...mentManagement(续签文书管理)/VM/YHResignDocumentViewModel.swift
+25
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+2
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignDocumentManagement(续签文书管理)/C/YHResignDocumentDetailViewController.swift
View file @
67218898
...
...
@@ -170,13 +170,26 @@ extension YHResignDocumentDetailViewController {
var
config
=
YHResignDocumentStatusCell
.
ButtonsConfig
()
var
actions
:
[(()
->
Void
)]
=
[]
editEvent
=
{
[
weak
self
]
in
guard
model
.
link
.
count
>
0
,
let
url
=
URL
(
string
:
model
.
link
)
else
{
guard
let
self
=
self
else
{
return
}
let
safariViewController
=
SFSafariViewController
(
url
:
url
)
safariViewController
.
dismissButtonStyle
=
.
close
safariViewController
.
modalPresentationStyle
=
.
fullScreen
self
?
.
present
(
safariViewController
,
animated
:
true
,
completion
:
nil
)
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getResginDocumentUrl
(
docId
:
model
.
docId
,
isEditable
:
true
)
{
[
weak
self
]
model
,
error
in
guard
let
self
=
self
else
{
return
}
YHHUD
.
hide
()
if
let
urlString
=
model
?
.
url
,
let
url
=
URL
(
string
:
urlString
)
{
let
safariViewController
=
SFSafariViewController
(
url
:
url
)
safariViewController
.
dismissButtonStyle
=
.
close
safariViewController
.
modalPresentationStyle
=
.
fullScreen
self
.
present
(
safariViewController
,
animated
:
true
,
completion
:
nil
)
}
else
if
let
error
=
error
{
let
errorMsg
=
error
.
errorMsg
YHHUD
.
show
(
.
error
(
message
:
errorMsg
))
YHHUD
.
hide
(
afterDelay
:
1
)
}
}
printLog
(
"###editEvent"
)
}
...
...
@@ -234,7 +247,7 @@ extension YHResignDocumentDetailViewController {
return
}
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
previewResginDocument
(
docId
:
model
.
docId
)
{
[
weak
self
]
model
,
error
in
self
.
viewModel
.
getResginDocumentUrl
(
docId
:
model
.
docId
,
isEditable
:
false
)
{
[
weak
self
]
model
,
error
in
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignDocumentManagement(续签文书管理)/VM/YHResignDocumentViewModel.swift
View file @
67218898
...
...
@@ -131,4 +131,29 @@ class YHResignDocumentViewModel: YHBaseViewModel {
}
}
func
getResginDocumentUrl
(
docId
:
Int
,
isEditable
:
Bool
,
callback
:
@escaping
(
_
documentModel
:
YHResignDocumentPreviewModel
?,
_
error
:
YHErrorModel
?)
->
())
{
let
params
:
[
String
:
Any
]
=
[
"id"
:
docId
,
"type"
:
isEditable
?
1
:
0
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
ResignDocument
.
getResginDocumentUrl
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
json
,
code
in
//1. json字符串 转 对象
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
resultModel
=
YHResignDocumentPreviewModel
.
deserialize
(
from
:
dic
)
else
{
let
err
=
YHErrorModel
(
errorCode
:
YHErrorCode
.
dictParseError
.
rawValue
,
errorMsg
:
YHErrorCode
.
dictParseError
.
description
())
callback
(
nil
,
err
)
return
}
callback
(
resultModel
,
nil
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callback
(
nil
,
err
)
}
}
failBlock
:
{
err
in
callback
(
nil
,
err
)
}
}
}
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
67218898
...
...
@@ -544,6 +544,8 @@ class YHAllApiName {
static
let
resginDocumentSignature
=
"super-app/renewal/signature"
// 预览签字文档
static
let
previewResginDocument
=
"super-app/renewal/views"
// 获取临时链接
static
let
getResginDocumentUrl
=
"super-app/renewal/doc/url"
}
// 在港记录
...
...
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