This commit is contained in:
parent
0a69eb9ff3
commit
713d07c828
|
@ -86,7 +86,8 @@ export default class acclist extends React.Component {
|
||||||
bachVisible: false,
|
bachVisible: false,
|
||||||
bachUrl: '',
|
bachUrl: '',
|
||||||
conditionalQuery: {}, //条件查询
|
conditionalQuery: {}, //条件查询
|
||||||
bachApiType: 1
|
bachApiType: 1,
|
||||||
|
lodging: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,6 +119,11 @@ export default class acclist extends React.Component {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
res,
|
res,
|
||||||
(req, msg) => {
|
(req, msg) => {
|
||||||
|
if (req.total > 0) {
|
||||||
|
this.setState({ lodging: false })
|
||||||
|
} else {
|
||||||
|
this.setState({ lodging: true })
|
||||||
|
}
|
||||||
this.setState({ distdata: req.data })
|
this.setState({ distdata: req.data })
|
||||||
this.setState({ dataCount: req.total })
|
this.setState({ dataCount: req.total })
|
||||||
},
|
},
|
||||||
|
@ -603,7 +609,11 @@ export default class acclist extends React.Component {
|
||||||
pageChange={(e) => {
|
pageChange={(e) => {
|
||||||
this.onPageChange(e)
|
this.onPageChange(e)
|
||||||
}}
|
}}
|
||||||
emptyText='查询 请输入【分销商】或【计划名称】或【key】进行查询'
|
emptyText={
|
||||||
|
this.state.lodging
|
||||||
|
? '抱歉,暂无相关数据记录'
|
||||||
|
: '查询 请输入【分销商】或【计划名称】或【key】进行查询'
|
||||||
|
}
|
||||||
countChange={(e) => {
|
countChange={(e) => {
|
||||||
this.onCountChange(e)
|
this.onCountChange(e)
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue