|
|
@ -79,6 +79,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
onLoad(options) { |
|
|
|
console.log('this.$route.query: ', this.$route); |
|
|
|
if (options.share && options.share === '1') { |
|
|
|
this.shareInit(options); |
|
|
|
} else { |
|
|
@ -177,13 +178,13 @@ export default { |
|
|
|
await this.getInitTasks(); // 获取初始数据 |
|
|
|
|
|
|
|
// 滚动到对应位置 |
|
|
|
let timer = null; |
|
|
|
timer = setInterval(() => { |
|
|
|
if (this.showScrollTo) { |
|
|
|
clearInterval(timer); |
|
|
|
this.$nextTick(() => this.$refs.timeLine.setScrollPosition()); |
|
|
|
} |
|
|
|
}, 500); |
|
|
|
// let timer = null; |
|
|
|
// timer = setInterval(() => { |
|
|
|
// if (this.showScrollTo) { |
|
|
|
// clearInterval(timer); |
|
|
|
// this.$nextTick(() => this.$refs.timeLine.setScrollPosition()); |
|
|
|
// } |
|
|
|
// }, 1000); |
|
|
|
}, |
|
|
|
|
|
|
|
// 切换了 颗粒度 || 角色时候 获取初始定期任务 |
|
|
@ -197,6 +198,7 @@ export default { |
|
|
|
arr.push(task); |
|
|
|
} |
|
|
|
}); |
|
|
|
that.$nextTick(() => that.$refs.timeLine.setScrollPosition()); |
|
|
|
if (detailId !== -1) { |
|
|
|
// 只要有1个真实的任务 就预加载上下周期的任务 |
|
|
|
const { pageCount } = that.$t.task; |
|
|
@ -349,6 +351,7 @@ export default { |
|
|
|
* @param {object | null} options |
|
|
|
*/ |
|
|
|
init(options) { |
|
|
|
console.log('options: ', options); |
|
|
|
if (!this.token) { |
|
|
|
// 不论有没有token都直接从userId获取token |
|
|
|
// token有过期时间 从本地获取可能是过期 干脆直接从userId获取 |
|
|
|