蓝牙绑定设备+场站切换支持高清图层的一对一显示+设备实时状态的部分显示

This commit is contained in:
2026-09-02 16:58:45 +08:00
parent 61bce2c1cf
commit 5141d6e83f
10 changed files with 458 additions and 133 deletions

View File

@@ -4,6 +4,7 @@ class SiteEntity extends Equatable {
final int id;
final String siteName;
final String? siteCode;
final String? siteMapName; // GeoServer 图层名,形如 workSpace:suzhou
final int orgId;
final double? longitude;
final double? latitude;
@@ -14,6 +15,7 @@ class SiteEntity extends Equatable {
required this.id,
required this.siteName,
this.siteCode,
this.siteMapName,
required this.orgId,
this.longitude,
this.latitude,
@@ -26,6 +28,7 @@ class SiteEntity extends Equatable {
id: json['id'] as int,
siteName: json['name'] as String? ?? json['siteName'] as String? ?? '',
siteCode: json['siteCode'] as String?,
siteMapName: json['siteMapName'] as String?,
orgId: json['orgId'] as int? ?? 0,
longitude: (json['longitude'] as num?)?.toDouble(),
latitude: (json['latitude'] as num?)?.toDouble(),
@@ -39,6 +42,7 @@ class SiteEntity extends Equatable {
'id': id,
'siteName': siteName,
'siteCode': siteCode,
'siteMapName': siteMapName,
'orgId': orgId,
'longitude': longitude,
'latitude': latitude,
@@ -48,5 +52,6 @@ class SiteEntity extends Equatable {
}
@override
List<Object?> get props => [id, siteName, siteCode, orgId, longitude, latitude, address, status];
List<Object?> get props =>
[id, siteName, siteCode, siteMapName, orgId, longitude, latitude, address, status];
}