You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/05/24 02:48:39 UTC

[dolphinscheduler] branch dev updated: [Fix][UI] add assignment of totalPage (#10165)

This is an automated email from the ASF dual-hosted git repository.

zhongjiajie pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 7fc3664ec3 [Fix][UI] add assignment of totalPage (#10165)
7fc3664ec3 is described below

commit 7fc3664ec366ffc7abbd8732d47e56f0f313bab7
Author: rockfang <65...@qq.com>
AuthorDate: Tue May 24 10:48:34 2022 +0800

    [Fix][UI] add assignment of totalPage (#10165)
---
 dolphinscheduler-ui/src/views/data-quality/rule/use-table.ts            | 1 +
 dolphinscheduler-ui/src/views/data-quality/task-result/use-table.ts     | 1 +
 dolphinscheduler-ui/src/views/monitor/statistics/audit-log/use-table.ts | 1 +
 3 files changed, 3 insertions(+)

diff --git a/dolphinscheduler-ui/src/views/data-quality/rule/use-table.ts b/dolphinscheduler-ui/src/views/data-quality/rule/use-table.ts
index fbc10a7b7b..dac1f557eb 100644
--- a/dolphinscheduler-ui/src/views/data-quality/rule/use-table.ts
+++ b/dolphinscheduler-ui/src/views/data-quality/rule/use-table.ts
@@ -110,6 +110,7 @@ export function useTable(viewRuleEntry = (unusedRuleJson: string): void => {}) {
 
     const { state } = useAsyncState(
       queryRuleListPaging(data).then((res: RuleRes) => {
+        variables.totalPage = res.totalPage
         variables.tableData = res.totalList.map((item, unused) => {
           const ruleName =
             'data_quality.rule.' + item.name.substring(3, item.name.length - 1)
diff --git a/dolphinscheduler-ui/src/views/data-quality/task-result/use-table.ts b/dolphinscheduler-ui/src/views/data-quality/task-result/use-table.ts
index e5472e842f..5919d74eed 100644
--- a/dolphinscheduler-ui/src/views/data-quality/task-result/use-table.ts
+++ b/dolphinscheduler-ui/src/views/data-quality/task-result/use-table.ts
@@ -210,6 +210,7 @@ export function useTable() {
 
     const { state } = useAsyncState(
       queryExecuteResultListPaging(data).then((res: ResultListRes) => {
+        variables.totalPage = res.totalPage
         variables.tableData = res.totalList.map((item, unused) => {
           return {
             ...item
diff --git a/dolphinscheduler-ui/src/views/monitor/statistics/audit-log/use-table.ts b/dolphinscheduler-ui/src/views/monitor/statistics/audit-log/use-table.ts
index f45b2ee3dc..87e5215030 100644
--- a/dolphinscheduler-ui/src/views/monitor/statistics/audit-log/use-table.ts
+++ b/dolphinscheduler-ui/src/views/monitor/statistics/audit-log/use-table.ts
@@ -88,6 +88,7 @@ export function useTable() {
 
     const { state } = useAsyncState(
       queryAuditLogListPaging(data).then((res: AuditListRes) => {
+        variables.totalPage = res.totalPage
         variables.tableData = res.totalList.map((item, unused) => {
           return {
             ...item