| | |
| | | } |
| | | |
| | | class ActivityViewModel:RefreshModel<ActivityDetailPartModel>{ |
| | | var isAuth = BehaviorRelay<Int?>.init(value: nil) |
| | | override func api() -> (Observable<BaseResponse<[ActivityDetailPartModel]>>)? { |
| | | return Services.queryParticipantList(isAuth: 1) |
| | | return Services.queryParticipantList(isAuth: isAuth.value) |
| | | } |
| | | |
| | | } |
| | |
| | | setRx() |
| | | } |
| | | |
| | | static func show(itemType:ItemType,defaultStu:[Any]? = nil,clickClouse:@escaping ([Any])->Void,needAddClouse:@escaping ()->Void){ |
| | | static func show(itemType:ItemType,defaultStu:[Any]? = nil,isAuth:Int? = nil,clickClouse:@escaping ([Any])->Void,needAddClouse:@escaping ()->Void){ |
| | | let studentChooseView = StudentChooseView.jq_loadNibView() |
| | | if defaultStu != nil{ |
| | | studentChooseView.selectStudents = defaultStu! |
| | |
| | | studentChooseView.stuViewModel.beginRefresh() |
| | | }else{ |
| | | studentChooseView.actViewModel.configure(studentChooseView.tableView,needMore: false) |
| | | studentChooseView.actViewModel.isAuth.accept(isAuth) |
| | | studentChooseView.actViewModel.beginRefresh() |
| | | studentChooseView.cons_tableLeading.constant = 0 |
| | | studentChooseView.cons_tableTrailing.constant = 0 |