Commit 126cc654 authored by lujunye's avatar lujunye

优化跳转采购入库

parent eaba42aa
...@@ -381,7 +381,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD ...@@ -381,7 +381,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
case 4: case 4:
//采购入库 //采购入库
let vc = CGDListViewController() let vc = CGDListViewController()
vc.cgRK = true vc.selectIndex = 1
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2) // HUD.flash(.label("敬请期待"),delay: 1.2)
return return
...@@ -579,7 +579,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD ...@@ -579,7 +579,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
return return
case 124: //采购入库 case 124: //采购入库
let vc = CGDListViewController() let vc = CGDListViewController()
vc.cgRK = true vc.selectIndex = 1
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2) // HUD.flash(.label("敬请期待"),delay: 1.2)
return return
......
...@@ -14,7 +14,7 @@ class CGDListViewController: BaseViewController ,UISearchBarDelegate, SearchBar ...@@ -14,7 +14,7 @@ class CGDListViewController: BaseViewController ,UISearchBarDelegate, SearchBar
let vc = viewControllers[selectIndex] let vc = viewControllers[selectIndex]
vc.listView.mj_header?.beginRefreshing() vc.listView.mj_header?.beginRefreshing()
} }
var cgRK = false
@IBOutlet weak var contentView: UIView! @IBOutlet weak var contentView: UIView!
@IBOutlet weak var searchBg: UIView! @IBOutlet weak var searchBg: UIView!
func clearSearchAction() { func clearSearchAction() {
...@@ -84,9 +84,9 @@ class CGDListViewController: BaseViewController ,UISearchBarDelegate, SearchBar ...@@ -84,9 +84,9 @@ class CGDListViewController: BaseViewController ,UISearchBarDelegate, SearchBar
pagingViewController.didMove(toParent: self) pagingViewController.didMove(toParent: self)
pagingVC = pagingViewController pagingVC = pagingViewController
if cgRK {
pagingVC?.select(index: 1) pagingVC?.select(index: selectIndex)
}
} }
//MARK:--搜索按钮代理 //MARK:--搜索按钮代理
var keyword = "" 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