From 713d07c828cad560cf3e98c38887dddcdd62117c Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Wed, 10 Aug 2022 17:35:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/keyList/index.jsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/pages/plan/keyList/index.jsx b/src/pages/plan/keyList/index.jsx index f203984e..096c2ebb 100644 --- a/src/pages/plan/keyList/index.jsx +++ b/src/pages/plan/keyList/index.jsx @@ -86,7 +86,8 @@ export default class acclist extends React.Component { bachVisible: false, bachUrl: '', conditionalQuery: {}, //条件查询 - bachApiType: 1 + bachApiType: 1, + lodging: false } } @@ -118,6 +119,11 @@ export default class acclist extends React.Component { handelResponse( res, (req, msg) => { + if (req.total > 0) { + this.setState({ lodging: false }) + } else { + this.setState({ lodging: true }) + } this.setState({ distdata: req.data }) this.setState({ dataCount: req.total }) }, @@ -603,7 +609,11 @@ export default class acclist extends React.Component { pageChange={(e) => { this.onPageChange(e) }} - emptyText='查询 请输入【分销商】或【计划名称】或【key】进行查询' + emptyText={ + this.state.lodging + ? '抱歉,暂无相关数据记录' + : '查询 请输入【分销商】或【计划名称】或【key】进行查询' + } countChange={(e) => { this.onCountChange(e) }}