|
@ -44,21 +44,12 @@ export default { |
|
|
this.handleFindPoint(); |
|
|
this.handleFindPoint(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onPageScroll(res) { |
|
|
|
|
|
// console.log('页面滚动了', res.scrollTop); |
|
|
|
|
|
if (res.scrollTop > 0) { |
|
|
|
|
|
this.setWeekMode(true); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.setWeekMode(false); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onReady() { |
|
|
onReady() { |
|
|
this.calendar = this.$refs.calendar; |
|
|
this.calendar = this.$refs.calendar; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
...mapMutations('project', ['setProjects', 'setDotList', 'setWeekMode']), |
|
|
...mapMutations('project', ['setProjects', 'setDotList']), |
|
|
|
|
|
|
|
|
// 获取项目列表 |
|
|
// 获取项目列表 |
|
|
async getProjects(start = this.$moment().startOf('day').valueOf(), end = this.$moment().endOf('day').valueOf()) { |
|
|
async getProjects(start = this.$moment().startOf('day').valueOf(), end = this.$moment().endOf('day').valueOf()) { |
|
|