锁设置根据权限是否开启猫眼设置
This commit is contained in:
parent
b1a3634736
commit
74e81c004f
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user