This commit is contained in:
wangsongsole 2022-08-10 17:35:33 +08:00
parent 0a69eb9ff3
commit 713d07c828
1 changed files with 12 additions and 2 deletions

View File

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