fix:增加电子反锁,双重认证,双锁联动显示支持项
This commit is contained in:
parent
9682c558b7
commit
b577825ff7
@ -151,6 +151,9 @@ class LockFeature {
|
||||
this.stayWarn,
|
||||
this.abnormalWarn,
|
||||
this.isSupportBackupBattery,
|
||||
this.isElectronicAntiLock,
|
||||
this.isVisualDoorBellCode,
|
||||
this.isDoubleLockLinkage,
|
||||
});
|
||||
|
||||
LockFeature.fromJson(Map<String, dynamic> json) {
|
||||
@ -208,6 +211,9 @@ class LockFeature {
|
||||
stayWarn = json['stayWarn'];
|
||||
abnormalWarn = json['abnormalWarn'];
|
||||
isSupportBackupBattery = json['isSupportBackupBattery'];
|
||||
isElectronicAntiLock = json['isElectronicAntiLock'];
|
||||
isVisualDoorBellCode = json['isVisualDoorBellCode'];
|
||||
isDoubleLockLinkage = json['isDoubleLockLinkage'];
|
||||
}
|
||||
|
||||
int? password;
|
||||
@ -264,6 +270,9 @@ class LockFeature {
|
||||
int? stayWarn;
|
||||
int? abnormalWarn;
|
||||
int? isSupportBackupBattery;
|
||||
int? isElectronicAntiLock;
|
||||
int? isVisualDoorBellCode;
|
||||
int? isDoubleLockLinkage;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
@ -321,6 +330,9 @@ class LockFeature {
|
||||
data['stayWarn'] = stayWarn;
|
||||
data['abnormalWarn'] = abnormalWarn;
|
||||
data['isSupportBackupBattery'] = isSupportBackupBattery;
|
||||
data['isElectronicAntiLock'] = isElectronicAntiLock;
|
||||
data['isVisualDoorBellCode'] = isVisualDoorBellCode;
|
||||
data['isDoubleLockLinkage'] = isDoubleLockLinkage;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
@ -322,19 +322,25 @@ class _LockSetPageState extends State<LockSetPage>
|
||||
}))),
|
||||
//todo 电子反锁、可视门铃码国际化
|
||||
// 电子反锁
|
||||
Obx(() => CommonItem(
|
||||
leftTitel: '电子反锁'.tr,
|
||||
rightTitle: '',
|
||||
isHaveLine: true,
|
||||
isHaveRightWidget: true,
|
||||
rightWidget: _elecAntiLockSwitch())),
|
||||
Obx(() => Visibility(
|
||||
visible: state.lockFeature.value.isElectronicAntiLock == 1,
|
||||
child: CommonItem(
|
||||
leftTitel: '电子反锁'.tr,
|
||||
rightTitle: '',
|
||||
isHaveLine: true,
|
||||
isHaveRightWidget: true,
|
||||
rightWidget: _elecAntiLockSwitch()),
|
||||
)),
|
||||
// 可视门铃码
|
||||
Obx(() => CommonItem(
|
||||
leftTitel: '可视门铃码'.tr,
|
||||
rightTitle: '',
|
||||
isHaveLine: true,
|
||||
isHaveRightWidget: true,
|
||||
rightWidget: _visualDoorbellCodeSwitch())),
|
||||
Obx(() => Visibility(
|
||||
visible: state.lockFeature.value.isVisualDoorBellCode == 1,
|
||||
child: CommonItem(
|
||||
leftTitel: '可视门铃码'.tr,
|
||||
rightTitle: '',
|
||||
isHaveLine: true,
|
||||
isHaveRightWidget: true,
|
||||
rightWidget: _visualDoorbellCodeSwitch()),
|
||||
)),
|
||||
SizedBox(height: 10.h),
|
||||
// 常开模式
|
||||
Obx(() => Visibility(
|
||||
@ -364,14 +370,17 @@ class _LockSetPageState extends State<LockSetPage>
|
||||
isHaveRightWidget: true,
|
||||
rightWidget: _dualAuthSwitch()))),
|
||||
// 双锁联动
|
||||
CommonItem(
|
||||
leftTitel: '双锁联动'.tr,
|
||||
rightTitle: '未关联'.tr,
|
||||
isHaveLine: true,
|
||||
isHaveDirection: true,
|
||||
action: () {
|
||||
Get.toNamed(Routers.doubleLockLinkPage);
|
||||
}),
|
||||
Visibility(
|
||||
visible: state.lockFeature.value.isDoubleLockLinkage == 1,
|
||||
child: CommonItem(
|
||||
leftTitel: '双锁联动'.tr,
|
||||
rightTitle: '未关联'.tr,
|
||||
isHaveLine: true,
|
||||
isHaveDirection: true,
|
||||
action: () {
|
||||
Get.toNamed(Routers.doubleLockLinkPage);
|
||||
}),
|
||||
),
|
||||
// 远程开锁
|
||||
Obx(() => Visibility(
|
||||
visible: state.lockFeature.value.remoteUnlock == 1,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user