import 'package:get/get.dart'; import '../../../../lockMian/entity/lockListInfo_entity.dart'; import '../checkingInSetStaffList/checkingInStaffList_entity.dart'; class CheckingInStaffDetailState{ CheckingInStaffDetailState() { Map map = Get.arguments; staffListItemData.value = map['staffListItem']; getKeyInfosData.value = map['getKeyInfosData']; companyId.value = map['companyId']; switch(staffListItemData.value.attendanceType){ case 1: attendanceType.value = 'APP'; break; case 2: attendanceType.value = '密码'.tr; break; case 3: attendanceType.value = '卡'.tr; break; case 4: attendanceType.value = '指纹'.tr; break; } } final Rx getKeyInfosData = LockListInfoItemEntity().obs; final RxString companyId = ''.obs; final Rx staffListItemData = CheckingInAddStaffListItemEntity().obs; RxString attendanceType = ''.obs; }