     
     private func choseData(){
         tempviewmodellist.removeAll()
-        for (index,viewmodel) in listviewmodel.applycmMemberList.enumerated() {
+        selectIndex.removeAll()
+        for (_,viewmodel) in listviewmodel.applycmMemberList.enumerated() {
             guard let position = viewmodel.model?.position else {
                 continue
             }
             if (position + 3) == communityApplyStatus{
                 tempviewmodellist.append(viewmodel)
                 selectIndex.append(0)
-                originalIndex.append(index)
             }
         }
         tableview.reloadData()

    var isSelectAll:Bool = false
    
    var selectIndex = [Int]()
    
    var originalIndex = [Int]()
    
    override func viewDidLoad() {
        super.viewDidLoad()

        
            selectStatus = true
            btn.title = "下一步"
            btn.isEnabled = false
            let allselectBtn = UIBarButtonItem(title: "全选", style: .plain, target: nil, action: #selector(didClickSelectAllBtn(btn:)))
            navitem.rightBarButtonItems = [btn,allselectBtn]
            
