宽窄优行-由【嘉易行】项目成品而来
younger_times
2023-04-11 4356615a9252a987a62469331b1fcf91c102e24c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
//  EnterpriseMembersVC.swift
//  OKProject
//
//  Created by 无故事王国 on 2023/4/10.
//  Copyright © 2023 yangwang. All rights reserved.
//
 
import UIKit
 
class EnterpriseMembersVC: YYViewController {
 
    @IBOutlet weak var tf_name: UITextField!
    @IBOutlet weak var tableView: UITableView!
 
    override func viewDidLoad() {
        super.viewDidLoad()
        title = "企业成员"
 
        tableView.delegate = self
        tableView.dataSource = self
        tableView.separatorStyle = .none
        tableView.register(UINib(nibName: "EnterpriseMembersTCell", bundle: nil), forCellReuseIdentifier: "_EnterpriseMembersTCell")
    }
 
    @IBAction func queryAction(_ sender: Any) {
        guard !tf_name.isEmpty else {
            alert(text: "请输入姓名");return
        }
    }
}
 
extension EnterpriseMembersVC:UITableViewDelegate{
    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        let vc = EnterpriseMembersDetailVC()
        yy_push(vc: vc)
    }
}
 
extension EnterpriseMembersVC:UITableViewDataSource{
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: "_EnterpriseMembersTCell") as! EnterpriseMembersTCell
 
        return cell
    }
 
    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 30
    }
}