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
10b58f29
Commit
10b58f29
authored
Nov 27, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的方案
parent
71e2e002
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
YHImproveSchemeTemplateListCell.swift
...MyNewScheme(我的方案)/V/YHImproveSchemeTemplateListCell.swift
+3
-14
YHImproveSchemeTemplateListView.swift
...MyNewScheme(我的方案)/V/YHImproveSchemeTemplateListView.swift
+17
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/MyNewScheme(我的方案)/V/YHImproveSchemeTemplateListCell.swift
View file @
10b58f29
...
...
@@ -13,7 +13,8 @@ class YHImproveSchemeTemplateListCell: UITableViewCell {
static
let
cellReuseIdentifier
=
"YHImproveSchemeTemplateListCell"
var
model
=
YHSchemeTemplatesModel
()
var
clickBlock
:
((
YHSchemeTemplatesModel
)
->
())?
lazy
var
previewFileTool
:
YHFilePreviewTool
=
{
let
tool
=
YHFilePreviewTool
(
targetVC
:
UIViewController
.
current
)
return
tool
...
...
@@ -45,19 +46,7 @@ class YHImproveSchemeTemplateListCell: UITableViewCell {
}()
@objc
func
didBtnClicked
()
{
if
!
model
.
url
.
isEmpty
{
let
viewModel
=
YHBaseViewModel
()
if
model
.
url
.
contains
(
"pub.galaxy-immi.com"
)
{
// 资源文件
viewModel
.
getRealUsefulUrl
(
model
.
url
)
{
success
in
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
success
,
fileName
:
"预览"
)
}
}
else
{
// web
let
vc
=
YHH5WebViewVC
()
vc
.
url
=
model
.
url
vc
.
isFullScreenFlag
=
false
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
clickBlock
?(
model
)
}
required
init
?(
coder
:
NSCoder
)
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/MyNewScheme(我的方案)/V/YHImproveSchemeTemplateListView.swift
View file @
10b58f29
...
...
@@ -155,6 +155,23 @@ extension YHImproveSchemeTemplateListView : UITableViewDelegate, UITableViewData
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHImproveSchemeTemplateListCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHImproveSchemeTemplateListCell
cell
.
titleLabel
.
text
=
"
\(
indexPath
.
row
+
1
)
、
\(
item
.
name
)
"
cell
.
model
=
item
cell
.
clickBlock
=
{
[
weak
self
]
model
in
if
!
model
.
url
.
isEmpty
{
let
viewModel
=
YHBaseViewModel
()
if
model
.
url
.
contains
(
"pub.galaxy-immi.com"
)
{
// 资源文件
viewModel
.
getRealUsefulUrl
(
model
.
url
)
{
success
in
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
success
,
fileName
:
"预览"
)
}
}
else
{
// web
let
vc
=
YHH5WebViewVC
()
vc
.
url
=
model
.
url
vc
.
isFullScreenFlag
=
false
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
self
.
dismiss
()
}
return
cell
}
...
...
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