1,电子钥匙模块补充部分国际化
2,电子钥匙模块跳转方式改为Get
This commit is contained in:
parent
45fb12506a
commit
7a785587db
@ -825,5 +825,9 @@
|
|||||||
"传输中'":"In transit",
|
"传输中'":"In transit",
|
||||||
"操作记录":"Operation record",
|
"操作记录":"Operation record",
|
||||||
"修改姓名":"Modify name",
|
"修改姓名":"Modify name",
|
||||||
"传输中":"In transit"
|
"传输中":"In transit",
|
||||||
|
"发送人":"Sender",
|
||||||
|
"发送时间":"Send time",
|
||||||
|
"钥匙详情":"Key details",
|
||||||
|
"姓名":"Name"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -853,5 +853,9 @@
|
|||||||
"传输中'":"传输中",
|
"传输中'":"传输中",
|
||||||
"操作记录":"操作记录",
|
"操作记录":"操作记录",
|
||||||
"修改姓名":"修改姓名",
|
"修改姓名":"修改姓名",
|
||||||
"传输中":"传输中"
|
"传输中":"传输中",
|
||||||
|
"发送人":"发送人",
|
||||||
|
"发送时间":"发送时间",
|
||||||
|
"钥匙详情":"钥匙详情",
|
||||||
|
"姓名":"姓名"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -856,5 +856,9 @@
|
|||||||
"传输中'":"传输中",
|
"传输中'":"传输中",
|
||||||
"操作记录":"操作记录",
|
"操作记录":"操作记录",
|
||||||
"修改姓名":"修改姓名",
|
"修改姓名":"修改姓名",
|
||||||
"传输中":"传输中"
|
"传输中":"传输中",
|
||||||
|
"发送人":"发送人",
|
||||||
|
"发送时间":"发送时间",
|
||||||
|
"钥匙详情":"钥匙详情",
|
||||||
|
"姓名":"姓名"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,7 +13,6 @@ import '../../../../../tools/dateTool.dart';
|
|||||||
import '../../../../../tools/showTFView.dart';
|
import '../../../../../tools/showTFView.dart';
|
||||||
import '../../../../../tools/submitBtn.dart';
|
import '../../../../../tools/submitBtn.dart';
|
||||||
import '../../../../../tools/titleAppBar.dart';
|
import '../../../../../tools/titleAppBar.dart';
|
||||||
import '../../../../../translations/trans_lib.dart';
|
|
||||||
|
|
||||||
class ElectronicKeyDetailPage extends StatefulWidget {
|
class ElectronicKeyDetailPage extends StatefulWidget {
|
||||||
const ElectronicKeyDetailPage({Key? key}) : super(key: key);
|
const ElectronicKeyDetailPage({Key? key}) : super(key: key);
|
||||||
@ -33,7 +32,7 @@ class _ElectronicKeyDetailPageState extends State<ElectronicKeyDetailPage> {
|
|||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
backgroundColor: AppColors.mainBackgroundColor,
|
backgroundColor: AppColors.mainBackgroundColor,
|
||||||
appBar: TitleAppBar(
|
appBar: TitleAppBar(
|
||||||
barTitle: TranslationLoader.lanKeys!.keyDetail!.tr,
|
barTitle: '钥匙详情'.tr,
|
||||||
haveBack: true,
|
haveBack: true,
|
||||||
actionsList: (state.keyType.value != 3)
|
actionsList: (state.keyType.value != 3)
|
||||||
? [
|
? [
|
||||||
@ -53,7 +52,7 @@ class _ElectronicKeyDetailPageState extends State<ElectronicKeyDetailPage> {
|
|||||||
body: ListView(
|
body: ListView(
|
||||||
children: [
|
children: [
|
||||||
Obx(() => CommonItem(
|
Obx(() => CommonItem(
|
||||||
leftTitel: TranslationLoader.lanKeys!.name!.tr,
|
leftTitel: '姓名'.tr,
|
||||||
rightTitle: state.keyName.value,
|
rightTitle: state.keyName.value,
|
||||||
isHaveDirection: true,
|
isHaveDirection: true,
|
||||||
isHaveLine: true,
|
isHaveLine: true,
|
||||||
@ -61,7 +60,7 @@ class _ElectronicKeyDetailPageState extends State<ElectronicKeyDetailPage> {
|
|||||||
showCupertinoAlertDialog(context);
|
showCupertinoAlertDialog(context);
|
||||||
})),
|
})),
|
||||||
Obx(() => CommonItem(
|
Obx(() => CommonItem(
|
||||||
leftTitel: TranslationLoader.lanKeys!.periodValidity!.tr,
|
leftTitel: '有效期'.tr,
|
||||||
allHeight: 70.h,
|
allHeight: 70.h,
|
||||||
// rightTitle:"2023.09.19 11:27\n2023.09.25 11:27",
|
// rightTitle:"2023.09.19 11:27\n2023.09.25 11:27",
|
||||||
rightTitle: logic.getKeyTypeShowDateTime(),
|
rightTitle: logic.getKeyTypeShowDateTime(),
|
||||||
@ -116,7 +115,7 @@ class _ElectronicKeyDetailPageState extends State<ElectronicKeyDetailPage> {
|
|||||||
Obx(() => Visibility(
|
Obx(() => Visibility(
|
||||||
visible: state.keyType.value == 4 ? true : false,
|
visible: state.keyType.value == 4 ? true : false,
|
||||||
child: Obx(() => CommonItem(
|
child: Obx(() => CommonItem(
|
||||||
leftTitel: TranslationLoader.lanKeys!.effectiveDay!.tr,
|
leftTitel: '有效日'.tr,
|
||||||
rightTitle: state.weekDay.value.join(','),
|
rightTitle: state.weekDay.value.join(','),
|
||||||
isHaveDirection: true,
|
isHaveDirection: true,
|
||||||
isHaveLine: true,
|
isHaveLine: true,
|
||||||
@ -167,11 +166,11 @@ class _ElectronicKeyDetailPageState extends State<ElectronicKeyDetailPage> {
|
|||||||
rightTitle: state.itemData.value.username ?? ""),
|
rightTitle: state.itemData.value.username ?? ""),
|
||||||
const SizedBox(height: 1),
|
const SizedBox(height: 1),
|
||||||
CommonItem(
|
CommonItem(
|
||||||
leftTitel: TranslationLoader.lanKeys!.sender!.tr,
|
leftTitel: "发送人".tr,
|
||||||
rightTitle: state.itemData.value.senderUsername ?? ""),
|
rightTitle: state.itemData.value.senderUsername ?? ""),
|
||||||
const SizedBox(height: 1),
|
const SizedBox(height: 1),
|
||||||
CommonItem(
|
CommonItem(
|
||||||
leftTitel: TranslationLoader.lanKeys!.senderTime!.tr,
|
leftTitel: '发送时间'.tr,
|
||||||
rightTitle: DateTool()
|
rightTitle: DateTool()
|
||||||
.dateToYMDHNString(state.itemData.value.sendDate.toString())),
|
.dateToYMDHNString(state.itemData.value.sendDate.toString())),
|
||||||
Container(height: 10.h),
|
Container(height: 10.h),
|
||||||
@ -216,11 +215,10 @@ class _ElectronicKeyDetailPageState extends State<ElectronicKeyDetailPage> {
|
|||||||
rightTitle: "",
|
rightTitle: "",
|
||||||
isHaveDirection: true,
|
isHaveDirection: true,
|
||||||
action: () {
|
action: () {
|
||||||
Navigator.pushNamed(context, Routers.keyOperationRecordPage,
|
Get.toNamed(Routers.keyOperationRecordPage, arguments: {
|
||||||
arguments: {
|
'lockId': state.itemData.value.lockId.toString(),
|
||||||
'lockId': state.itemData.value.lockId.toString(),
|
'keyId': state.itemData.value.keyId.toString()
|
||||||
'keyId': state.itemData.value.keyId.toString()
|
});
|
||||||
});
|
|
||||||
}),
|
}),
|
||||||
Container(height: 40.h),
|
Container(height: 40.h),
|
||||||
SubmitBtn(
|
SubmitBtn(
|
||||||
@ -298,7 +296,7 @@ class _ElectronicKeyDetailPageState extends State<ElectronicKeyDetailPage> {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
cancelClick: () {
|
cancelClick: () {
|
||||||
Navigator.pop(context);
|
Get.back();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user