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
a8654d32
Commit
a8654d32
authored
Aug 01, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作经验预览
parent
68b95116
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
15 deletions
+24
-15
YHWorkExperienceViewController.swift
...rkExperience(工作经验)/C/YHWorkExperienceViewController.swift
+24
-15
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHWorkExperienceViewController.swift
View file @
a8654d32
...
@@ -27,6 +27,10 @@ class YHWorkExperienceViewController: YHBaseViewController {
...
@@ -27,6 +27,10 @@ class YHWorkExperienceViewController: YHBaseViewController {
let
view
=
YHFileRenameInputView
.
inputView
(
defalutText
:
"请输入名称"
)
let
view
=
YHFileRenameInputView
.
inputView
(
defalutText
:
"请输入名称"
)
return
view
return
view
}()
}()
lazy
var
previewFileTool
:
YHFilePreviewTool
=
{
let
tool
=
YHFilePreviewTool
(
targetVC
:
self
)
return
tool
}()
lazy
var
blackMaskView
:
UIView
=
{
lazy
var
blackMaskView
:
UIView
=
{
let
view
=
UIView
(
frame
:
UIScreen
.
main
.
bounds
)
let
view
=
UIView
(
frame
:
UIScreen
.
main
.
bounds
)
view
.
backgroundColor
=
UIColor
(
hex
:
0x0F1214
,
alpha
:
0.5
)
view
.
backgroundColor
=
UIColor
(
hex
:
0x0F1214
,
alpha
:
0.5
)
...
@@ -612,9 +616,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
...
@@ -612,9 +616,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
}
}
if
editType
==
.
preview
{
if
editType
==
.
preview
{
if
model
.
fileUrl
.
isEmpty
==
false
{
if
model
.
fileUrl
.
isEmpty
==
false
{
let
vc
=
YHImageViewController
()
self
.
viewModel
.
getPublicImageUrl
(
model
.
fileUrl
)
{
success
,
error
in
vc
.
imgString
=
model
.
fileUrl
if
let
success
=
success
{
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
success
,
fileName
:
model
.
fileName
)
}
}
}
}
}
}
...
@@ -624,9 +630,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
...
@@ -624,9 +630,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
}
.
show
()
}
.
show
()
}
else
{
}
else
{
if
model
.
fileUrl
.
isEmpty
==
false
{
if
model
.
fileUrl
.
isEmpty
==
false
{
let
vc
=
YHImageViewController
()
self
.
viewModel
.
getPublicImageUrl
(
model
.
fileUrl
)
{
success
,
error
in
vc
.
imgString
=
model
.
fileUrl
if
let
success
=
success
{
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
success
,
fileName
:
model
.
fileName
)
}
}
}
}
}
}
}
}
...
@@ -740,9 +748,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
...
@@ -740,9 +748,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
}
}
if
editType
==
.
preview
{
if
editType
==
.
preview
{
if
model
.
fileUrl
.
isEmpty
==
false
{
if
model
.
fileUrl
.
isEmpty
==
false
{
let
vc
=
YHImageViewController
()
self
.
viewModel
.
getPublicImageUrl
(
model
.
fileUrl
)
{
success
,
error
in
vc
.
imgString
=
model
.
fileUrl
if
let
success
=
success
{
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
success
,
fileName
:
model
.
fileName
)
}
}
}
}
}
}
if
editType
==
.
delete
{
if
editType
==
.
delete
{
...
@@ -750,15 +760,14 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
...
@@ -750,15 +760,14 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
}
}
}
.
show
()
}
.
show
()
}
else
{
}
else
{
// let vc = YHImageViewController()
// vc.imgString = model.fileUrl
// UIViewController.current?.navigationController?.pushViewController(vc)
if
model
.
fileUrl
.
isEmpty
==
false
{
if
model
.
fileUrl
.
isEmpty
==
false
{
let
vc
=
YHImageViewController
()
self
.
viewModel
.
getPublicImageUrl
(
model
.
fileUrl
)
{
success
,
error
in
vc
.
imgString
=
model
.
fileUrl
if
let
success
=
success
{
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
success
,
fileName
:
model
.
fileName
)
}
}
}
}
}
}
}
}
...
...
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