| | |
| | | var startClouseHomeModel:StartClouseHomeModel? |
| | | var weeklyCourseModels = [WeeklyCourseModel]() |
| | | private var currentDate = Date() |
| | | |
| | | private var unDispatchNum:Int? |
| | | private var mentals = [StudentMedalModel]() |
| | | |
| | | private var pageMenu:SPPageMenu = { |
| | |
| | | |
| | | let attribute = AttributedStringbuilder.build().add(string: "未分配课时", withFont: UIFont.systemFont(ofSize: 14), withColor: Def_ThemeColor).underLine(color: Def_ThemeColor).mutableAttributedString |
| | | btn.setAttributedTitle(attribute, for: .normal) |
| | | |
| | | btn.addTarget(self, action: #selector(dispatchCourseAction), for: .touchUpInside) |
| | | return btn |
| | | |
| | | }() |
| | |
| | | } |
| | | }).disposed(by: disposeBag) |
| | | |
| | | Services.weeksOfGetHours().subscribe(onNext: {[weak self] data in |
| | | self?.btn_dispatchCourse.isHidden = data.data == 0 |
| | | self?.unDispatchNum = data.data |
| | | }) { error in |
| | | |
| | | }.disposed(by: disposeBag) |
| | | getSelectDayData() |
| | | } |
| | | } |
| | |
| | | view_container.jq_addCorners(corner: [.topLeft,.topRight], radius: 42) |
| | | } |
| | | |
| | | @objc func dispatchCourseAction(){ |
| | | CourseUnAssignView.show(startClouseHomeModel?.courseList ?? [], num: unDispatchNum ?? 0) |
| | | } |
| | | |
| | | @objc func addStudentAction() { |
| | | let vc = AddStudentVC(type: .course) |
| | | push(vc: vc) |