fix:修复 员工列表没有显示自定义头像
This commit is contained in:
parent
8d949e6a06
commit
c31afd3ef6
@ -145,9 +145,21 @@ class _CheckingInStaffListPageState extends State<CheckingInStaffListPage> {
|
||||
SizedBox(
|
||||
width: 20.w,
|
||||
),
|
||||
// CustomNetworkImage(url: staffListItem.headurl!, width: 40.w , height: 40.w),
|
||||
Image.asset(getTypeIcon(staffListItem.attendanceType!),
|
||||
width: 60.w, height: 60.w),
|
||||
if (staffListItem.headurl == null || staffListItem.headurl == '')
|
||||
Image.asset(
|
||||
getTypeIcon(staffListItem.attendanceType!),
|
||||
width: 60.w,
|
||||
height: 60.w,
|
||||
)
|
||||
else
|
||||
ClipRRect(
|
||||
borderRadius: BorderRadius.circular(100.w),
|
||||
child: Image.network(
|
||||
staffListItem.headurl!,
|
||||
width: 60.w,
|
||||
height: 60.w,
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: 20.w,
|
||||
),
|
||||
|
||||
@ -1326,7 +1326,6 @@ class _LockDetailPageState extends State<LockDetailPage>
|
||||
state.iSOpenLock.value = true;
|
||||
state.openLockBtnState.value = 1;
|
||||
state.animationController!.forward();
|
||||
|
||||
AppLog.log('点击开锁');
|
||||
if (state.isOpenLockNeedOnline.value == 0) {
|
||||
// 不需要联网
|
||||
@ -1348,7 +1347,6 @@ class _LockDetailPageState extends State<LockDetailPage>
|
||||
state.iSOpenLock.value = false;
|
||||
state.openLockBtnState.value = 1;
|
||||
state.animationController!.forward();
|
||||
|
||||
EasyLoading.showToast('正在尝试闭锁……'.tr, duration: 2000.milliseconds);
|
||||
AppLog.log('长按闭锁');
|
||||
if (state.isOpenLockNeedOnline.value == 0) {
|
||||
|
||||
@ -252,6 +252,11 @@ class LockListInfoItemEntity {
|
||||
data['hasGateway'] = hasGateway;
|
||||
return data;
|
||||
}
|
||||
|
||||
//是否是锁拥有者 也代表是超级管理员
|
||||
bool isLockOwnerBool(){
|
||||
return isLockOwner== 1;
|
||||
}
|
||||
}
|
||||
|
||||
class Bluetooth {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user