| | |
| | | } |
| | | |
| | | @IBAction func datetimeAction(_ sender: UIButton) { |
| | | CommonDatePickerView.show(before: 3, after: 0, type: .YM) {[weak self] year, month, day in |
| | | self?.btn_date.setTitle(String(format: "%ld年%02ld月>", year,month), for: .normal) |
| | | self?.viewModel.yearMonth.accept(String(format: "%ld-02ld", year,month)) |
| | | CommonDatePickerView.show(before: 3, after: 0, type: .YM) {[weak self] year, month, day,_,_ in |
| | | self?.btn_date.setTitle(String(format: "%ld年%02ld月>", year!,month!), for: .normal) |
| | | self?.viewModel.yearMonth.accept(String(format: "%ld-02ld", year!,month!)) |
| | | self?.viewModel.beginRefresh() |
| | | } |
| | | } |