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
0b230a4b
Commit
0b230a4b
authored
Nov 14, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成 基本资料信息填写
parent
46fc2660
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
31 deletions
+33
-31
YHBasicInfoFillViewController.swift
...seInformation(基本资料)/C/YHBasicInfoFillViewController.swift
+14
-12
YHBasicInfoFillViewModel.swift
...)/BaseInformation(基本资料)/VM/YHBasicInfoFillViewModel.swift
+19
-19
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/BaseInformation(基本资料)/C/YHBasicInfoFillViewController.swift
View file @
0b230a4b
...
@@ -200,18 +200,20 @@ extension YHBasicInfoFillViewController {
...
@@ -200,18 +200,20 @@ extension YHBasicInfoFillViewController {
arr
.
append
(
applicant
)
arr
.
append
(
applicant
)
param
.
updateValue
(
arr
,
forKey
:
"child"
)
param
.
updateValue
(
arr
,
forKey
:
"child"
)
}
else
if
item
.
sessionTitle
==
"家庭背景"
{
}
var
applicant
:
[
String
:
Any
]
=
[:]
// else if item.sessionTitle == "家庭背景" {
for
(
index0
,
item0
)
in
item
.
arrQuestionItem
.
enumerated
()
{
// var applicant : [String : Any] = [:]
if
index0
==
0
{
// for (index0,item0) in item.arrQuestionItem.enumerated() {
let
value
=
[
"has"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
// if index0 == 0 {
applicant
.
updateValue
(
value
,
forKey
:
"background_member"
)
// let value = ["has":item0.answer,"info":item0.answer == "Y" ? item0.info : ""]
}
else
{
// applicant.updateValue(value, forKey: "background_member")
printLog
(
"其他数据没有处理"
)
// } else {
}
// printLog("其他数据没有处理")
}
// }
param
.
updateValue
(
applicant
,
forKey
:
"background"
)
// }
}
else
{
// param.updateValue(applicant, forKey: "background")
// }
else
{
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/BaseInformation(基本资料)/VM/YHBasicInfoFillViewModel.swift
View file @
0b230a4b
...
@@ -60,14 +60,14 @@ extension YHBasicInfoFillViewModel {
...
@@ -60,14 +60,14 @@ extension YHBasicInfoFillViewModel {
}
}
do
{
//
do {
//家庭背景
//
//家庭背景
let
model1
=
YHBasicInfoCellModel
(
question
:
"1、至少一名直系家庭成员(已婚配偶、父母、兄弟姊妹、子女)是现居于香港的香港永久性居民"
,
answer
:
""
,
info
:
""
)
//
let model1 = YHBasicInfoCellModel(question:"1、至少一名直系家庭成员(已婚配偶、父母、兄弟姊妹、子女)是现居于香港的香港永久性居民", answer: "", info: "")
let
arr
=
[
model1
]
//
let arr = [model1]
//
let
sessionModel
=
YHBasicInfoSessionModel
(
sessionTitle
:
"家庭背景"
,
arrQuestionItem
:
arr
)
//
let sessionModel = YHBasicInfoSessionModel(sessionTitle: "家庭背景", arrQuestionItem: arr)
arrData
.
append
(
sessionModel
)
//
arrData.append(sessionModel)
}
//
}
arrBasicInfoSessionDataForEdit
=
arrData
arrBasicInfoSessionDataForEdit
=
arrData
}
}
...
@@ -132,17 +132,17 @@ extension YHBasicInfoFillViewModel {
...
@@ -132,17 +132,17 @@ extension YHBasicInfoFillViewModel {
do
{
//
do {
//家庭背景
//
//家庭背景
if
let
model
=
dataModelForBasicInfo
.
background
{
//
if let model = dataModelForBasicInfo.background {
let
model1
=
YHBasicInfoCellModel
(
question
:
"1、至少一名直系家庭成员(已婚配偶、父母、兄弟姊妹、子女)是现居于香港的香港永久性居民"
,
answer
:
model
.
background_member
?
.
has
??
""
,
info
:
model
.
background_member
?
.
info
??
""
,
type
:
1
)
//
let model1 = YHBasicInfoCellModel(question:"1、至少一名直系家庭成员(已婚配偶、父母、兄弟姊妹、子女)是现居于香港的香港永久性居民", answer: model.background_member?.has ?? "", info: model.background_member?.info ?? "",type: 1)
model1
.
model
=
model
//
model1.model = model
let
arr
=
[
model1
]
//
let arr = [model1]
let
sessionModel
=
YHBasicInfoSessionModel
(
sessionTitle
:
"家庭背景"
,
arrQuestionItem
:
arr
)
//
let sessionModel = YHBasicInfoSessionModel(sessionTitle: "家庭背景", arrQuestionItem: arr)
arrData
.
append
(
sessionModel
)
//
arrData.append(sessionModel)
}
//
}
//
}
//
}
arrBasicInfoSessionDataForEdit
=
arrData
arrBasicInfoSessionDataForEdit
=
arrData
}
}
}
}
...
...
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