diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/sqlType.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/sqlType.vue index 49fb4a25257c55d584654e01d45fb2b4ddb39770..ecb7d2c8550055a6074df0bba4eca75a80766d07 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/sqlType.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/sqlType.vue @@ -20,7 +20,7 @@ v-model="sqlTypeId" :disabled="isDetails" @on-change="_handleSqlTypeChanged" - style="width: 90px;"> + style="width: 120px;"> { - this.datasourcesList = [] - this.datasourcesList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.datasourcesList = [] + this.datasourcesList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/index.vue index d168ce765739c123edfb79544e435ee1470c6a8a..1f28578504269f49a6a645d76986ef423009db9d 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/index.vue @@ -100,10 +100,14 @@ _getList (flag) { this.isLoading = !flag this.getProcessListP(this.searchParams).then(res => { - this.processListP = [] - this.processListP = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.processListP = [] + this.processListP = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/index.vue index 4bf169b85424b166a202134ce25dd7fad7adb777..7bcf9ac26b47a75b9d750495757c654b2ccc1017 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/index.vue @@ -105,10 +105,14 @@ _getProcessInstanceListP (flag) { this.isLoading = !flag this.getProcessInstance(this.searchParams).then(res => { - this.processInstanceList = [] - this.processInstanceList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.processInstanceList = [] + this.processInstanceList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/index.vue index 74121f5f5aeb7d99ba341e8b92a5eed079403d01..d9828c030ee7eb9099cd4454884bd531de333821 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/index.vue @@ -110,10 +110,14 @@ _getList (flag) { this.isLoading = !flag this.getProjectsList(this.searchParams).then(res => { - this.projectsList = [] - this.projectsList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.projectsList = [] + this.projectsList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/index.vue index de7f7738662797c0700834bece6499554cf802a5..8f1f93930750e46221a9600455d34b3f4fc8a6cb 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/index.vue @@ -91,9 +91,13 @@ _getList (flag) { this.isLoading = !flag this.getResourcesListP(this.searchParams).then(res => { - this.fileResourcesList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.fileResourcesList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/index.vue index c94a8dc598352f849ed32f5dbdfa50d9b88be3ff..df46d7f19f3840a12427c748a84c0fa4d65cd948 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/index.vue @@ -109,10 +109,14 @@ _getList (flag) { this.isLoading = !flag this.getUdfFuncListP(this.searchParams).then(res => { - this.udfFuncList = [] - this.udfFuncList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.udfFuncList = [] + this.udfFuncList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/index.vue index 8b8696651043e0a48256ce4604681b0bce364035..732c5a237e6b2616afd4c997ae22d4ae35c295f2 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/index.vue @@ -96,10 +96,14 @@ _getList (flag) { this.isLoading = !flag this.getResourcesListP(this.searchParams).then(res => { - this.udfResourcesList = [] - this.udfResourcesList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.udfResourcesList = [] + this.udfResourcesList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/index.vue index ed5bf2cb36c02a30c65080ac47e595ee2b3990cb..47ce14abd74600ab0b7b257437442e8b2a07967a 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/index.vue @@ -118,10 +118,14 @@ _getList (flag) { this.isLoading = !flag this.getQueueListP(this.searchParams).then(res => { - this.queueList = [] - this.queueList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.queueList = [] + this.queueList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue index 8063fd0c54a73adbd04a6261546b8da781277935..0c38f0a91115aa8f2be8ce6bcee62cadfb87f1f3 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue @@ -122,10 +122,14 @@ _getList (flag) { this.isLoading = !flag this.getTenantListP(this.searchParams).then(res => { - this.tenementList = [] - this.tenementList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.tenementList = [] + this.tenementList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue index b137de7f1a414b010d9ccf631761fb23bd9f6ddc..f8ad40df85b68b9504d72dadf9718772b5fe9d9d 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue @@ -120,10 +120,14 @@ _getList (flag) { this.isLoading = !flag this.getUsersListP(this.searchParams).then(res => { - this.userList = [] - this.userList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.userList = [] + this.userList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue index 76bbc32c7fc33c6f2ff9081f0bf2e05d4c759be2..e70ead46ce2b8f1913c2320a254b4d1d8af9dc32 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue @@ -122,10 +122,14 @@ _getList (flag) { this.isLoading = !flag this.getAlertgroupP(this.searchParams).then(res => { - this.alertgroupList = [] - this.alertgroupList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.alertgroupList = [] + this.alertgroupList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/index.vue index 10f493261cb0d4c34ed3a7ea771b84fc5f106d7a..54a0440c5e23e574f15d317c55034ce807a92dd3 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/index.vue @@ -121,10 +121,14 @@ _getList (flag) { this.isLoading = !flag this.getWorkerGroups(this.searchParams).then(res => { - this.workerGroupList = [] - this.workerGroupList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.workerGroupList = [] + this.workerGroupList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false }) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/user/pages/token/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/user/pages/token/index.vue index a9fbeb011215bae79b41c6db1bd56505f6967828..21d2becd3295ac0ff1760177211db39bdc02f0fc 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/user/pages/token/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/user/pages/token/index.vue @@ -122,10 +122,14 @@ _getList (flag) { this.isLoading = !flag this.getTokenListP(this.searchParams).then(res => { - this.tokenList = [] - this.tokenList = res.totalList - this.total = res.total - this.isLoading = false + if(this.searchParams.pageNo>1 && res.totalList.length == 0) { + this.searchParams.pageNo = this.searchParams.pageNo -1 + } else { + this.tokenList = [] + this.tokenList = res.totalList + this.total = res.total + this.isLoading = false + } }).catch(e => { this.isLoading = false })