//
|
// 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
|
}
|
}
|