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

This commit is contained in:
rockfang 2022-05-24 10:48:34 +08:00 committed by GitHub
parent 56e0ea802d
commit 7fc3664ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

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

View File

@ -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

View File

@ -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