Commit faaa1260 authored by David黄金龙's avatar David黄金龙

同步 UI刷新

parent 8815e5d8
......@@ -119,6 +119,8 @@ extension YHHKRecordsContentVC {
private func updateVC(recordsSingleModel: YHHKImmigrationRecordsSingleModel) {
guard recordsSingleModel.list.count > 0 else {
noDataView.isHidden = false
datas = []
tableView.reloadData()
return
}
var sections: [[RowType]] = []
......@@ -145,6 +147,8 @@ extension YHHKRecordsContentVC {
}
guard sections.count > 0 else {
noDataView.isHidden = false
datas = []
tableView.reloadData()
return
}
datas = sections
......
......@@ -106,6 +106,8 @@ extension YHHKRecordsSummaryVC {
private func updateVC(recordsSummary: YHHKImmigrationRecordsSummaryModel) {
guard recordsSummary.list.count > 0 else {
noDataView.isHidden = false
datas = []
tableView.reloadData()
return
}
var sections: [YHHKRecordSectionType] = [.header("在港逗留情况")]
......@@ -144,6 +146,8 @@ extension YHHKRecordsSummaryVC {
}
guard sections.count > 1 else {
noDataView.isHidden = false
datas = []
tableView.reloadData()
return
}
datas = sections
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment