1、修复无网络情况下点击隐藏无效开锁权限bug
2、修复发送授权管理员必须要输入姓名问题 3、修复无网络情况下,无效授权管理员点击仅管理创建用户问题
This commit is contained in:
parent
33a1cecb8e
commit
a527b4337f
@ -120,10 +120,10 @@ class AuthorizedAdminLogic extends BaseGetXController {
|
|||||||
showToast('请输入接收者账号');
|
showToast('请输入接收者账号');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (state.keyNameController.text.isEmpty) {
|
// if (state.keyNameController.text.isEmpty) {
|
||||||
showToast('请输入接收者姓名');
|
// showToast('请输入接收者姓名');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
String startDate = '0';
|
String startDate = '0';
|
||||||
String endDate = '0';
|
String endDate = '0';
|
||||||
|
|||||||
@ -63,6 +63,11 @@ class ElectronicKeyDetailLogic extends BaseGetXController {
|
|||||||
state.onlyManageYouCreatesUser.value == true ? 1 : 0,
|
state.onlyManageYouCreatesUser.value == true ? 1 : 0,
|
||||||
remoteEnable: state.isRemoteUnlock.value == true ? 1 : 2);
|
remoteEnable: state.isRemoteUnlock.value == true ? 1 : 2);
|
||||||
if (entity.errorCode!.codeIsSuccessful) {
|
if (entity.errorCode!.codeIsSuccessful) {
|
||||||
|
if(updateType == 1){
|
||||||
|
state.onlyManageYouCreatesUser.value = !state.onlyManageYouCreatesUser.value;
|
||||||
|
}else if(updateType == 2){
|
||||||
|
state.isRemoteUnlock.value = !state.isRemoteUnlock.value;
|
||||||
|
}
|
||||||
showToast('修改成功'.tr, something: () {
|
showToast('修改成功'.tr, something: () {
|
||||||
eventBus.fire(ElectronicKeyListRefreshUI());
|
eventBus.fire(ElectronicKeyListRefreshUI());
|
||||||
eventBus.fire(AuthorizedAdminPageRefreshUI());
|
eventBus.fire(AuthorizedAdminPageRefreshUI());
|
||||||
|
|||||||
@ -217,7 +217,7 @@ class _ElectronicKeyDetailPageState extends State<ElectronicKeyDetailPage> {
|
|||||||
isHaveRightWidget: true,
|
isHaveRightWidget: true,
|
||||||
isHaveLine: true,
|
isHaveLine: true,
|
||||||
rightWidget: SizedBox(
|
rightWidget: SizedBox(
|
||||||
width: 60.w, child: _onlyManageYouCreatesUserSwitch())),
|
width: 60.w, child: Obx(_onlyManageYouCreatesUserSwitch))),
|
||||||
),
|
),
|
||||||
Obx(
|
Obx(
|
||||||
() => Visibility(
|
() => Visibility(
|
||||||
@ -334,7 +334,7 @@ class _ElectronicKeyDetailPageState extends State<ElectronicKeyDetailPage> {
|
|||||||
thumbColor: CupertinoColors.white,
|
thumbColor: CupertinoColors.white,
|
||||||
value: state.isRemoteUnlock.value,
|
value: state.isRemoteUnlock.value,
|
||||||
onChanged: (bool value) {
|
onChanged: (bool value) {
|
||||||
state.isRemoteUnlock.value = !state.isRemoteUnlock.value;
|
// state.isRemoteUnlock.value = !state.isRemoteUnlock.value;
|
||||||
logic.updateKeyDateRequest(2);
|
logic.updateKeyDateRequest(2);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
@ -347,11 +347,9 @@ class _ElectronicKeyDetailPageState extends State<ElectronicKeyDetailPage> {
|
|||||||
thumbColor: CupertinoColors.white,
|
thumbColor: CupertinoColors.white,
|
||||||
value: state.onlyManageYouCreatesUser.value,
|
value: state.onlyManageYouCreatesUser.value,
|
||||||
onChanged: (bool value) {
|
onChanged: (bool value) {
|
||||||
setState(() {
|
// setState(() {
|
||||||
state.onlyManageYouCreatesUser.value =
|
|
||||||
!state.onlyManageYouCreatesUser.value;
|
|
||||||
logic.updateKeyDateRequest(1);
|
logic.updateKeyDateRequest(1);
|
||||||
});
|
// });
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -95,9 +95,7 @@ class _HideInvalidUnlockPermissionsPageState
|
|||||||
padding: EdgeInsets.only(top: 20.w, bottom: 20.w),
|
padding: EdgeInsets.only(top: 20.w, bottom: 20.w),
|
||||||
onClick: () {
|
onClick: () {
|
||||||
_isFirst = false;
|
_isFirst = false;
|
||||||
setState(() {
|
_isOn = !_isOn;
|
||||||
_isOn = !_isOn;
|
|
||||||
});
|
|
||||||
changeSettingsRequest();
|
changeSettingsRequest();
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
@ -110,6 +108,7 @@ class _HideInvalidUnlockPermissionsPageState
|
|||||||
ExpireLockListEntity entity =
|
ExpireLockListEntity entity =
|
||||||
await ApiRepository.to.changeSettings(_isOn == true ? '1' : '2', '2');
|
await ApiRepository.to.changeSettings(_isOn == true ? '1' : '2', '2');
|
||||||
if (entity.errorCode!.codeIsSuccessful) {
|
if (entity.errorCode!.codeIsSuccessful) {
|
||||||
|
setState(() {});
|
||||||
EasyLoading.showToast("操作成功",duration: 2000.milliseconds);
|
EasyLoading.showToast("操作成功",duration: 2000.milliseconds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,8 +83,10 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# 1.0.71+2024072902:xhj 线上环境,提交测试:回归 bug
|
# 1.0.71+2024072902:xhj 线上环境,提交测试:回归 bug
|
||||||
# 1.0.72+2024080501:xhj 预发布环境,提交测试:回归 bug
|
# 1.0.72+2024080501:xhj 预发布环境,提交测试:回归 bug
|
||||||
# 1.0.73+2024080801:xhj 预发布环境,提交测试:回归 Tapd优2优及测试部门8月8号之前bug
|
# 1.0.73+2024080801:xhj 预发布环境,提交测试:回归 Tapd优2优及测试部门8月8号之前bug
|
||||||
|
# 1.0.74+2024080901:xhj 预发布环境,提交测试:回归 8月9号之前bug
|
||||||
|
# 1.0.75+2024081001:xhj 预发布环境,提交测试:回归 8月9号之前bug
|
||||||
|
|
||||||
version: 1.0.73+2024080801
|
version: 1.0.74+2024080901
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user