From 9dc1517115471e7df450d7ec67276c4b1ccef825 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Fri, 8 May 2020 13:27:36 +0800 Subject: [PATCH] Fix data loading on file management detail page --- .../pages/resource/pages/file/pages/details/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue index 6875cd4b2e..b4ee720d12 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue @@ -118,7 +118,7 @@ * up */ _onUp: _.debounce(function () { - this.loadingIndex = this.loadingIndex - 2 + this.loadingIndex = this.loadingIndex - 3 console.log('_onUp') this._editorOff() @@ -131,7 +131,7 @@ * down */ _onDown: _.debounce(function () { - this.loadingIndex = this.loadingIndex + 2 + this.loadingIndex = this.loadingIndex + 3 console.log('_onDown') this._editorOff() @@ -166,11 +166,11 @@ // down if ((scrollTop + h) > totalHeight) { if (this.isData) { - this._onDown() + // this._onDown() } } // up - if (scrollTop < 2) { + if (scrollTop < 3) { if (this.loadingIndex > 0) { this._onUp() } @@ -210,7 +210,7 @@ return { id: this.$route.params.id, 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`) } } },