Browse Source

[Fix][UI] add assignment of totalPage (#10165)

(cherry picked from commit 7fc3664ec3)
3.0.0/version-upgrade
rockfang 2 years ago committed by Jiajie Zhong
parent
commit
844ce4cdd7
  1. 1
      dolphinscheduler-ui/src/views/data-quality/rule/use-table.ts
  2. 1
      dolphinscheduler-ui/src/views/data-quality/task-result/use-table.ts
  3. 1
      dolphinscheduler-ui/src/views/monitor/statistics/audit-log/use-table.ts

1
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)

1
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

1
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

Loading…
Cancel
Save