diff --git a/lib/main/lockDetail/card/cardDetail/cardDetail_logic.dart b/lib/main/lockDetail/card/cardDetail/cardDetail_logic.dart index 012ca8b6..73b63254 100755 --- a/lib/main/lockDetail/card/cardDetail/cardDetail_logic.dart +++ b/lib/main/lockDetail/card/cardDetail/cardDetail_logic.dart @@ -181,6 +181,9 @@ class CardDetailLogic extends BaseGetXController { cardRight: state.isAdministrator.value ? 1 : 0, ); if (entity.errorCode!.codeIsSuccessful) { + state.fingerprintItemData.value.cardName = state.changeNameController.text; + state.fingerprintItemData.value.isCoerced = state.isStressCard.value ? 1 : 2; + state.fingerprintItemData.value.cardRight = state.isAdministrator.value ? 1 : 0; showToast('修改成功'.tr, something: () { eventBus.fire(OtherTypeRefreshListEvent()); }); diff --git a/lib/main/lockDetail/face/faceDetail/faceDetail_logic.dart b/lib/main/lockDetail/face/faceDetail/faceDetail_logic.dart index 4d43988d..5ac27227 100755 --- a/lib/main/lockDetail/face/faceDetail/faceDetail_logic.dart +++ b/lib/main/lockDetail/face/faceDetail/faceDetail_logic.dart @@ -170,7 +170,7 @@ class FaceDetailLogic extends BaseGetXController { faceName: state.changeNameController.text, ); if (entity.errorCode!.codeIsSuccessful) { - state.typeName.value = state.changeNameController.text; + state.faceItemData.value.fingerprintName = state.changeNameController.text; showToast('修改成功', something: () { Get.back(result: 'addScuess'); }); @@ -194,7 +194,9 @@ class FaceDetailLogic extends BaseGetXController { faceRight: state.isAdministrator.value ? 1 : 0, ); if (entity.errorCode!.codeIsSuccessful) { - showToast('修改成功', something: () { + state.faceItemData.value.isCoerced = state.isStressFace.value ? 1 : 2; + state.faceItemData.value.faceRight = state.isAdministrator.value ? 1 : 0; + showToast('修改成功'.tr, something: () { Get.back(result: 'addScuess'); }); } @@ -203,7 +205,7 @@ class FaceDetailLogic extends BaseGetXController { String getKeyTypeShowDateTime() { String useDateStr = ''; if (state.keyType.value == 1) { - useDateStr = '永久'; + useDateStr = '永久'.tr; } else if (state.keyType.value == 2) { useDateStr = '${DateTool().dateToYMDHNString(state.startDate.value)}\n${DateTool().dateToYMDHNString(state.endDate.value)}'; diff --git a/lib/main/lockDetail/fingerprint/fingerprintDetail/fingerprintDetail_logic.dart b/lib/main/lockDetail/fingerprint/fingerprintDetail/fingerprintDetail_logic.dart index 5211aba8..59c1007c 100755 --- a/lib/main/lockDetail/fingerprint/fingerprintDetail/fingerprintDetail_logic.dart +++ b/lib/main/lockDetail/fingerprint/fingerprintDetail/fingerprintDetail_logic.dart @@ -176,6 +176,9 @@ class FingerprintDetailLogic extends BaseGetXController{ fingerRight: state.isAdministrator.value ? 1 : 0, ); if(entity.errorCode!.codeIsSuccessful){ + state.fingerprintItemData.value.fingerprintName = state.changeNameController.text; + state.fingerprintItemData.value.isCoerced = state.isStressFingerprint.value ? 1 : 2; + state.fingerprintItemData.value.fingerRight = state.isAdministrator.value ? 1 : 0; showToast('修改成功'.tr, something: (){ eventBus.fire(OtherTypeRefreshListEvent()); }); diff --git a/lib/main/lockDetail/passwordKey/passwordKeyDetail/passwordKeyDetail_logic.dart b/lib/main/lockDetail/passwordKey/passwordKeyDetail/passwordKeyDetail_logic.dart index fe829ab8..c4c759cc 100755 --- a/lib/main/lockDetail/passwordKey/passwordKeyDetail/passwordKeyDetail_logic.dart +++ b/lib/main/lockDetail/passwordKey/passwordKeyDetail/passwordKeyDetail_logic.dart @@ -111,9 +111,11 @@ class PasswordKeyDetailLogic extends BaseGetXController { if(changType == 1){ // 修改名字 state.keyboardPwdName.value = state.inputNameController.text; + state.itemData.value.keyboardPwdName = state.keyboardPwdName.value; }else if(changType == 2){ // 修改密码 state.keyboardPwd.value = state.inputPwdController.text; + state.itemData.value.keyboardPwd = state.keyboardPwd.value; } eventBus.fire(GetPasswordListRefreshUI()); });