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
1556b209
Commit
1556b209
authored
Dec 25, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 高才
parent
98aaa7e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
42 deletions
+64
-42
YHGCPreviewViewModel.swift
...息流程)/PersonInfoList(个人信息预览)/VM/YHGCPreviewViewModel.swift
+64
-42
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/PersonInfoList(个人信息预览)/VM/YHGCPreviewViewModel.swift
View file @
1556b209
...
...
@@ -492,63 +492,85 @@ private extension YHGCPreviewViewModel {
if
let
arr0
=
model0
.
edu_list
{
for
(
index
,
model
)
in
arr0
.
enumerated
()
{
//主申请人学历
let
tmp5
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学位:"
,
answer
:
model
.
background
)
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学校全称:"
,
answer
:
model
.
college
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"
授课形式:"
,
answer
:
model
.
typ
e
)
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"入学年月:"
,
answer
:
model
.
admission_time
)
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"毕业年月:"
,
answer
:
model
.
graduate_time
)
let
tmp4
=
YHPreviewQuestionAndAnswerModel
(
question
:
"专业:"
,
answer
:
model
.
professional
)
// let tmp6 = YHPreviewQuestionAndAnswerModel(question: "学位类型:", answer: model.degree_type)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"
毕业年月:"
,
answer
:
model
.
graduate_tim
e
)
var
major
=
model
.
professional
if
model
.
professional
==
"其他"
{
major
=
model
.
major_other
}
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"专业:"
,
answer
:
major
)
var
title
=
"--"
if
let
item
=
model
.
school_address
{
if
!
item
.
country
.
isEmpty
{
title
=
item
.
country
}
var
degree
=
"--"
if
model
.
has_bachelor_degree
==
1
{
degree
=
"学士学位"
}
if
model
.
has_bachelor_degree
==
2
{
degree
=
"无学位"
}
let
tmp7
=
YHPreviewQuestionAndAnswerModel
(
question
:
"上课城市:"
,
answer
:
title
)
let
arr
=
[
tmp5
,
tmp0
,
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp7
]
let
addationIndex
=
arr0
.
count
>
1
?
String
(
index
+
1
)
:
""
let
model2
=
YHPreviewInfoSessionModel
(
cellType
:
.
countryInfoType
,
cellTitle
:
"主申请人学历"
+
addationIndex
,
cellData0
:
arr
)
arrDataForAcademicInfo
.
append
(
model2
)
}
}
}
do
{
//主申请人专业资格及会员资格
if
let
arr
=
model0
.
qla_list
{
for
(
index
,
model
)
in
arr
.
enumerated
()
{
let
tmp0
=
YHPreviewQuestionAndAnswerModel
(
question
:
"资格证书名称:"
,
answer
:
model
.
qualification
)
let
tmp1
=
YHPreviewQuestionAndAnswerModel
(
question
:
"颁授机构全称:"
,
answer
:
model
.
college
)
let
tmp2
=
YHPreviewQuestionAndAnswerModel
(
question
:
"颁授年份:"
,
answer
:
String
(
model
.
promulgation
))
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"学位:"
,
answer
:
degree
)
// let tmp1 = YHPreviewQuestionAndAnswerModel(question: "授课形式:", answer:model.type)
// let tmp2 = YHPreviewQuestionAndAnswerModel(question: "入学年月:", answer:model.admission_time)
// let tmp6 = YHPreviewQuestionAndAnswerModel(question: "学位类型:", answer: model.degree_type)
var
title
=
""
if
let
item
=
model
.
college_address
{
if
item
.
country
.
contains
(
"中国"
)
{
title
=
"国内 "
if
item
.
area
.
count
>
1
{
title
=
title
+
item
.
area
[
0
]
+
"/"
+
item
.
area
[
1
]
}
}
else
{
title
=
"国外 "
+
item
.
country
+
"-"
+
item
.
foreign
var
schoolAddressBoard
=
model
.
school_address_aboard
==
1
?
"国外"
:
"国内"
var
schoolCountry
=
model
.
school_address
?
.
country
??
""
var
address
=
""
if
model
.
school_address_aboard
==
1
{
if
let
foreign
=
model
.
school_address
?
.
foreign
,
!
foreign
.
isEmpty
{
address
=
foreign
}
}
else
{
title
=
"--"
if
let
schoolAddress
=
model
.
school_address
{
if
schoolAddress
.
area
.
count
>
1
{
address
=
schoolAddress
.
area
[
1
]
}
}
}
let
tmp3
=
YHPreviewQuestionAndAnswerModel
(
question
:
"颁授城市:"
,
answer
:
title
)
let
arr000
=
[
tmp0
,
tmp1
,
tmp2
,
tmp3
]
var
classAddress
=
"
\(
schoolAddressBoard
)
-
\(
schoolCountry
)
/
\(
address
)
"
let
tmp4
=
YHPreviewQuestionAndAnswerModel
(
question
:
"上课地点:"
,
answer
:
classAddress
)
let
arr
=
[
tmp0
,
tmp1
,
tmp2
,
tmp3
,
tmp4
]
let
addationIndex
=
arr
.
count
>
1
?
String
(
index
+
1
)
:
""
let
model2
=
YHPreviewInfoSessionModel
(
cellType
:
.
countryInfoType
,
cellTitle
:
"主申请人
专业资格及会员资格"
+
addationIndex
,
cellData0
:
arr000
)
let
addationIndex
=
arr
0
.
count
>
1
?
String
(
index
+
1
)
:
""
let
model2
=
YHPreviewInfoSessionModel
(
cellType
:
.
countryInfoType
,
cellTitle
:
"主申请人
学历"
+
addationIndex
,
cellData0
:
arr
)
arrDataForAcademicInfo
.
append
(
model2
)
}
}
}
// do {
// //主申请人专业资格及会员资格
// if let arr = model0.qla_list {
// for(index,model) in arr.enumerated() {
// let tmp0 = YHPreviewQuestionAndAnswerModel(question: "资格证书名称:",answer:model.qualification)
// let tmp1 = YHPreviewQuestionAndAnswerModel(question: "颁授机构全称:", answer:model.college)
// let tmp2 = YHPreviewQuestionAndAnswerModel(question: "颁授年份:", answer:String(model.promulgation))
//
// var title = ""
// if let item = model.college_address {
// if item.country.contains("中国") {
// title = "国内 "
// if item.area.count > 1 {
// title = title + item.area[0] + "/" + item.area[1]
// }
// } else {
// title = "国外 " + item.country + "-" + item.foreign
// }
// } else {
// title = "--"
// }
// let tmp3 = YHPreviewQuestionAndAnswerModel(question: "颁授城市:", answer:title)
// let arr000 = [tmp0,tmp1,tmp2,tmp3]
//
//
// let addationIndex = arr.count > 1 ? String(index + 1) : ""
// let model2 = YHPreviewInfoSessionModel(cellType: .countryInfoType, cellTitle: "主申请人专业资格及会员资格" + addationIndex, cellData0: arr000)
// arrDataForAcademicInfo.append(model2)
// }
// }
// }
do
{
//主申请人
let
title
=
model0
.
qla_correct
==
1
?
"是"
:
"否"
...
...
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