Commit 528ddff1 authored by Alex朱枝文's avatar Alex朱枝文

刷新bug修复

parent 524b8a45
......@@ -356,6 +356,7 @@ extension YHCustomerInformationQuestionnaireVC: UITableViewDelegate, UITableView
if let option = option {
self.answerDic[model.id] = [YHSurveyConditionOptionExtra(extra: "", optionId: option.id, title: option.title, optionKey: option.businessKey)]
if let currentIndex = self.displayedQuestions.firstIndex(where: { $0.id == model.id }) {
self.tableView.reloadSections(IndexSet(integer: currentIndex), with: .automatic)
if self.displayedQuestions.count > currentIndex + 1 {
let nextQuestion = self.displayedQuestions[currentIndex + 1]
if option.jumpQuestionId.count > 0, option.jumpQuestionId != nextQuestion.id {
......@@ -377,7 +378,7 @@ extension YHCustomerInformationQuestionnaireVC: UITableViewDelegate, UITableView
}
} else {
if let nextQuestion = self.findNextQuestion(allQuestions: self.allQuestions, displayedQuestions: self.displayedQuestions, answerDic: self.answerDic, currentIndex: currentIndex, currentOptionId: model.id) {
self.tableView.reloadSections(IndexSet(integer: currentIndex), with: .automatic)
self.tableView.performBatchUpdates { [weak self] in
guard let self = self else {
return
......
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