younger_times
2023-07-14 b932f704f6c04adc7d7b4104a06cbc09c8d49cb5
WanPai/Root/Other/View/StudentChooseView.swift
@@ -24,7 +24,7 @@
    @IBOutlet weak var cons_bottom: NSLayoutConstraint!
    @IBOutlet weak var btn_add: QMUIButton!
    
    private var clickClouse:(()->Void)!
    private var clickClouse:(([CourseDetailStudentModel])->Void)!
    private var needAddClouse:(()->Void)!
    private var itemType:ItemType!
    private var selectStudents = [CourseDetailStudentModel]()
@@ -46,10 +46,10 @@
    }
    
    static func show(itemType:ItemType,defaultStu:CourseDetailStudentModel? = nil,clickClouse:@escaping ()->Void,needAddClouse:@escaping ()->Void){
    static func show(itemType:ItemType,defaultStu:[CourseDetailStudentModel]? = nil,clickClouse:@escaping ([CourseDetailStudentModel])->Void,needAddClouse:@escaping ()->Void){
        let studentChooseView = StudentChooseView.jq_loadNibView()
        if defaultStu != nil{
            studentChooseView.selectStudents.append(defaultStu!)
            studentChooseView.selectStudents = defaultStu!
        }
        if itemType == .course{
            studentChooseView.tableView.register(UINib(nibName: "StudentInfoTCell", bundle: nil), forCellReuseIdentifier: "_StudentInfoTCell")
@@ -100,7 +100,7 @@
    }
    
    @IBAction func completeAction(_ sender: UIButton) {
        clickClouse!()
        clickClouse!(selectStudents)
        closeAction()
    }
}