|
|
@ -54,7 +54,6 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
onShow() { |
|
|
|
console.log('index onShow'); |
|
|
|
if (!this.token) return; |
|
|
|
this.getProjects(); |
|
|
|
}, |
|
|
@ -76,15 +75,18 @@ export default { |
|
|
|
this.days = [{ date: '2021-08-03' }, { date: '2021-08-04' }, { date: '2021-08-06' }]; |
|
|
|
}, |
|
|
|
|
|
|
|
// 点击了某个日期 |
|
|
|
onDateChange(event) { |
|
|
|
console.log(event); |
|
|
|
const day = this.$moment(event.fullDate); |
|
|
|
const start = day.startOf('date').valueOf(); |
|
|
|
const end = day.endOf('date').valueOf(); |
|
|
|
this.getProjects(start, end); |
|
|
|
}, |
|
|
|
|
|
|
|
// 受到展示alert的消息 |
|
|
|
// 收到展示alert的消息 |
|
|
|
onShowAlert(event) { |
|
|
|
this.alert.description = event || '发生了点小意外'; |
|
|
|
this.alert.show = true; |
|
|
|
|
|
|
|
setTimeout(() => (this.alert.show = false), 10000); |
|
|
|
}, |
|
|
|
}, |
|
|
|