修复开锁页-操作记录-卡、密码、指纹、人脸的增加和删除应有姓名,因锁记录里有编号问题
This commit is contained in:
parent
ea771f29c0
commit
d10de9b3bc
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user