mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 21:28:00 +08:00
[Fix][UI] add assignment of totalPage (#10165)
This commit is contained in:
parent
56e0ea802d
commit
7fc3664ec3
@ -110,6 +110,7 @@ export function useTable(viewRuleEntry = (unusedRuleJson: string): void => {}) {
|
|||||||
|
|
||||||
const { state } = useAsyncState(
|
const { state } = useAsyncState(
|
||||||
queryRuleListPaging(data).then((res: RuleRes) => {
|
queryRuleListPaging(data).then((res: RuleRes) => {
|
||||||
|
variables.totalPage = res.totalPage
|
||||||
variables.tableData = res.totalList.map((item, unused) => {
|
variables.tableData = res.totalList.map((item, unused) => {
|
||||||
const ruleName =
|
const ruleName =
|
||||||
'data_quality.rule.' + item.name.substring(3, item.name.length - 1)
|
'data_quality.rule.' + item.name.substring(3, item.name.length - 1)
|
||||||
|
@ -210,6 +210,7 @@ export function useTable() {
|
|||||||
|
|
||||||
const { state } = useAsyncState(
|
const { state } = useAsyncState(
|
||||||
queryExecuteResultListPaging(data).then((res: ResultListRes) => {
|
queryExecuteResultListPaging(data).then((res: ResultListRes) => {
|
||||||
|
variables.totalPage = res.totalPage
|
||||||
variables.tableData = res.totalList.map((item, unused) => {
|
variables.tableData = res.totalList.map((item, unused) => {
|
||||||
return {
|
return {
|
||||||
...item
|
...item
|
||||||
|
@ -88,6 +88,7 @@ export function useTable() {
|
|||||||
|
|
||||||
const { state } = useAsyncState(
|
const { state } = useAsyncState(
|
||||||
queryAuditLogListPaging(data).then((res: AuditListRes) => {
|
queryAuditLogListPaging(data).then((res: AuditListRes) => {
|
||||||
|
variables.totalPage = res.totalPage
|
||||||
variables.tableData = res.totalList.map((item, unused) => {
|
variables.tableData = res.totalList.map((item, unused) => {
|
||||||
return {
|
return {
|
||||||
...item
|
...item
|
||||||
|
Loading…
Reference in New Issue
Block a user