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
d0079657
Commit
d0079657
authored
Nov 20, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'qmas-1130' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into qmas-1130
parents
3dba927b
d15c81e6
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
149 additions
and
44 deletions
+149
-44
YHOtherInfoFillViewModel.swift
.../OtherInformation(其他信息)/VM/YHOtherInfoFillViewModel.swift
+1
-1
YHPreviewMainViewController.swift
...ersonInfoList(个人信息预览)/C/YHPreviewMainViewController.swift
+3
-3
YHPreviewForOtherInfoModel.swift
...PersonInfoList(个人信息预览)/M/YHPreviewForOtherInfoModel.swift
+8
-0
YHPreviewViewModel.swift
...的信息流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
+119
-39
YHWorkExperienceViewController.swift
...rkExperience(工作经验)/C/YHWorkExperienceViewController.swift
+0
-0
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(我的信息流程)/OtherInformation(其他信息)/VM/YHOtherInfoFillViewModel.swift
View file @
d0079657
...
@@ -305,7 +305,7 @@ extension YHOtherInfoFillViewModel {
...
@@ -305,7 +305,7 @@ extension YHOtherInfoFillViewModel {
let
arrTTT
=
item
.
second_select
.
split
(
separator
:
","
)
let
arrTTT
=
item
.
second_select
.
split
(
separator
:
","
)
if
arrTTT
.
count
>
0
{
if
arrTTT
.
count
>
0
{
let
tmpId
:
Int
=
Int
(
arrTTT
[
0
])
??
0
let
tmpId
:
Int
=
Int
(
arrTTT
[
0
])
??
0
for
(
iii
,
ttt
)
in
tt
.
options
.
enumerated
()
{
for
(
_
,
ttt
)
in
tt
.
options
.
enumerated
()
{
if
tmpId
==
ttt
.
id
{
if
tmpId
==
ttt
.
id
{
ttt
.
select
=
true
ttt
.
select
=
true
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/PersonInfoList(个人信息预览)/C/YHPreviewMainViewController.swift
View file @
d0079657
...
@@ -124,9 +124,9 @@ extension YHPreviewMainViewController {
...
@@ -124,9 +124,9 @@ extension YHPreviewMainViewController {
}
}
self
.
nameLable
.
text
=
title
self
.
nameLable
.
text
=
title
self
.
phoneLable
.
text
=
self
.
previewVM
.
mainApplicationInfoPreviewModel
?
.
mobile
??
"-"
//
self.phoneLable.text = self.previewVM.mainApplicationInfoPreviewModel?.mobile ?? "-"
self
.
phoneLable
.
text
=
"优才计划"
self
.
handleHeaderIcon
()
//
self.handleHeaderIcon()
}
else
{
}
else
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/PersonInfoList(个人信息预览)/M/YHPreviewForOtherInfoModel.swift
View file @
d0079657
...
@@ -14,4 +14,12 @@ struct YHPreviewForOtherInfoModel: SmartCodable {
...
@@ -14,4 +14,12 @@ struct YHPreviewForOtherInfoModel: SmartCodable {
var
language
:
LanguageDetail
?
var
language
:
LanguageDetail
?
var
profession
:
Profession
?
var
profession
:
Profession
?
var
question
:
Question
?
var
question
:
Question
?
var
language_detail_new
:
[
LanguageDetailNew
]
=
[]
var
language_detail_new_local
:
[
YHPreviewQuestionModel
]
=
[]
//本地使用
}
struct
YHPreviewQuestionModel
:
SmartCodable
{
var
question
:
String
=
""
var
answer
:
String
=
""
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/PersonInfoList(个人信息预览)/VM/YHPreviewViewModel.swift
View file @
d0079657
...
@@ -677,42 +677,56 @@ private extension YHPreviewViewModel {
...
@@ -677,42 +677,56 @@ private extension YHPreviewViewModel {
handleDataForOtherInfo
()
handleDataForOtherInfo
()
do
{
//
do {
//
if
let
arr1
=
model
.
list
,
arr1
.
isEmpty
==
false
{
//
if let arr1 = model.list,arr1.isEmpty == false {
var
arr
:
[
YHPersonInfoCellModel1
]
=
[]
//
var arr : [YHPersonInfoCellModel1] = []
for
(
index
,
item
)
in
arr1
.
enumerated
()
{
//
for (index,item) in arr1.enumerated() {
//
//居住信息
//
//居住信息
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"开始时间:"
,
answer
:
item
.
start_time
)
//
let tmp0 = YHPreviewQuestionAndAnswerModel(question: "开始时间:", answer: item.start_time)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"结束时间:"
,
answer
:
item
.
end_time
)
//
let tmp1 = YHPreviewQuestionAndAnswerModel(question: "结束时间:", answer: item.end_time)
//
//
let
addationIndex
=
arr1
.
count
>
1
?
String
(
index
+
1
)
:
""
//
let addationIndex = arr1.count > 1 ? String(index + 1) : ""
let
title
=
"国家"
+
addationIndex
+
":"
+
item
.
country
//
let title = "国家" + addationIndex + ":" + item.country
let
model0
=
YHPersonInfoCellModel1
(
cellTitle
:
title
,
cellData
:
[
tmp0
,
tmp1
])
//
let model0 = YHPersonInfoCellModel1(cellTitle: title, cellData: [tmp0,tmp1])
//
arr
.
append
(
model0
)
//
arr.append(model0)
}
//
}
//
let
model3
=
YHPreviewInfoSessionModel
(
cellType
:
.
idCardInfoType
,
cellTitle
:
"居住信息"
,
cellData1
:
arr
)
//
let model3 = YHPreviewInfoSessionModel(cellType: .idCardInfoType, cellTitle: "居住信息", cellData1: arr)
arrDataForOtherInfo
.
append
(
model3
)
//
arrDataForOtherInfo.append(model3)
}
//
}
}
//
}
do
{
do
{
//语言能力
//语言能力
if
let
model
=
otherInfoPreviewModel
?
.
language
{
// if let model = otherInfoPreviewModel?.language {
var
title
=
""
// var title = ""
if
model
.
level
==
4
{
// if model.level == 4 {
title
=
model
.
name
.
defaultStringIfEmpty
()
+
"
\n
"
+
model
.
remark
.
defaultStringIfEmpty
()
// title = model.name.defaultStringIfEmpty() + "\n" + model.remark.defaultStringIfEmpty()
// }
// let tmp0 = YHPreviewQuestionAndAnswerModel(question: model.levelDes, answer: model.localRemark,remark: title)
// let arr = [tmp0]
// let model1 = YHPreviewInfoSessionModel(cellType: .questionAndAnswer, cellTitle: "语言能力", cellData0: arr)
// arrDataForOtherInfo.append(model1)
//
// }
//语言能力
if
let
arr
=
otherInfoPreviewModel
?
.
language_detail_new_local
,
arr
.
count
>
0
{
var
arrT
:
[
YHPreviewQuestionAndAnswerModel
]
=
[]
for
(
index
,
item
)
in
arr
.
enumerated
()
{
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
item
.
question
,
answer
:
item
.
answer
,
remark
:
""
)
arrT
.
append
(
tmp0
)
}
}
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
model
.
levelDes
,
answer
:
model
.
localRemark
,
remark
:
title
)
let
arr
=
[
tmp0
]
let
model1
=
YHPreviewInfoSessionModel
(
cellType
:
.
questionAndAnswer
,
cellTitle
:
"语言能力"
,
cellData0
:
arr
)
arrDataForOtherInfo
.
append
(
model1
)
let
model1
=
YHPreviewInfoSessionModel
(
cellType
:
.
questionAndAnswer
,
cellTitle
:
"语言能力"
,
cellData0
:
arrT
)
arrDataForOtherInfo
.
append
(
model1
)
}
}
}
}
...
@@ -748,18 +762,84 @@ private extension YHPreviewViewModel {
...
@@ -748,18 +762,84 @@ private extension YHPreviewViewModel {
private
extension
YHPreviewViewModel
{
private
extension
YHPreviewViewModel
{
//特殊处理 其他信息预览 需要的数据
//特殊处理 其他信息预览 需要的数据
func
handleDataForOtherInfo
()
{
func
handleDataForOtherInfo
()
{
if
let
language
=
otherInfoPreviewModel
?
.
language
{
// if let language = otherInfoPreviewModel?.language {
if
language
.
level
>
0
{
// if language.level > 0 {
let
target
=
String
(
language
.
level
)
// let target = String(language.level)
for
(
_
,
item
)
in
YHConstantArrayData
.
arrLanguage
.
enumerated
()
{
// for(_,item) in YHConstantArrayData.arrLanguage.enumerated() {
//
if
target
==
item
[
"id"
]
{
// if target == item["id"] {
language
.
levelDes
=
item
[
"title"
]
??
"--"
// language.levelDes = item["title"] ?? "--"
language
.
localRemark
=
item
[
"dec"
]
??
"--"
// language.localRemark = item["dec"] ?? "--"
break
// break
// }
// }
// }
// }
if
let
language
=
otherInfoPreviewModel
?
.
language_detail_new
{
if
language
.
count
>
0
{
if
let
arrCompare
=
[
LanguageDetailModel
]
.
deserialize
(
from
:
YHOtherInfoFillViewModel
.
languageJsonData
),
arrCompare
.
count
>
0
{
var
arrO
:
[
YHPreviewQuestionModel
]
=
[]
for
(
index
,
item
)
in
language
.
enumerated
()
{
let
firstID
:
Int
=
item
.
first_select
var
secondID
:
Int
=
0
var
firstName
:
String
=
""
var
secondName
:
String
=
""
if
!
item
.
second_select
.
isEmpty
{
let
arrTTT
=
item
.
second_select
.
split
(
separator
:
","
)
if
arrTTT
.
count
>
0
{
secondID
=
Int
(
arrTTT
[
0
])
??
0
}
else
{
secondID
=
0
}
}
else
{
secondID
=
0
}
var
findFirstFlag
:
Bool
=
false
for
(
i
,
t
)
in
arrCompare
.
enumerated
()
{
if
t
.
id
==
firstID
{
firstName
=
t
.
name
+
(
t
.
other_instructions
.
isEmpty
?
""
:
(
"="
+
t
.
other_instructions
))
findFirstFlag
=
true
var
findSecondFlag
:
Bool
=
false
for
(
ii
,
tt
)
in
t
.
options
.
enumerated
()
{
if
tt
.
id
==
secondID
{
secondName
=
tt
.
name
findSecondFlag
=
true
}
}
if
!
findSecondFlag
{
secondName
=
"--"
}
}
}
if
!
findFirstFlag
{
firstName
=
"--"
}
var
question
:
YHPreviewQuestionModel
=
YHPreviewQuestionModel
()
question
.
question
=
firstName
question
.
answer
=
secondName
arrO
.
append
(
question
)
}
}
otherInfoPreviewModel
?
.
language_detail_new_local
=
arrO
}
else
{
otherInfoPreviewModel
?
.
language_detail_new_local
=
[]
}
}
}
else
{
otherInfoPreviewModel
?
.
language_detail_new_local
=
[]
}
}
}
else
{
otherInfoPreviewModel
?
.
language_detail_new_local
=
[]
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHWorkExperienceViewController.swift
View file @
d0079657
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/Model/YHWorkExperienceDetailModel.swift
View file @
d0079657
...
@@ -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 @
d0079657
...
@@ -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 @
d0079657
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
d0079657
...
@@ -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