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,9 +329,9 @@ class CommobileList extends React.Component { | ||
| 329 | <ListView | 329 | <ListView |
| 330 | dataSource={slaveData} | 330 | dataSource={slaveData} |
| 331 | renderFooter={() => { | 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 | if (isLoading) { | 335 | if (isLoading) { |
| 336 | return ( | 336 | return ( |
| 337 | <div style={{ padding: 30, textAlign: 'center' }}> | 337 | <div style={{ padding: 30, textAlign: 'center' }}> |
| @@ -341,7 +341,7 @@ class CommobileList extends React.Component { | @@ -341,7 +341,7 @@ class CommobileList extends React.Component { | ||
| 341 | } | 341 | } |
| 342 | 342 | ||
| 343 | // 2. 加载完成 → 判断是不是指定页面 | 343 | // 2. 加载完成 → 判断是不是指定页面 |
| 344 | - if (this.props.sModelsId === '172117190122117661213659540') { | 344 | + if (this.props.sModelsId === '172117190122117661213659540' && sEmployeeFace) { |
| 345 | const statusList = sEmployeeFace | 345 | const statusList = sEmployeeFace |
| 346 | ?.split(',') | 346 | ?.split(',') |
| 347 | ?.filter(item => item.trim() !== '') || []; | 347 | ?.filter(item => item.trim() !== '') || []; |