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
2f5b9ae2
Commit
2f5b9ae2
authored
Nov 20, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作经验步骤流程接口
parent
40479e41
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
104 additions
and
10 deletions
+104
-10
YHWorkExperienceViewController.swift
...rkExperience(工作经验)/C/YHWorkExperienceViewController.swift
+86
-9
YHWorkExperienceDetailModel.swift
...kExperience(工作经验)/Model/YHWorkExperienceDetailModel.swift
+10
-0
YHWorkExperiencePositionModel.swift
...xperience(工作经验)/Model/YHWorkExperiencePositionModel.swift
+1
-1
YHWorkExperienceViewModel.swift
...xperience(工作经验)/ViewModel/YHWorkExperienceViewModel.swift
+0
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+7
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHWorkExperienceViewController.swift
View file @
2f5b9ae2
...
@@ -112,12 +112,25 @@ class YHWorkExperienceViewController: YHBaseViewController {
...
@@ -112,12 +112,25 @@ class YHWorkExperienceViewController: YHBaseViewController {
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
updateDataSource
()
self
.
updateDataSource
()
}
}
viewModel
.
requestWorkStep
(
"
\(
orderID
)
"
,
workExperienceID
??
""
)
{
success
,
error
in
if
self
.
stepView
.
currentIndex
<
3
{
self
.
stepView
.
currentIndex
=
self
.
viewModel
.
stepModel
.
step
self
.
stepView
.
maxIndex
=
self
.
viewModel
.
mainModel
.
step
}
else
{
self
.
stepView
.
currentIndex
=
3
self
.
stepView
.
maxIndex
=
3
}
self
.
stepView
.
dataSource
=
[
"基本信息"
,
"工作职责"
,
"工作亮点"
,
"简历/工作总结"
]
}
viewModel
.
requestworkDutyDetail
(
workExperienceID
??
""
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
}
viewModel
.
requestWorkHighlightsDetail
(
workExperienceID
??
""
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
}
viewModel
.
requestWorkDetail
(
"
\(
orderID
)
"
,
workExperienceID
??
""
)
{[
weak
self
]
success
,
error
in
viewModel
.
requestWorkDetail
(
"
\(
orderID
)
"
,
workExperienceID
??
""
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
stepView
.
currentIndex
=
self
.
viewModel
.
mainModel
.
step
self
.
stepView
.
maxIndex
=
self
.
viewModel
.
mainModel
.
step
self
.
updateDataSource
()
self
.
updateDataSource
()
self
.
stepView
.
dataSource
=
[
"基本信息"
,
"工作职责"
,
"工作亮点"
,
"简历/工作总结"
]
self
.
viewModel
.
requestWorkInfoProject
(
"
\(
self
.
viewModel
.
mainModel
.
word_id
)
"
)
{[
weak
self
]
success
,
error
in
self
.
viewModel
.
requestWorkInfoProject
(
"
\(
self
.
viewModel
.
mainModel
.
word_id
)
"
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
introductionDataSource
=
success
self
.
introductionDataSource
=
success
...
@@ -125,7 +138,6 @@ class YHWorkExperienceViewController: YHBaseViewController {
...
@@ -125,7 +138,6 @@ class YHWorkExperienceViewController: YHBaseViewController {
self
.
updateDataSource
()
self
.
updateDataSource
()
}
}
}
}
updateDataSource
()
updateDataSource
()
}
}
...
@@ -227,7 +239,40 @@ class YHWorkExperienceViewController: YHBaseViewController {
...
@@ -227,7 +239,40 @@ class YHWorkExperienceViewController: YHBaseViewController {
bottom
.
nextButton
.
isEnabled
=
false
bottom
.
nextButton
.
isEnabled
=
false
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
self
.
viewModel
.
isCanNext
(
self
.
stepView
.
currentIndex
)
{
if
self
.
viewModel
.
isCanNext
(
self
.
stepView
.
currentIndex
)
{
self
.
viewModel
.
mainModel
.
step
=
self
.
stepView
.
currentIndex
if
self
.
stepView
.
currentIndex
==
0
{
self
.
viewModel
.
saveWorkData
(
orderID
,
workId
:
workExperienceID
?
.
intValue
()
??
0
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
bottom
.
nextButton
.
isEnabled
=
true
if
let
error
=
error
{
YHHUD
.
flash
(
message
:
error
.
errorMsg
)
}
else
{
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
+
1
self
.
updateDataSource
()
}
}
}
else
if
self
.
stepView
.
currentIndex
==
1
{
self
.
viewModel
.
saveWorkDuty
(
workId
:
workExperienceID
?
.
intValue
()
??
0
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
bottom
.
nextButton
.
isEnabled
=
true
if
let
error
=
error
{
YHHUD
.
flash
(
message
:
error
.
errorMsg
)
}
else
{
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
+
1
self
.
updateDataSource
()
}
}
}
else
if
self
.
stepView
.
currentIndex
==
2
{
self
.
viewModel
.
saveWorkHighlights
(
workId
:
workExperienceID
?
.
intValue
()
??
0
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
bottom
.
nextButton
.
isEnabled
=
true
if
let
error
=
error
{
YHHUD
.
flash
(
message
:
error
.
errorMsg
)
}
else
{
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
+
1
self
.
updateDataSource
()
}
}
}
else
{
self
.
viewModel
.
saveWorkDetail
(
1
,
orderID
:
self
.
orderID
,
callBackBlock
:
{[
weak
self
]
flag
,
error
in
self
.
viewModel
.
saveWorkDetail
(
1
,
orderID
:
self
.
orderID
,
callBackBlock
:
{[
weak
self
]
flag
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
bottom
.
nextButton
.
isEnabled
=
true
bottom
.
nextButton
.
isEnabled
=
true
...
@@ -240,10 +285,10 @@ class YHWorkExperienceViewController: YHBaseViewController {
...
@@ -240,10 +285,10 @@ class YHWorkExperienceViewController: YHBaseViewController {
self
.
navigationController
?
.
popViewController
()
self
.
navigationController
?
.
popViewController
()
}
else
{
}
else
{
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
+
1
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
+
1
self
.
updateDataSource
()
}
}
}
}
})
})
}
}
else
{
}
else
{
bottom
.
nextButton
.
isEnabled
=
true
bottom
.
nextButton
.
isEnabled
=
true
self
.
isShowPrompt
=
true
self
.
isShowPrompt
=
true
...
@@ -253,6 +298,38 @@ class YHWorkExperienceViewController: YHBaseViewController {
...
@@ -253,6 +298,38 @@ class YHWorkExperienceViewController: YHBaseViewController {
}
}
bottom
.
saveBlock
=
{
[
weak
self
]
in
bottom
.
saveBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
self
.
stepView
.
currentIndex
==
0
{
self
.
viewModel
.
saveWorkData
(
orderID
,
workId
:
workExperienceID
?
.
intValue
()
??
0
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
bottom
.
nextButton
.
isEnabled
=
true
if
let
error
=
error
{
YHHUD
.
flash
(
message
:
error
.
errorMsg
)
}
else
{
YHHUD
.
flash
(
message
:
"保存成功"
)
}
}
}
else
if
self
.
stepView
.
currentIndex
==
1
{
self
.
viewModel
.
saveWorkDuty
(
workId
:
workExperienceID
?
.
intValue
()
??
0
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
bottom
.
nextButton
.
isEnabled
=
true
if
let
error
=
error
{
YHHUD
.
flash
(
message
:
error
.
errorMsg
)
}
else
{
YHHUD
.
flash
(
message
:
"保存成功"
)
}
}
}
else
if
self
.
stepView
.
currentIndex
==
2
{
self
.
viewModel
.
saveWorkHighlights
(
workId
:
workExperienceID
?
.
intValue
()
??
0
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
bottom
.
nextButton
.
isEnabled
=
true
if
let
error
=
error
{
YHHUD
.
flash
(
message
:
error
.
errorMsg
)
}
else
{
self
.
stepView
.
currentIndex
=
self
.
stepView
.
currentIndex
+
1
self
.
updateDataSource
()
}
}
}
else
{
self
.
viewModel
.
saveWorkDetail
(
0
,
orderID
:
self
.
orderID
,
callBackBlock
:
{[
weak
self
]
flag
,
error
in
self
.
viewModel
.
saveWorkDetail
(
0
,
orderID
:
self
.
orderID
,
callBackBlock
:
{[
weak
self
]
flag
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
let
error
=
error
{
if
let
error
=
error
{
...
@@ -262,6 +339,7 @@ class YHWorkExperienceViewController: YHBaseViewController {
...
@@ -262,6 +339,7 @@ class YHWorkExperienceViewController: YHBaseViewController {
}
}
})
})
}
}
}
return
bottom
return
bottom
}()
}()
view
.
addSubview
(
bottomView
)
view
.
addSubview
(
bottomView
)
...
@@ -482,7 +560,7 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
...
@@ -482,7 +560,7 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
stepView
.
currentIndex
==
1
{
if
stepView
.
currentIndex
==
1
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkResponsibilitiesTableViewCell
.
self
)
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkResponsibilitiesTableViewCell
.
self
)
cell
.
dataSource
=
viewModel
.
mainModel
.
w
duty
cell
.
dataSource
=
viewModel
.
dutyModel
.
work_
duty
cell
.
exampleBlock
=
{[
weak
self
]
in
cell
.
exampleBlock
=
{[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
let
mainVc
=
YHWorkExampleViewController
()
let
mainVc
=
YHWorkExampleViewController
()
...
@@ -518,7 +596,7 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
...
@@ -518,7 +596,7 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
return
cell
return
cell
}
else
if
stepView
.
currentIndex
==
2
{
}
else
if
stepView
.
currentIndex
==
2
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkHighlightsTableViewCell
.
self
)
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkHighlightsTableViewCell
.
self
)
cell
.
dataSource
=
viewModel
.
mainModel
.
highlights
cell
.
dataSource
=
viewModel
.
helightModel
.
work_
highlights
cell
.
exampleBlock
=
{[
weak
self
]
in
cell
.
exampleBlock
=
{[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
let
mainVc
=
YHWorkExampleViewController
()
let
mainVc
=
YHWorkExampleViewController
()
...
@@ -772,7 +850,6 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
...
@@ -772,7 +850,6 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
}
}
return
CGFloat
(
h
+
52
+
14
+
386
)
return
CGFloat
(
h
+
52
+
14
+
386
)
}
else
{
}
else
{
let
number
=
viewModel
.
positionList
.
count
var
height
=
23
+
154
var
height
=
23
+
154
for
item
in
viewModel
.
positionList
{
for
item
in
viewModel
.
positionList
{
if
item
.
position_name
==
""
{
if
item
.
position_name
==
""
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/Model/YHWorkExperienceDetailModel.swift
View file @
2f5b9ae2
...
@@ -16,6 +16,8 @@ class YHWorkExperienceDetailModel: SmartCodable {
...
@@ -16,6 +16,8 @@ class YHWorkExperienceDetailModel: SmartCodable {
var
professional_level
:
Int
=
0
var
professional_level
:
Int
=
0
var
work_certificate
:
String
=
""
var
work_certificate
:
String
=
""
var
has_finish_basic_question
:
Int
=
0
var
has_finish_basic_question
:
Int
=
0
var
work_duty
:
String
=
""
var
work_highlights
:
String
=
""
var
is_famous_enterprise
:
Int
=
0
var
is_famous_enterprise
:
Int
=
0
var
duty
:
String
=
""
var
duty
:
String
=
""
...
@@ -73,3 +75,11 @@ class YHWorkExperienceFileModel: SmartCodable {
...
@@ -73,3 +75,11 @@ class YHWorkExperienceFileModel: SmartCodable {
required
init
()
{
required
init
()
{
}
}
}
}
class
YHWorkExperienceStepModel
:
SmartCodable
{
var
step
:
Int
=
0
var
step_name
:
String
=
""
required
init
()
{
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/Model/YHWorkExperiencePositionModel.swift
View file @
2f5b9ae2
...
@@ -18,7 +18,7 @@ class YHWorkExperiencePositionModel: SmartCodable {
...
@@ -18,7 +18,7 @@ class YHWorkExperiencePositionModel: SmartCodable {
var
entry_time
:
String
=
""
var
entry_time
:
String
=
""
var
departure_time
:
String
=
""
var
departure_time
:
String
=
""
var
experience_scope
:
String
=
""
var
experience_scope
:
String
=
""
var
experience_sub_scope
:
String
=
""
var
experience_sub_scope
:
String
=
"
"
var
is_international_work_experience
:
Int
=
0
var
is_international_work_experience
:
Int
=
0
var
provide_certificate_type
:
Int
=
0
var
provide_certificate_type
:
Int
=
0
var
work_country
:
String
=
""
var
work_country
:
String
=
""
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/ViewModel/YHWorkExperienceViewModel.swift
View file @
2f5b9ae2
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
2f5b9ae2
...
@@ -229,6 +229,7 @@ class YHAllApiName {
...
@@ -229,6 +229,7 @@ class YHAllApiName {
static
let
list
=
"infoflow/work/v1/list"
static
let
list
=
"infoflow/work/v1/list"
//工作经验详情
//工作经验详情
static
let
detail
=
"infoflow/work/v1/workDetail"
static
let
detail
=
"infoflow/work/v1/workDetail"
static
let
workStep
=
"infoflow/work/v1/WorkStep"
//工作经验保存
//工作经验保存
static
let
save
=
"infoflow/work/save"
static
let
save
=
"infoflow/work/save"
static
let
saveAll
=
"infoflow/work/save-all"
static
let
saveAll
=
"infoflow/work/save-all"
...
@@ -260,6 +261,12 @@ class YHAllApiName {
...
@@ -260,6 +261,12 @@ class YHAllApiName {
static
let
workQuestionDetail
=
"infoflow/work/v1/workQuestionDetail"
static
let
workQuestionDetail
=
"infoflow/work/v1/workQuestionDetail"
static
let
saveWorkQuestion
=
"infoflow/work/v1/SaveWorkQuestion"
static
let
saveWorkQuestion
=
"infoflow/work/v1/SaveWorkQuestion"
static
let
saveWorkData
=
"infoflow/work/v1/saveWorkData"
static
let
workDutyDetail
=
"infoflow/work/v1/workDutyDetail"
static
let
saveWorkDuty
=
"infoflow/work/v1/saveWorkDuty"
static
let
workHighlightsDetail
=
"infoflow/work/v1/workHighlightsDetail"
static
let
saveWorkHighlights
=
"infoflow/work/v1/saveWorkHighlights"
}
}
//登录
//登录
...
...
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