锁设置根据权限是否开启猫眼设置

This commit is contained in:
Daisy 2024-04-18 15:46:36 +08:00
parent b1a3634736
commit 74e81c004f
2 changed files with 10 additions and 7 deletions

View File

@ -137,6 +137,7 @@ class LockFeature {
int? wirelessKeyboard;
int? lightingTime;
int? passageMode;
int? isSupportCatEye;
int? hotelLockCardSystem;
int? appUnlockOnline;
int? bluetoothBroadcast;
@ -191,6 +192,7 @@ class LockFeature {
this.wirelessKeyboard,
this.lightingTime,
this.passageMode,
this.isSupportCatEye,
this.hotelLockCardSystem,
this.appUnlockOnline,
this.bluetoothBroadcast,
@ -246,6 +248,7 @@ class LockFeature {
wirelessKeyboard = json['wirelessKeyboard'];
lightingTime = json['lightingTime'];
passageMode = json['passageMode'];
isSupportCatEye = json['isSupportCatEye'];
hotelLockCardSystem = json['hotelLockCardSystem'];
appUnlockOnline = json['appUnlockOnline'];
bluetoothBroadcast = json['bluetoothBroadcast'];
@ -302,6 +305,7 @@ class LockFeature {
data['wirelessKeyboard'] = wirelessKeyboard;
data['lightingTime'] = lightingTime;
data['passageMode'] = passageMode;
data['isSupportCatEye'] = isSupportCatEye;
data['hotelLockCardSystem'] = hotelLockCardSystem;
data['appUnlockOnline'] = appUnlockOnline;
data['bluetoothBroadcast'] = bluetoothBroadcast;

View File

@ -377,8 +377,8 @@ class _LockSetPageState extends State<LockSetPage> with RouteAware {
});
})),
//
Visibility(
visible: true,
Obx(() => Visibility(
visible: state.lockFeature.value.isSupportCatEye == 1 ? true : false,
child: CommonItem(
leftTitel: TranslationLoader.lanKeys!.catEyeSet!.tr,
rightTitle: "",
@ -388,7 +388,7 @@ class _LockSetPageState extends State<LockSetPage> with RouteAware {
Get.toNamed(Routers.catEyeSetPage, arguments: {
'lockSetInfoData': state.lockSetInfoData.value
});
})),
}))),
// Obx(() =>
//
// Visibility(
@ -644,11 +644,10 @@ class _LockSetPageState extends State<LockSetPage> with RouteAware {
logic.openCheckingInData((checkingInInfoDataEntity) {
if (checkingInInfoDataEntity.data!.companyId == 0) {
// logic.showCupertinoAlertDialog(context);
ShowTipView().showIosTipWithContentDialog("创建公司后,考勤功能才能使用".tr, (){
ShowTipView().showIosTipWithContentDialog("创建公司后,考勤功能才能使用".tr, () {
//
Get.toNamed(Routers.checkInCreatCompanyPage, arguments: {
'lockSetInfoData': state.lockSetInfoData.value
});
Get.toNamed(Routers.checkInCreatCompanyPage,
arguments: {'lockSetInfoData': state.lockSetInfoData.value});
});
} else {
logic.setLockSetGeneralSetting();