From 152da0e2d8cd3bd522fb04d1114f0930c33c9fdf Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期四, 26 十月 2023 17:19:30 +0800 Subject: [PATCH] 修复BUG --- WanPai/Root/Course/VC/CourseInfoVC.swift | 14 +++----------- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/WanPai/Root/Course/VC/CourseInfoVC.swift b/WanPai/Root/Course/VC/CourseInfoVC.swift index fd9286d..db4c051 100644 --- a/WanPai/Root/Course/VC/CourseInfoVC.swift +++ b/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) } } -- Gitblit v1.7.1