修复开锁页-操作记录-卡、密码、指纹、人脸的增加和删除应有姓名,因锁记录里有编号问题
This commit is contained in:
parent
ea771f29c0
commit
d10de9b3bc
@ -72,7 +72,8 @@ class DoorLockLogDataItem {
|
|||||||
this.videoUrl,
|
this.videoUrl,
|
||||||
this.headUrl,
|
this.headUrl,
|
||||||
this.userid,
|
this.userid,
|
||||||
this.keyboardPwd});
|
this.keyboardPwd,
|
||||||
|
this.recordStr});
|
||||||
|
|
||||||
DoorLockLogDataItem.fromJson(Map<String, dynamic> json) {
|
DoorLockLogDataItem.fromJson(Map<String, dynamic> json) {
|
||||||
recordId = json['recordId'];
|
recordId = json['recordId'];
|
||||||
@ -87,6 +88,7 @@ class DoorLockLogDataItem {
|
|||||||
headUrl = json['headUrl'];
|
headUrl = json['headUrl'];
|
||||||
userid = json['userid'];
|
userid = json['userid'];
|
||||||
keyboardPwd = json['keyboardPwd'];
|
keyboardPwd = json['keyboardPwd'];
|
||||||
|
recordStr = json['recordStr'];
|
||||||
}
|
}
|
||||||
int? recordId;
|
int? recordId;
|
||||||
int? lockId;
|
int? lockId;
|
||||||
@ -100,6 +102,7 @@ class DoorLockLogDataItem {
|
|||||||
String? headUrl;
|
String? headUrl;
|
||||||
String? userid;
|
String? userid;
|
||||||
String? keyboardPwd;
|
String? keyboardPwd;
|
||||||
|
String? recordStr;
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final Map<String, dynamic> data = <String, dynamic>{};
|
final Map<String, dynamic> data = <String, dynamic>{};
|
||||||
@ -115,6 +118,7 @@ class DoorLockLogDataItem {
|
|||||||
data['headUrl'] = headUrl;
|
data['headUrl'] = headUrl;
|
||||||
data['userid'] = userid;
|
data['userid'] = userid;
|
||||||
data['keyboardPwd'] = keyboardPwd;
|
data['keyboardPwd'] = keyboardPwd;
|
||||||
|
data['recordStr'] = recordStr;
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -281,7 +281,8 @@ class _DoorLockLogPageState extends State<DoorLockLogPage> with RouteAware {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(
|
Text(
|
||||||
'$formattedTime ${timelineData.username!.isNotEmpty ? "${timelineData.username}操作" : ""}${timelineData.recordTypeName}',
|
// '$formattedTime ${timelineData.username!.isNotEmpty ? "${timelineData.username}操作" : ""}${timelineData.recordTypeName}',
|
||||||
|
timelineData.recordStr ?? '',
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user