This commit is contained in:
DDIsFriend
2023-09-13 10:40:52 +08:00
parent 220155ce89
commit ae77bb509b
4 changed files with 59 additions and 31 deletions

View File

@@ -825,12 +825,6 @@ extension RescueIsIngController : UITableViewDelegate,UITableViewDataSource {
})
}
if (model.taskOrderStatus ?? 0) >= 12001 {
cell?.dispatchButton.isHidden = true
}else{
cell?.dispatchButton.isHidden = false
}
cell?.dispatchButton.rx.tap
.observe(on: MainScheduler.instance)
.subscribe(onNext: {[weak self] _ in
@@ -852,7 +846,7 @@ extension RescueIsIngController : UITableViewDelegate,UITableViewDataSource {
WEBTOOL.open(name: .reporting,appending: "&queryType=\(OrderTypeEnum.TO_RESCUE.rawValue)&userOrderId=\(model.userOrderId)&orderCode=\(model.orderCode)")
})
.disposed(by: cell!.disposeBag)
//
if USERP.canWaitModifyDispatchBtn == true {
cell?.dispatchButton.isHidden = false
cell?.dispatchButton.snp.updateConstraints({ make in
@@ -890,6 +884,14 @@ extension RescueIsIngController : UITableViewDelegate,UITableViewDataSource {
make.height.equalTo(auto(30))
})
}
//
if (model.taskOrderStatus ?? 0) >= 12001 {
cell?.dispatchButton.isHidden = true
}else{
cell?.dispatchButton.isHidden = false
}
return cell!
}