锁设置根据权限是否开启猫眼设置
This commit is contained in:
parent
b1a3634736
commit
74e81c004f
@ -137,6 +137,7 @@ class LockFeature {
|
|||||||
int? wirelessKeyboard;
|
int? wirelessKeyboard;
|
||||||
int? lightingTime;
|
int? lightingTime;
|
||||||
int? passageMode;
|
int? passageMode;
|
||||||
|
int? isSupportCatEye;
|
||||||
int? hotelLockCardSystem;
|
int? hotelLockCardSystem;
|
||||||
int? appUnlockOnline;
|
int? appUnlockOnline;
|
||||||
int? bluetoothBroadcast;
|
int? bluetoothBroadcast;
|
||||||
@ -191,6 +192,7 @@ class LockFeature {
|
|||||||
this.wirelessKeyboard,
|
this.wirelessKeyboard,
|
||||||
this.lightingTime,
|
this.lightingTime,
|
||||||
this.passageMode,
|
this.passageMode,
|
||||||
|
this.isSupportCatEye,
|
||||||
this.hotelLockCardSystem,
|
this.hotelLockCardSystem,
|
||||||
this.appUnlockOnline,
|
this.appUnlockOnline,
|
||||||
this.bluetoothBroadcast,
|
this.bluetoothBroadcast,
|
||||||
@ -246,6 +248,7 @@ class LockFeature {
|
|||||||
wirelessKeyboard = json['wirelessKeyboard'];
|
wirelessKeyboard = json['wirelessKeyboard'];
|
||||||
lightingTime = json['lightingTime'];
|
lightingTime = json['lightingTime'];
|
||||||
passageMode = json['passageMode'];
|
passageMode = json['passageMode'];
|
||||||
|
isSupportCatEye = json['isSupportCatEye'];
|
||||||
hotelLockCardSystem = json['hotelLockCardSystem'];
|
hotelLockCardSystem = json['hotelLockCardSystem'];
|
||||||
appUnlockOnline = json['appUnlockOnline'];
|
appUnlockOnline = json['appUnlockOnline'];
|
||||||
bluetoothBroadcast = json['bluetoothBroadcast'];
|
bluetoothBroadcast = json['bluetoothBroadcast'];
|
||||||
@ -302,6 +305,7 @@ class LockFeature {
|
|||||||
data['wirelessKeyboard'] = wirelessKeyboard;
|
data['wirelessKeyboard'] = wirelessKeyboard;
|
||||||
data['lightingTime'] = lightingTime;
|
data['lightingTime'] = lightingTime;
|
||||||
data['passageMode'] = passageMode;
|
data['passageMode'] = passageMode;
|
||||||
|
data['isSupportCatEye'] = isSupportCatEye;
|
||||||
data['hotelLockCardSystem'] = hotelLockCardSystem;
|
data['hotelLockCardSystem'] = hotelLockCardSystem;
|
||||||
data['appUnlockOnline'] = appUnlockOnline;
|
data['appUnlockOnline'] = appUnlockOnline;
|
||||||
data['bluetoothBroadcast'] = bluetoothBroadcast;
|
data['bluetoothBroadcast'] = bluetoothBroadcast;
|
||||||
|
|||||||
@ -377,8 +377,8 @@ class _LockSetPageState extends State<LockSetPage> with RouteAware {
|
|||||||
});
|
});
|
||||||
})),
|
})),
|
||||||
//猫眼设置
|
//猫眼设置
|
||||||
Visibility(
|
Obx(() => Visibility(
|
||||||
visible: true,
|
visible: state.lockFeature.value.isSupportCatEye == 1 ? true : false,
|
||||||
child: CommonItem(
|
child: CommonItem(
|
||||||
leftTitel: TranslationLoader.lanKeys!.catEyeSet!.tr,
|
leftTitel: TranslationLoader.lanKeys!.catEyeSet!.tr,
|
||||||
rightTitle: "",
|
rightTitle: "",
|
||||||
@ -388,7 +388,7 @@ class _LockSetPageState extends State<LockSetPage> with RouteAware {
|
|||||||
Get.toNamed(Routers.catEyeSetPage, arguments: {
|
Get.toNamed(Routers.catEyeSetPage, arguments: {
|
||||||
'lockSetInfoData': state.lockSetInfoData.value
|
'lockSetInfoData': state.lockSetInfoData.value
|
||||||
});
|
});
|
||||||
})),
|
}))),
|
||||||
// Obx(() =>
|
// Obx(() =>
|
||||||
//自动亮屏已包括至面容开锁模块
|
//自动亮屏已包括至面容开锁模块
|
||||||
// Visibility(
|
// Visibility(
|
||||||
@ -644,11 +644,10 @@ class _LockSetPageState extends State<LockSetPage> with RouteAware {
|
|||||||
logic.openCheckingInData((checkingInInfoDataEntity) {
|
logic.openCheckingInData((checkingInInfoDataEntity) {
|
||||||
if (checkingInInfoDataEntity.data!.companyId == 0) {
|
if (checkingInInfoDataEntity.data!.companyId == 0) {
|
||||||
// logic.showCupertinoAlertDialog(context);
|
// logic.showCupertinoAlertDialog(context);
|
||||||
ShowTipView().showIosTipWithContentDialog("创建公司后,考勤功能才能使用".tr, (){
|
ShowTipView().showIosTipWithContentDialog("创建公司后,考勤功能才能使用".tr, () {
|
||||||
// 删除锁
|
// 删除锁
|
||||||
Get.toNamed(Routers.checkInCreatCompanyPage, arguments: {
|
Get.toNamed(Routers.checkInCreatCompanyPage,
|
||||||
'lockSetInfoData': state.lockSetInfoData.value
|
arguments: {'lockSetInfoData': state.lockSetInfoData.value});
|
||||||
});
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
logic.setLockSetGeneralSetting();
|
logic.setLockSetGeneralSetting();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user