修复开锁页-操作记录-卡、密码、指纹、人脸的增加和删除应有姓名,因锁记录里有编号问题

This commit is contained in:
“DaisyWu” 2024-07-03 15:21:34 +08:00
parent ea771f29c0
commit d10de9b3bc
2 changed files with 7 additions and 2 deletions

View File

@ -72,7 +72,8 @@ class DoorLockLogDataItem {
this.videoUrl,
this.headUrl,
this.userid,
this.keyboardPwd});
this.keyboardPwd,
this.recordStr});
DoorLockLogDataItem.fromJson(Map<String, dynamic> json) {
recordId = json['recordId'];
@ -87,6 +88,7 @@ class DoorLockLogDataItem {
headUrl = json['headUrl'];
userid = json['userid'];
keyboardPwd = json['keyboardPwd'];
recordStr = json['recordStr'];
}
int? recordId;
int? lockId;
@ -100,6 +102,7 @@ class DoorLockLogDataItem {
String? headUrl;
String? userid;
String? keyboardPwd;
String? recordStr;
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
@ -115,6 +118,7 @@ class DoorLockLogDataItem {
data['headUrl'] = headUrl;
data['userid'] = userid;
data['keyboardPwd'] = keyboardPwd;
data['recordStr'] = recordStr;
return data;
}
}

View File

@ -281,7 +281,8 @@ class _DoorLockLogPageState extends State<DoorLockLogPage> with RouteAware {
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
'$formattedTime ${timelineData.username!.isNotEmpty ? "${timelineData.username}操作" : ""}${timelineData.recordTypeName}',
// '$formattedTime ${timelineData.username!.isNotEmpty ? "${timelineData.username}操作" : ""}${timelineData.recordTypeName}',
timelineData.recordStr ?? '',
textAlign: TextAlign.left,
style: TextStyle(
color: Colors.black,