| | |
| | | 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) |
| | | } |
| | | } |