未验证 提交 7fc3664e 编写于 作者: R rockfang 提交者: GitHub

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

上级 56e0ea80
......@@ -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)
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册