From fbf1a17899d88da40026c7522bab5fb4c1209fba Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Fri, 22 May 2026 12:29:48 +0800 Subject: [PATCH] 1.手机端人员巡检增加已刷脸上班人员展示 --- src/mobile/common/CommobileList.js | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 64 insertions(+), 4 deletions(-) diff --git a/src/mobile/common/CommobileList.js b/src/mobile/common/CommobileList.js index 3e574b6..488b91d 100644 --- a/src/mobile/common/CommobileList.js +++ b/src/mobile/common/CommobileList.js @@ -328,10 +328,70 @@ class CommobileList extends React.Component {
( -
- {this.state.isLoading ? '加载中...' : '加载完毕'} -
)} + renderFooter={() => { + const { isLoading, sEmployeeFace = 'A在卷凹车间已上班,B在卷凹车间已上班,C在卷凹车间已上班,D在卷凹车间已上班' } = this.state; + + // 1. 加载中:只显示加载中 + if (isLoading) { + return ( +
+ 加载中... +
+ ); + } + + // 2. 加载完成 → 判断是不是指定页面 + if (this.props.sModelsId === '172117190122117661213659540') { + const statusList = sEmployeeFace + ?.split(',') + ?.filter(item => item.trim() !== '') || []; + + // 显示:加载完毕 + 员工状态列表 + return ( +
+ {/* 第一行:加载完毕 */} +
+ 加载完毕 +
+ + {/* 第二部分:员工状态卡片 */} +
+ {statusList.length === 0 ? ( +
暂无员工状态
+ ) : ( + statusList.map((item, index) => ( +
+ {item.trim()} +
+ )) + )} +
+
+ ); + } + + // 3. 其他页面:只显示加载完毕 + return ( +
+ 加载完毕 +
+ ); + }} renderRow={row} renderSeparator={separator} style={{ -- libgit2 0.22.2