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
16611275
Commit
16611275
authored
Nov 21, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 方案
parent
0157eb68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
14 deletions
+32
-14
YHImproveSchemeViewController.swift
...)/MyNewScheme(我的方案)/C/YHImproveSchemeViewController.swift
+8
-1
YHMyNewSchemeViewController.swift
...优才)/MyNewScheme(我的方案)/C/YHMyNewSchemeViewController.swift
+24
-13
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/MyNewScheme(我的方案)/C/YHImproveSchemeViewController.swift
View file @
16611275
...
@@ -178,7 +178,14 @@ class YHImproveSchemeViewController: YHBaseViewController {
...
@@ -178,7 +178,14 @@ class YHImproveSchemeViewController: YHBaseViewController {
}
}
override
func
backItemClick
(
_
sender
:
Any
)
{
override
func
backItemClick
(
_
sender
:
Any
)
{
self
.
navigationController
?
.
popToRootViewController
(
animated
:
true
)
if
isPass
{
// 进入上级我的方案界面
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
else
{
// 进入服务tab页
self
.
navigationController
?
.
popToRootViewController
(
animated
:
true
)
goTabBarBy
(
tabType
:
.
service
)
}
}
}
func
requestData
()
{
func
requestData
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/MyNewScheme(我的方案)/C/YHMyNewSchemeViewController.swift
View file @
16611275
...
@@ -181,26 +181,37 @@ class YHMyNewSchemeViewController: YHBaseViewController {
...
@@ -181,26 +181,37 @@ class YHMyNewSchemeViewController: YHBaseViewController {
orderId
=
orderID
orderId
=
orderID
}
}
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
viewModel
.
getImproveDetail
(
orderId
:
orderId
)
{
viewModel
.
getMySchemeData
(
orderId
:
orderId
)
{
[
weak
self
]
success
,
error
in
[
weak
self
]
success
,
error
in
YHHUD
.
hide
()
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
self
.
viewModel
.
improveDetailModel
.
improvePlanItem
.
count
>
0
{
// 提交过方案
passArr
=
self
.
viewModel
.
schemeModel
.
comprehensive_evaluation
.
filter
{
let
vc1
=
YHMyNewSchemeViewController
()
$0
.
isPass
==
true
let
vc2
=
YHImproveSchemeViewController
()
}
vc2
.
isPass
=
false
vc2
.
orderId
=
orderId
if
passArr
.
count
>=
passMinCount
{
// 满足至少6项
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc1
,
animated
:
false
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc2
,
animated
:
false
)
}
else
{
// 未提交过方案
let
vc
=
YHMyNewSchemeViewController
()
let
vc
=
YHMyNewSchemeViewController
()
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
else
{
// 不满足条件
if
self
.
viewModel
.
schemeModel
.
comprehensive_evaluation_selected
.
count
>
0
{
// 进入提升方案界面
let
vc1
=
YHMyNewSchemeViewController
()
let
vc2
=
YHImproveSchemeViewController
()
vc2
.
isPass
=
false
vc2
.
orderId
=
orderId
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc1
,
animated
:
false
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc2
,
animated
:
false
)
}
else
{
let
vc
=
YHMyNewSchemeViewController
()
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
}
}
}
...
...
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