Commit 0c9c5629 authored by 刘俊宏's avatar 刘俊宏

同上

parent 4c0f7d31
......@@ -175,7 +175,7 @@ class WorkSelectTimeView: UIView ,TimeSelectViewDelgate{
}
TimeLbl = timeLbl
}
weak var TimeLbl:UILabel?
var TimeLbl:UILabel?
func selectMoreDate(beginDate: Date, endginDate: Date) {
print("选择日期·····")
let timeInterval:TimeInterval = beginDate.timeIntervalSince1970
......@@ -190,7 +190,6 @@ class WorkSelectTimeView: UIView ,TimeSelectViewDelgate{
BeginDate = nil
EndDate = nil
CalendarV!.clearTheSelect()
}
var BeginDate: Date! = nil
var EndDate: Date! = nil
......
......@@ -94,13 +94,16 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
loadData()
break
case 1004:
let timeInterval:TimeInterval = beginDate!.timeIntervalSince1970
let timeIntervalEnd:TimeInterval = endginDate!.timeIntervalSince1970
let timestr = dayByDouble(sender: timeInterval) + "-" + dayByDouble(sender: timeIntervalEnd)
topNavBtn.setTitle(timestr, for: .normal)
endTime = endginDate!
starTime = beginDate!
loadData()
if beginDate != nil && endginDate != nil {
let timeInterval:TimeInterval = beginDate!.timeIntervalSince1970
let timeIntervalEnd:TimeInterval = endginDate!.timeIntervalSince1970
let timestr = dayByDouble(sender: timeInterval) + "-" + dayByDouble(sender: timeIntervalEnd)
topNavBtn.setTitle(timestr, for: .normal)
endTime = endginDate!
starTime = beginDate!
loadData()
}
break
default:
break
......
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