Commit 4e2a452df0dfce56a5b22614d7d4a727685d6b8f
1 parent
fbf1a178
1.修复刷脸人员
Showing
1 changed file
with
3 additions
and
3 deletions
src/mobile/common/CommobileList.js
| ... | ... | @@ -329,9 +329,9 @@ class CommobileList extends React.Component { |
| 329 | 329 | <ListView |
| 330 | 330 | dataSource={slaveData} |
| 331 | 331 | renderFooter={() => { |
| 332 | - const { isLoading, sEmployeeFace = 'A在卷凹车间已上班,B在卷凹车间已上班,C在卷凹车间已上班,D在卷凹车间已上班' } = this.state; | |
| 332 | + const { isLoading } = this.state; | |
| 333 | + const sEmployeeFace = commonUtils.isNotEmptyArr(slaveDataOld) ? slaveDataOld[0].sEmployeeFace : ''; | |
| 333 | 334 | |
| 334 | - // 1. 加载中:只显示加载中 | |
| 335 | 335 | if (isLoading) { |
| 336 | 336 | return ( |
| 337 | 337 | <div style={{ padding: 30, textAlign: 'center' }}> |
| ... | ... | @@ -341,7 +341,7 @@ class CommobileList extends React.Component { |
| 341 | 341 | } |
| 342 | 342 | |
| 343 | 343 | // 2. 加载完成 → 判断是不是指定页面 |
| 344 | - if (this.props.sModelsId === '172117190122117661213659540') { | |
| 344 | + if (this.props.sModelsId === '172117190122117661213659540' && sEmployeeFace) { | |
| 345 | 345 | const statusList = sEmployeeFace |
| 346 | 346 | ?.split(',') |
| 347 | 347 | ?.filter(item => item.trim() !== '') || []; | ... | ... |