Commit 9389de9b authored by pete谢兆麟's avatar pete谢兆麟

工作经验改到头痛

parent 86d7dce8
...@@ -75,14 +75,7 @@ class YHWorkExperienceListViewController: YHBaseViewController { ...@@ -75,14 +75,7 @@ class YHWorkExperienceListViewController: YHBaseViewController {
guard let self = self else { return } guard let self = self else { return }
guard let dataSource = dataSource else { return } guard let dataSource = dataSource else { return }
if dataSource.count == 0 { if dataSource.count == 0 {
YHCommonAlertView.show("", "请确认主申请人无任何工作经历?", "取消", "确认") { YHHUD.flash(message: "至少需要有一条工作经验")
self.viewModel?.requestWorkTimeRemarkWorkExperience("\(self.orderId)", 1, callBackBlock: {[weak self] success, error in
guard let self = self else { return }
if success ?? false {
self.navigationController?.popViewController(animated: true)
}
})
}
return return
} }
for item in dataSource { for item in dataSource {
......
...@@ -255,6 +255,7 @@ class YHWorkExperienceViewController: YHBaseViewController { ...@@ -255,6 +255,7 @@ class YHWorkExperienceViewController: YHBaseViewController {
self.isShowPrompt = true self.isShowPrompt = true
tableView.reloadData() tableView.reloadData()
YHHUD.flash(message: "至少需要新增一个职位") YHHUD.flash(message: "至少需要新增一个职位")
return
} }
for item in self.viewModel.positionList { for item in self.viewModel.positionList {
if item.missing_item_num > 0 { if item.missing_item_num > 0 {
......
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