17 lines
492 B
Dart
17 lines
492 B
Dart
|
|
|
|
import 'package:get/get.dart';
|
|
import 'package:star_lock/main/lockMian/entity/lockInfoEntity.dart';
|
|
|
|
class LockSetState {
|
|
final getKeyInfosData = KeyInfos().obs;
|
|
|
|
var isAttendance = 1.obs;// 是否开启考勤
|
|
var isLockPickingReminder = 1.obs;// 是否开启开锁提醒
|
|
|
|
LockSetState() {
|
|
getKeyInfosData.value = Get.arguments as KeyInfos;
|
|
isAttendance.value = getKeyInfosData.value.isAttendance!;
|
|
isLockPickingReminder.value = getKeyInfosData.value.monitorFlag!;
|
|
}
|
|
} |