无故事王国
2023-11-14 2a7b12af07d814030c1326f56fec6ebf0d11619f
WanPai/Root/Other/View/StudentChooseView.swift
@@ -19,8 +19,9 @@
}
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)
    }
    
}
@@ -63,7 +64,7 @@
      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!
@@ -88,6 +89,7 @@
            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