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
6476b61f
Commit
6476b61f
authored
Nov 12, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 家庭
parent
15881b12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
YHGCFamilyMemberInfoListVC.swift
.../FamilyMember(家庭成员信息表)/C/YHGCFamilyMemberInfoListVC.swift
+36
-36
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/YHGCFamilyMemberInfoListVC.swift
View file @
6476b61f
...
...
@@ -177,34 +177,34 @@ class YHGCFamilyMemberInfoListVC: YHBaseViewController {
items
.
append
(
childArr
)
// 父母section
var
parents
=
[
YHFormItemProtocol
]()
let
item0
=
YHFormTitleItem
(
type
:
.
parent
)
parents
.
append
(
item0
)
if
let
father
=
familyMemberInfo
?
.
father
{
// 信息未填写时服务器返回的relation=0
father
.
relationType
=
.
father
parents
.
append
(
father
)
}
if
let
mother
=
familyMemberInfo
?
.
mother
{
// 信息未填写时服务器返回的relation=0
mother
.
relationType
=
.
mother
parents
.
append
(
mother
)
}
items
.
append
(
parents
)
// 兄妹section
var
brotherArr
:[
YHFormItemProtocol
]
=
[
YHFormTitleItem
(
type
:
.
brother
),
YHFormAddItem
(
type
:
.
addBrother
)]
if
let
brothers
=
familyMemberInfo
?
.
brother
,
!
brothers
.
isEmpty
{
for
brother
in
brothers
{
// 信息未填写时服务器返回的relation=0
brother
.
relation
=
String
(
format
:
"%d"
,
YHFamilyMemberType
.
brother
.
rawValue
)
}
brotherArr
.
insert
(
contentsOf
:
brothers
,
at
:
1
)
}
items
.
append
(
brotherArr
)
//
var parents = [YHFormItemProtocol]()
//
let item0 = YHFormTitleItem(type: .parent)
//
parents.append(item0)
//
//
if let father = familyMemberInfo?.father {
//
// 信息未填写时服务器返回的relation=0
//
father.relationType = .father
//
parents.append(father)
//
}
//
//
if let mother = familyMemberInfo?.mother {
//
// 信息未填写时服务器返回的relation=0
//
mother.relationType = .mother
//
parents.append(mother)
//
}
//
items.append(parents)
//
//
//
// 兄妹section
//
var brotherArr:[YHFormItemProtocol] = [YHFormTitleItem(type: .brother), YHFormAddItem(type: .addBrother)]
//
if let brothers = familyMemberInfo?.brother, !brothers.isEmpty {
//
for brother in brothers {
//
// 信息未填写时服务器返回的relation=0
//
brother.relation = String(format: "%d", YHFamilyMemberType.brother.rawValue)
//
}
//
brotherArr.insert(contentsOf: brothers, at:1)
//
}
//
items.append(brotherArr)
let
childCount
=
familyMemberInfo
?
.
child
?
.
count
??
0
if
childCount
<=
0
{
...
...
@@ -215,14 +215,14 @@ class YHGCFamilyMemberInfoListVC: YHBaseViewController {
}
}
let
brotherCount
=
familyMemberInfo
?
.
brother
?
.
count
??
0
if
brotherCount
<=
0
{
isBrothersEditMode
=
.
none
}
else
{
if
isBrothersEditMode
==
.
none
{
isBrothersEditMode
=
.
canEdit
}
}
//
let brotherCount = familyMemberInfo?.brother?.count ?? 0
//
if brotherCount <= 0 {
//
isBrothersEditMode = .none
//
} else {
//
if isBrothersEditMode == .none {
//
isBrothersEditMode = .canEdit
//
}
//
}
tableView
.
reloadData
()
}
}
...
...
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