feat: 管理员密码往外提升一个层级,放到基本信息栏目下面
This commit is contained in:
parent
0e1c03645a
commit
4c3da6d194
@ -133,20 +133,20 @@ class _BasicInformationPageState extends State<BasicInformationPage> {
|
||||
}
|
||||
});
|
||||
})),
|
||||
Obx(() => Visibility(
|
||||
visible: state.lockBasicInfo.value.isLockOwner == 1,
|
||||
child: CommonItem(
|
||||
leftTitel: '管理员开锁密码'.tr,
|
||||
rightTitle: state.lockBasicInfo.value.adminPwd,
|
||||
isHaveLine: true,
|
||||
isHaveDirection: true,
|
||||
action: () {
|
||||
Get.toNamed(Routers.adminOpenLockPasswordPage,
|
||||
arguments: <String, LockSetInfoData>{
|
||||
'lockSetInfoData': state.lockSetInfoData.value
|
||||
});
|
||||
}),
|
||||
)),
|
||||
// Obx(() => Visibility(
|
||||
// visible: state.lockBasicInfo.value.isLockOwner == 1,
|
||||
// child: CommonItem(
|
||||
// leftTitel: '管理员开锁密码'.tr,
|
||||
// rightTitle: state.lockBasicInfo.value.adminPwd,
|
||||
// isHaveLine: true,
|
||||
// isHaveDirection: true,
|
||||
// action: () {
|
||||
// Get.toNamed(Routers.adminOpenLockPasswordPage,
|
||||
// arguments: <String, LockSetInfoData>{
|
||||
// 'lockSetInfoData': state.lockSetInfoData.value
|
||||
// });
|
||||
// }),
|
||||
// )),
|
||||
Obx(() => Visibility(
|
||||
visible: (state.lockBasicInfo.value.lockName ?? '')
|
||||
.contains('T9A'),
|
||||
|
||||
@ -99,7 +99,7 @@ class _LockSetPageState extends State<LockSetPage>
|
||||
CommonItem(
|
||||
leftTitel: '基本信息'.tr,
|
||||
rightTitle: '',
|
||||
isHaveLine: false,
|
||||
isHaveLine: state.lockBasicInfo.value.isLockOwner == 1,
|
||||
isHaveDirection: true,
|
||||
action: () {
|
||||
if (!state.lockSetInfoData.value.isValid()) {
|
||||
@ -111,6 +111,25 @@ class _LockSetPageState extends State<LockSetPage>
|
||||
'lockSetInfoData': state.lockSetInfoData.value
|
||||
});
|
||||
}),
|
||||
//管理员密码 需求变更:由基本信息子页面移至此处
|
||||
Obx(() => Visibility(
|
||||
visible: state.lockBasicInfo.value.isLockOwner == 1,
|
||||
child: CommonItem(
|
||||
leftTitel: '管理员开锁密码'.tr,
|
||||
rightTitle: state.lockBasicInfo.value.adminPwd,
|
||||
isHaveLine: false,
|
||||
isHaveDirection: true,
|
||||
action: () {
|
||||
if (!state.lockSetInfoData.value.isValid()) {
|
||||
EasyLoading.showToast('网络访问失败,请检查网络是否正常'.tr);
|
||||
return;
|
||||
}
|
||||
Get.toNamed(Routers.adminOpenLockPasswordPage,
|
||||
arguments: <String, LockSetInfoData>{
|
||||
'lockSetInfoData': state.lockSetInfoData.value
|
||||
});
|
||||
}),
|
||||
)),
|
||||
SizedBox(height: 10.h),
|
||||
// 自动闭锁
|
||||
Obx(() => Visibility(
|
||||
@ -201,7 +220,7 @@ class _LockSetPageState extends State<LockSetPage>
|
||||
CommonItem(
|
||||
leftTitel: '基本信息'.tr,
|
||||
rightTitle: '',
|
||||
isHaveLine: false,
|
||||
isHaveLine: state.lockBasicInfo.value.isLockOwner == 1,
|
||||
isHaveDirection: true,
|
||||
action: () {
|
||||
Get.toNamed(Routers.basicInformationPage,
|
||||
@ -209,6 +228,25 @@ class _LockSetPageState extends State<LockSetPage>
|
||||
'lockSetInfoData': state.lockSetInfoData.value
|
||||
});
|
||||
}),
|
||||
//管理员密码 需求变更:由基本信息子页面移至此处
|
||||
Obx(() => Visibility(
|
||||
visible: state.lockBasicInfo.value.isLockOwner == 1,
|
||||
child: CommonItem(
|
||||
leftTitel: '管理员开锁密码'.tr,
|
||||
rightTitle: state.lockBasicInfo.value.adminPwd,
|
||||
isHaveLine: true,
|
||||
isHaveDirection: true,
|
||||
action: () {
|
||||
if (!state.lockSetInfoData.value.isValid()) {
|
||||
EasyLoading.showToast('网络访问失败,请检查网络是否正常'.tr);
|
||||
return;
|
||||
}
|
||||
Get.toNamed(Routers.adminOpenLockPasswordPage,
|
||||
arguments: <String, LockSetInfoData>{
|
||||
'lockSetInfoData': state.lockSetInfoData.value
|
||||
});
|
||||
}),
|
||||
)),
|
||||
SizedBox(height: 10.h),
|
||||
//by DaisyWu 田总:移至锁详情配件区
|
||||
// 门磁
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user