import 'package:get/get.dart'; import 'package:star_lock/tools/commonDataManage.dart'; class AddFingerprintState{ AddFingerprintState() { Map map = Get.arguments; lockId.value = map['lockId']; addType.value = map['addType']; fingerprintName.value = map['fingerprintName']; fingerprintType.value = map['fingerprintType']; isCoerced.value = map['isCoerced']; isAdministrator.value = map['isAdministrator']; startDate.value = map['startDate']; lockId.value = map['lockId']; weekDay.value = map['weekDay']; fromType.value = map['fromType']; effectiveDateTime.value = map['effectiveTime']; failureDateTime.value = map['failureTime']; selectType.value = map['selectType']; //循环类型下,结束时间加一天 if (selectType.value == '2') { endDate.value = "${int.parse(map["endDate"]) + CommonDataManage().dayLatestTime}"; } else { endDate.value = map['endDate']; } } RxBool ifCurrentScreen = true.obs; // 是否是当前界面,用于判断是否需要针对当前界面进行展示 RxBool ifAddState = false.obs;// 是否是添加状态,如果是添加状态,返回上级界面发送取消添加指令 RxBool ifConnectScuess = false.obs; RxInt maxRegCount = 0.obs;// 最大注册次数 RxInt regIndex = 0.obs;// 当前注册次数 RxString fingerprintNumber = ''.obs; final RxInt lockId = 0.obs; final RxString endDate = ''.obs; final RxString addType = ''.obs; final RxString fingerprintName = ''.obs; final RxString fingerprintType = ''.obs; final RxString isCoerced = ''.obs; final RxString isAdministrator = ''.obs; final RxString startDate = ''.obs; final RxList weekDay = [].obs; final RxInt fromType = 1.obs; final RxString effectiveDateTime = ''.obs; // 生效时间 final RxString failureDateTime = ''.obs; // 失效时间 final RxString selectType = '0'.obs;// 0永久 1显示 2循环 }