fix:修复开锁页-考勤-设置-员工 删除后点编辑后打卡方式在有上,应显示无处。之前已修复又出现
This commit is contained in:
parent
3b606d0adf
commit
6041290ebd
@ -6,7 +6,6 @@ import '../checkingInSetStaffList/checkingInStaffList_entity.dart';
|
||||
import 'checkingInAddStaffSelectKey_entity.dart';
|
||||
|
||||
class CheckingInAddStaffState {
|
||||
|
||||
CheckingInAddStaffState() {
|
||||
final Map<dynamic, dynamic> map = Get.arguments;
|
||||
getKeyInfosData.value = map['getKeyInfosData'];
|
||||
@ -43,8 +42,15 @@ class CheckingInAddStaffState {
|
||||
} else {
|
||||
appUnHaveAccount.value = true;
|
||||
}
|
||||
|
||||
if ((staffListItemData.value.cardStatus ?? 0) == 1) {
|
||||
//打卡方式是否是正常状态
|
||||
appUnHaveAccount.value = true;
|
||||
attendanceWayNumber.value = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
final Rx<LockListInfoItemEntity> getKeyInfosData =
|
||||
LockListInfoItemEntity().obs;
|
||||
final RxString companyId = ''.obs;
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:star_lock/flavors.dart';
|
||||
|
||||
import '../../../app_settings/app_colors.dart';
|
||||
import '../entity/lockListInfo_entity.dart';
|
||||
@ -34,7 +35,7 @@ class _LockListGroupViewState extends State<LockListGroupView> {
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
children: <Widget>[
|
||||
Container(
|
||||
color: widget.backgroundColor ?? Colors.white,
|
||||
height: 80.h,
|
||||
@ -54,23 +55,34 @@ class _LockListGroupViewState extends State<LockListGroupView> {
|
||||
}
|
||||
|
||||
List<Widget> _buildExpandRowList() {
|
||||
List<Widget> widgetList = [];
|
||||
final List<Widget> widgetList = <Widget>[];
|
||||
widgetList.add(GestureDetector(
|
||||
child: Container(
|
||||
width: ScreenUtil().screenWidth,
|
||||
color: widget.backgroundColor ?? Colors.white,
|
||||
child: Row(
|
||||
children: [
|
||||
children: <Widget>[
|
||||
SizedBox(width: 40.w),
|
||||
Text(
|
||||
widget.groupItem.groupName ?? '',
|
||||
style: widget.textStyle ??
|
||||
TextStyle(color: AppColors.blackColor, fontSize: 22.sp),
|
||||
),
|
||||
Expanded(
|
||||
child: SizedBox(
|
||||
F.sw(
|
||||
skyCall: () => Text(
|
||||
widget.groupItem.groupName ?? '',
|
||||
style: widget.textStyle ??
|
||||
TextStyle(
|
||||
color: AppColors.blackColor, fontSize: 22.sp),
|
||||
),
|
||||
xhjCall: () => Expanded(
|
||||
child: Text(
|
||||
widget.groupItem.groupName ?? '',
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: widget.textStyle ??
|
||||
TextStyle(
|
||||
color: AppColors.blackColor, fontSize: 22.sp),
|
||||
),
|
||||
)),
|
||||
SizedBox(
|
||||
width: 10.w,
|
||||
)),
|
||||
),
|
||||
AnimatedRotation(
|
||||
turns: _isExpanded ? -0.5 : 0,
|
||||
duration: _animationDuration,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user