Commit 8d86a801 authored by pete谢兆麟's avatar pete谢兆麟

修改两次bug

parent 4c70d2f2
...@@ -638,9 +638,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo ...@@ -638,9 +638,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
self.viewModel.mainModel.file = self.fileDataSource ?? [] self.viewModel.mainModel.file = self.fileDataSource ?? []
} }
self.tableView.reloadData() self.tableView.reloadData()
if models.count != 0 {
YHHUD.flash(message: "同步成功") YHHUD.flash(message: "同步成功")
} }
} }
}
return cell return cell
} }
} else if stepView.currentIndex == 4 { } else if stepView.currentIndex == 4 {
...@@ -768,9 +770,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo ...@@ -768,9 +770,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
self.viewModel.mainModel.file = self.fileDataSource ?? [] self.viewModel.mainModel.file = self.fileDataSource ?? []
} }
self.tableView.reloadData() self.tableView.reloadData()
if models.count != 0 {
YHHUD.flash(message: "同步成功") YHHUD.flash(message: "同步成功")
} }
} }
}
return cell return cell
} else { } else {
let cell = tableView.dequeueReusableCell(withClass: YHWorkExperienceTableViewCell.self) let cell = tableView.dequeueReusableCell(withClass: YHWorkExperienceTableViewCell.self)
......
...@@ -227,6 +227,7 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -227,6 +227,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
let view = YHWorkActionView() let view = YHWorkActionView()
view.exampleBlock = {[weak self] in view.exampleBlock = {[weak self] in
guard let self = self else { return } guard let self = self else { return }
self.view.endEditing(true)
let mainVc = YHWorkExampleViewController() let mainVc = YHWorkExampleViewController()
mainVc.dataSource = self.viewModel?.introducetionExampleModels mainVc.dataSource = self.viewModel?.introducetionExampleModels
mainVc.type = .introduction mainVc.type = .introduction
...@@ -242,6 +243,7 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -242,6 +243,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
} }
view.photoBlock = {[weak self] in view.photoBlock = {[weak self] in
guard let self = self else { return } guard let self = self else { return }
self.view.endEditing(true)
YHImagePickerView.show() {[weak self] image in YHImagePickerView.show() {[weak self] image in
guard let self = self else { return } guard let self = self else { return }
let clipperVC = YHImageClipperViewController() let clipperVC = YHImageClipperViewController()
......
...@@ -56,8 +56,8 @@ class YHWorkExperienceViewModel: YHBaseViewModel { ...@@ -56,8 +56,8 @@ class YHWorkExperienceViewModel: YHBaseViewModel {
let item16 = YHWorkExperienceModel(id: .id18, isNeed: false, title: "公司业务性质/范畴/所属行业", isUserKeyBoard: true, prompts: "请输入,100字内", message: mainModel.business_nature) let item16 = YHWorkExperienceModel(id: .id18, isNeed: false, title: "公司业务性质/范畴/所属行业", isUserKeyBoard: true, prompts: "请输入,100字内", message: mainModel.business_nature)
let item17 = YHWorkExperienceModel(id: .id19, isNeed: true, title: "职位水平类别", isUserKeyBoard: false, prompts: "请选择", message: "\(mainModel.professional_level)", type: .level, isShowPrompts: isShowPrompt, alertMessage:"请选择职位水平类别") let item17 = YHWorkExperienceModel(id: .id19, isNeed: true, title: "职位水平类别", isUserKeyBoard: false, prompts: "请选择", message: "\(mainModel.professional_level)", type: .level, isShowPrompts: isShowPrompt, alertMessage:"请选择职位水平类别")
let item18 = YHWorkExperienceModel(id: .id20, isNeed: true, title: "高管证明文件", isUserKeyBoard: false, prompts: "请选择", message: mainModel.executives_certificate, type: .prove, isShowPrompts: isShowPrompt, alertMessage:"请选择高管证明文件") let item18 = YHWorkExperienceModel(id: .id20, isNeed: true, title: "高管证明文件", isUserKeyBoard: false, prompts: "请选择", message: mainModel.executives_certificate, type: .prove, isShowPrompts: isShowPrompt, alertMessage:"请选择高管证明文件")
let item19 = YHWorkExperienceModel(id: .id21, isNeed: true, title: "高管在职开始时间", isUserKeyBoard: false, prompts: "请选择", message: mainModel.top_manager_start_at, type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择入职年月") let item19 = YHWorkExperienceModel(id: .id21, isNeed: true, title: "高管在职开始时间", isUserKeyBoard: false, prompts: "请选择", message: mainModel.top_manager_start_at, type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择高管在职开始时间")
let item20 = YHWorkExperienceModel(id: .id22, isNeed: true, title: "高管在职结束时间", isUserKeyBoard: false, prompts: "请选择", message: mainModel.top_manager_end_at, type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择离职年月") let item20 = YHWorkExperienceModel(id: .id22, isNeed: true, title: "高管在职结束时间", isUserKeyBoard: false, prompts: "请选择", message: mainModel.top_manager_end_at, type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择高管在职结束时间")
var section1 = YHSectionWorkExperienceModel() var section1 = YHSectionWorkExperienceModel()
if mainModel.professional_level == 1 { if mainModel.professional_level == 1 {
section1 = YHSectionWorkExperienceModel(title: "企业规模", models: [item12, item13, item14, item15, item16, item17, item18, item19, item20]) section1 = YHSectionWorkExperienceModel(title: "企业规模", models: [item12, item13, item14, item15, item16, item17, item18, item19, item20])
......
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