无故事王国
2023-10-26 152da0e2d8cd3bd522fb04d1114f0930c33c9fdf
WanPai/Root/Course/VC/CourseInfoVC.swift
@@ -400,18 +400,10 @@
            if m.type == 1 && m.isType == 0{
               CommonAlertView.show(title: "提示", content: "确认请假?") { status in
                  if status{
                     Services.startCourceRreverse(courseId: m.id, time: weakSelf.currentDate.jq_format("yyyy-MM-dd"), stuId: stuId).subscribe(onNext: { data in
                     Services.startCourceRreverse(courseId: m.id, time: weakSelf.currentDate.jq_format("yyyy-MM-dd"), stuId: stuId).subscribe(onNext: {[weak self] data in
                        alertSuccess(msg: "请假成功")
                        weakSelf.tableView.reloadData()
//                        tableView.beginUpdates()
//                        weakSelf.weeklyCourseModel?.data.remove(at: indexPath.row)
//                        tableView.deleteRows(at: [indexPath], with: .automatic)
//                        tableView.endUpdates()
//                        weakSelf.cons_tableHei.constant = 58 + 70 * Double(weakSelf.weeklyCourseModel?.data.count ?? 0)
//                        UIView.animate(withDuration: 0.3) {
//                           weakSelf.view.layoutIfNeeded()
//                           weakSelf.viewDidLayoutSubviews()
//                        }
                        self?.getSelectDayData()
                     }).disposed(by: weakSelf.disposeBag)
                  }
               }