From cdd5b449130ea4d7223fde4f414a11a7d0c33d6d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 07 三月 2024 17:52:16 +0800 Subject: [PATCH] 2024-03-07 --- src/tabviews/custom/components/table/normal-table/index.jsx | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/tabviews/custom/components/table/normal-table/index.jsx b/src/tabviews/custom/components/table/normal-table/index.jsx index 498c717..92c7018 100644 --- a/src/tabviews/custom/components/table/normal-table/index.jsx +++ b/src/tabviews/custom/components/table/normal-table/index.jsx @@ -390,6 +390,7 @@ this.setState({ data: [], selectedData: [], + loading: false, total: 0 }) @@ -428,13 +429,11 @@ let _orderBy = orderBy || setting.order let param = UtilsDM.getQueryDataParams(setting, searches, _orderBy, pageIndex, pageSize, BID) - if (param.func === 'sPC_Get_TableData') { - this.requestId = param.timestamp - } + this.requestId = config.uuid + new Date().getTime() - let result = await Api.genericInterface(param) + let result = await Api.genericInterface(param, '', '', this.requestId) if (result.status) { - if (result.timestamp_back && this.requestId !== result.timestamp_back) return + if (result.$requestId && this.requestId !== result.$requestId) return this.loaded = true if (config.$cache && type === 'init') { -- Gitblit v1.8.0