Commit 87b5cc37 authored by Steven杜宇's avatar Steven杜宇

// 删除学历和证书

parent 5d453a28
...@@ -318,10 +318,14 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource { ...@@ -318,10 +318,14 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource {
cell.isShowDeleteBtn = (isDegreeEditMode == .canCancel) cell.isShowDeleteBtn = (isDegreeEditMode == .canCancel)
cell.detailLabel.textColor = (isNeedShowError && eduInfo.vacantNum > 0 ? .failColor : .labelTextColor2) cell.detailLabel.textColor = (isNeedShowError && eduInfo.vacantNum > 0 ? .failColor : .labelTextColor2)
cell.deleteBlock = { cell.deleteBlock = {
[weak self] in var title = "确定要删除该学历吗?"
guard let self = self else { return } YHTwoOptionAlertView.showAlertView(message:title) {
isDegreeEditMode = .none [weak self] sure in
deleteEducationInfo(id:eduInfo.id) guard let self = self else { return }
if !sure { return }
isDegreeEditMode = .none
deleteEducationInfo(id:eduInfo.id)
}
} }
return cell return cell
...@@ -339,10 +343,14 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource { ...@@ -339,10 +343,14 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource {
} }
cell.isShowDeleteBtn = (isDegreeEditMode == .canCancel) cell.isShowDeleteBtn = (isDegreeEditMode == .canCancel)
cell.deleteBlock = { cell.deleteBlock = {
[weak self] in var title = "确定要删除该学历吗?"
guard let self = self else { return } YHTwoOptionAlertView.showAlertView(message:title) {
isDegreeEditMode = .none [weak self] sure in
deleteEducationInfo(id:eduInfo.id) guard let self = self else { return }
if !sure { return }
isDegreeEditMode = .none
deleteEducationInfo(id:eduInfo.id)
}
} }
return cell return cell
} }
...@@ -366,10 +374,14 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource { ...@@ -366,10 +374,14 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource {
cell.detailLabel.textColor = (isNeedShowError && quaInfo.vacantNum > 0 ? .failColor : .labelTextColor2) cell.detailLabel.textColor = (isNeedShowError && quaInfo.vacantNum > 0 ? .failColor : .labelTextColor2)
cell.isShowDeleteBtn = (isQualificationEditMode == .canCancel) cell.isShowDeleteBtn = (isQualificationEditMode == .canCancel)
cell.deleteBlock = { cell.deleteBlock = {
[weak self] in var title = "确定要删除该证书吗?"
guard let self = self else { return } YHTwoOptionAlertView.showAlertView(message:title) {
isQualificationEditMode = .none [weak self] sure in
deleteQualificationInfo(id:quaInfo.id) guard let self = self else { return }
if !sure { return }
isQualificationEditMode = .none
deleteQualificationInfo(id:quaInfo.id)
}
} }
return cell return cell
} }
......
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