60 lines
2.0 KiB
Dart
Executable File
60 lines
2.0 KiB
Dart
Executable File
|
|
import 'package:get/get.dart';
|
|
|
|
import '../../../../tools/commonDataManage.dart';
|
|
|
|
class AddFaceState { // 0永久 1显示 2循环
|
|
|
|
AddFaceState() {
|
|
Map map = Get.arguments;
|
|
lockId.value = map['lockId'];
|
|
addType.value = map['addType'];
|
|
faceName.value = map['faceName'];
|
|
faceType.value = map['faceType'];
|
|
startDate.value = map['startDate'];
|
|
lockId.value = map['lockId'];
|
|
weekDay.value = map['cyclicConfig'];
|
|
fromType.value = map['fromType'];
|
|
isAdministrator.value = map['isAdministrator'];
|
|
startDate.value = map['startDate'];
|
|
// 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 faceNumber = ''.obs;
|
|
|
|
final RxInt lockId = 0.obs;
|
|
final RxString endDate = ''.obs;
|
|
final RxString addType = ''.obs;
|
|
final RxString faceName = ''.obs;
|
|
final RxInt faceType = 0.obs;
|
|
// final cyclicConfig = [].obs;
|
|
final RxString featureData = ''.obs;
|
|
final RxBool isClickAddFace = false.obs;
|
|
|
|
final RxString isCoerced = ''.obs;
|
|
final RxString isAdministrator = ''.obs;
|
|
final RxString startDate = ''.obs;
|
|
final RxList weekDay = [].obs;
|
|
final RxInt fromType = 0.obs;
|
|
final RxString effectiveDateTime = ''.obs; // 生效时间
|
|
final RxString failureDateTime = ''.obs; // 失效时间
|
|
final RxString selectType = '0'.obs;
|
|
}
|