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