未验证 提交 8e080ef6 编写于 作者: X xingchun-chen 提交者: GitHub

Merge pull request #2633 from break60/dev

Fix data loading on file management detail page
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
* up * up
*/ */
_onUp: _.debounce(function () { _onUp: _.debounce(function () {
this.loadingIndex = this.loadingIndex - 2 this.loadingIndex = this.loadingIndex - 3
console.log('_onUp') console.log('_onUp')
this._editorOff() this._editorOff()
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
* down * down
*/ */
_onDown: _.debounce(function () { _onDown: _.debounce(function () {
this.loadingIndex = this.loadingIndex + 2 this.loadingIndex = this.loadingIndex + 3
console.log('_onDown') console.log('_onDown')
this._editorOff() this._editorOff()
...@@ -166,11 +166,11 @@ ...@@ -166,11 +166,11 @@
// down // down
if ((scrollTop + h) > totalHeight) { if ((scrollTop + h) > totalHeight) {
if (this.isData) { if (this.isData) {
this._onDown() // this._onDown()
} }
} }
// up // up
if (scrollTop < 2) { if (scrollTop < 3) {
if (this.loadingIndex > 0) { if (this.loadingIndex > 0) {
this._onUp() this._onUp()
} }
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
return { return {
id: this.$route.params.id, id: this.$route.params.id,
skipLineNum: parseInt(`${this.loadingIndex ? this.loadingIndex + '000' : 0}`), skipLineNum: parseInt(`${this.loadingIndex ? this.loadingIndex + '000' : 0}`),
limit: parseInt(`${this.loadingIndex ? this.loadingIndex + 2 : 2}000`) limit: parseInt(`${this.loadingIndex ? this.loadingIndex + 3 : 3}000`)
} }
} }
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册