a,领锁,点击+号时,如果获取网络时间失败,不进入下一页,提示必须联网 b. 开锁时:有网络时间则同步,无网络则不同步时间 c. 同步时间功能:必须有网才同步时间,确定和通通锁不一致 2、修改登录、注册、修改密码选择跟当前ip不是用一个国家的时候,弹窗提示
38 lines
1.3 KiB
Dart
Executable File
38 lines
1.3 KiB
Dart
Executable File
|
|
import 'package:get/get.dart';
|
|
import '../../../lockMian/entity/lockListInfo_entity.dart';
|
|
import '../checkingInSet/checkingInSet_entity.dart';
|
|
|
|
class CheckingInSetWorkdaySetState{// 2考勤设置信息 1考勤创建公司
|
|
|
|
CheckingInSetWorkdaySetState() {
|
|
Map map = Get.arguments;
|
|
pushType.value = map['pushType'];
|
|
if(pushType.value == '2'){
|
|
getKeyInfosData.value = map['getKeyInfosData'];
|
|
companyId.value = map['companyId'];
|
|
checkingInSetInfo.value = map['checkingInSetInfo'];
|
|
|
|
weekDays.value = checkingInSetInfo.value.workDay!;
|
|
isCustom.value = (checkingInSetInfo.value.attendanceType! == 0);
|
|
if(isCustom.value == false){
|
|
if(checkingInSetInfo.value.workDay!.length == 5){
|
|
isSingledayWeekend.value = 1;
|
|
}else if(checkingInSetInfo.value.workDay!.length == 6){
|
|
isSingledayWeekend.value = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
RxBool isCustom = true.obs; // 自定义
|
|
RxInt isSingledayWeekend = 2.obs; // 0单休 1双休
|
|
RxList<int> weekDays = <int>[].obs;// 工作天数
|
|
|
|
final Rx<LockListInfoItemEntity> getKeyInfosData = LockListInfoItemEntity().obs;
|
|
final Rx<CheckingInSetInfo> checkingInSetInfo = CheckingInSetInfo().obs;
|
|
final RxString companyId = ''.obs;
|
|
|
|
// var changeType = "3".obs;// 3修改workDay自定义 4修改workDay
|
|
|
|
RxString pushType = ''.obs;
|
|
} |