|
@ -56,12 +56,10 @@ export default { |
|
|
|
|
|
|
|
|
// 滚动到顶部 |
|
|
// 滚动到顶部 |
|
|
async handleScrollTop() { |
|
|
async handleScrollTop() { |
|
|
console.log('this.topEnd: ', this.topEnd); |
|
|
|
|
|
if (this.topEnd) return; |
|
|
if (this.topEnd) return; |
|
|
const startTime = this.tasks[0].planStart - 0; |
|
|
const startTime = this.tasks[0].planStart - 0; |
|
|
if (this.tasks[0].plugins && this.tasks[0].plugins.length === 0 && !this.topEnd) { |
|
|
if (this.tasks[0].plugins && this.tasks[0].plugins.length === 0 && !this.topEnd) { |
|
|
// 没有数据时 自动加载数据 |
|
|
// 没有数据时 自动加载数据 |
|
|
console.log('没有数据时: '); |
|
|
|
|
|
const addTasks = [ |
|
|
const addTasks = [ |
|
|
{ |
|
|
{ |
|
|
panel: {}, |
|
|
panel: {}, |
|
@ -82,7 +80,6 @@ export default { |
|
|
this.setUpTasks([...addTasks.concat(this.tasks)]); |
|
|
this.setUpTasks([...addTasks.concat(this.tasks)]); |
|
|
} else { |
|
|
} else { |
|
|
// 有数据时 |
|
|
// 有数据时 |
|
|
console.log('有数据时: '); |
|
|
|
|
|
const upQuery = { |
|
|
const upQuery = { |
|
|
timeNode: startTime, |
|
|
timeNode: startTime, |
|
|
queryType: 0, |
|
|
queryType: 0, |
|
|