2023-08-17 18:45:10 +08:00
|
|
|
|
|
|
|
|
|
2023-08-29 17:39:35 +08:00
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
import 'package:star_lock/main/lockMian/entity/lockInfoEntity.dart';
|
|
|
|
|
|
2023-08-17 18:45:10 +08:00
|
|
|
class LockSetState {
|
2023-09-07 18:36:16 +08:00
|
|
|
final getKeyInfosData = KeyInfos().obs;
|
2023-08-17 18:45:10 +08:00
|
|
|
|
2023-09-09 18:33:37 +08:00
|
|
|
var isAttendance = 1.obs;// 是否开启考勤
|
|
|
|
|
var isLockPickingReminder = 1.obs;// 是否开启开锁提醒
|
|
|
|
|
|
2023-08-29 17:39:35 +08:00
|
|
|
LockSetState() {
|
|
|
|
|
getKeyInfosData.value = Get.arguments as KeyInfos;
|
2023-09-09 18:33:37 +08:00
|
|
|
isAttendance.value = getKeyInfosData.value.isAttendance!;
|
|
|
|
|
isLockPickingReminder.value = getKeyInfosData.value.monitorFlag!;
|
2023-08-29 17:39:35 +08:00
|
|
|
}
|
2023-08-17 18:45:10 +08:00
|
|
|
}
|