Commit 126cc654 authored by lujunye's avatar lujunye

优化跳转采购入库

parent eaba42aa
......@@ -381,7 +381,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
case 4:
//采购入库
let vc = CGDListViewController()
vc.cgRK = true
vc.selectIndex = 1
self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
......@@ -579,7 +579,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
return
case 124: //采购入库
let vc = CGDListViewController()
vc.cgRK = true
vc.selectIndex = 1
self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
......
......@@ -14,7 +14,7 @@ class CGDListViewController: BaseViewController ,UISearchBarDelegate, SearchBar
let vc = viewControllers[selectIndex]
vc.listView.mj_header?.beginRefreshing()
}
var cgRK = false
@IBOutlet weak var contentView: UIView!
@IBOutlet weak var searchBg: UIView!
func clearSearchAction() {
......@@ -84,9 +84,9 @@ class CGDListViewController: BaseViewController ,UISearchBarDelegate, SearchBar
pagingViewController.didMove(toParent: self)
pagingVC = pagingViewController
if cgRK {
pagingVC?.select(index: 1)
}
pagingVC?.select(index: selectIndex)
}
//MARK:--搜索按钮代理
var keyword = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment