Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
laki_icu_app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张宏
laki_icu_app
Commits
d9aad985
Commit
d9aad985
authored
Jun 26, 2026
by
张宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111合并
parent
72cbd0e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
monitoring_index_cubit.dart
lib/views/monitoring/index/cubit/monitoring_index_cubit.dart
+0
-33
No files found.
lib/views/monitoring/index/cubit/monitoring_index_cubit.dart
View file @
d9aad985
...
...
@@ -39,11 +39,8 @@ class MonitoringIndexCubit extends HydratedCubit<MonitoringIndexState> {
StreamSubscription
<
BluetoothDataPacket
>?
_bluetoothDataSub
;
StreamSubscription
<
BluetoothReadInfoChangedEvent
>?
_bluetoothReadInfoSub
;
StreamSubscription
<
McuReportChangedEvent
>?
_mcuReportChangedSub
;
<<<<<<<
HEAD
StreamSubscription
<
DeviceSensorAlarmEvent
>?
_deviceAlarmSub
;
=======
StreamSubscription
<
CareLevelChangedEvent
>?
_careLevelChangedSub
;
>>>>>>>
43
d33868106a647f3523e8dbd11674431c5cdc53
StreamSubscription
<
LakiMqttConnectionState
>?
_mqttStateSub
;
StreamSubscription
<
LakiMqttMessage
>?
_mqttMessageSub
;
StreamSubscription
<
String
>?
_mqttErrorSub
;
...
...
@@ -84,11 +81,8 @@ class MonitoringIndexCubit extends HydratedCubit<MonitoringIndexState> {
_listenBluetoothState
();
_listenBluetoothReadInfo
();
_listenMcuReportChanged
();
<<<<<<<
HEAD
_listenDeviceSensorAlarm
();
=======
_listenCareLevelChanged
();
>>>>>>>
43
d33868106a647f3523e8dbd11674431c5cdc53
_loadBoundBluetoothDevice
();
// // todo 测试使用 待删除
...
...
@@ -1297,7 +1291,6 @@ class MonitoringIndexCubit extends HydratedCubit<MonitoringIndexState> {
/// 摄像头告警:通过 MQTT camera/{SN}/up 上行处理结果,并从列表中移除。
void
markAlertAsProcessed
(
AlertInfoBO
alert
)
{
if
(
isClosed
)
return
;
<<<<<<<
HEAD
if
(
alert
.
isDeviceAlarm
)
{
// 设备告警:不上行 MQTT,仅移除
final
removedAlerts
=
...
...
@@ -1319,17 +1312,6 @@ class MonitoringIndexCubit extends HydratedCubit<MonitoringIndexState> {
clearSelectedAlert:
true
,
));
}
=======
_publishCameraAlarmResult
(
alert
,
'handled'
);
final
removedCameraAlerts
=
state
.
cameraAlerts
.
where
((
item
)
=>
item
!=
alert
).
toList
();
final
removedAlerts
=
state
.
alerts
.
where
((
item
)
=>
item
!=
alert
).
toList
();
emit
(
state
.
copyWith
(
cameraAlerts:
removedCameraAlerts
,
alerts:
removedAlerts
,
selectedAlert:
null
,
));
>>>>>>>
43
d33868106a647f3523e8dbd11674431c5cdc53
}
/// 标记告警为误报
...
...
@@ -1338,7 +1320,6 @@ class MonitoringIndexCubit extends HydratedCubit<MonitoringIndexState> {
/// 摄像头告警:通过 MQTT camera/{SN}/up 上行处理结果,并从列表中移除。
void
markAlertAsFalse
(
AlertInfoBO
alert
)
{
if
(
isClosed
)
return
;
<<<<<<<
HEAD
if
(
alert
.
isDeviceAlarm
)
{
// 设备告警:不上行 MQTT,仅移除
final
removedAlerts
=
...
...
@@ -1360,17 +1341,6 @@ class MonitoringIndexCubit extends HydratedCubit<MonitoringIndexState> {
clearSelectedAlert:
true
,
));
}
=======
_publishCameraAlarmResult
(
alert
,
'false_alarm'
);
final
removedCameraAlerts
=
state
.
cameraAlerts
.
where
((
item
)
=>
item
!=
alert
).
toList
();
final
removedAlerts
=
state
.
alerts
.
where
((
item
)
=>
item
!=
alert
).
toList
();
emit
(
state
.
copyWith
(
cameraAlerts:
removedCameraAlerts
,
alerts:
removedAlerts
,
selectedAlert:
null
,
));
>>>>>>>
43
d33868106a647f3523e8dbd11674431c5cdc53
}
/// 上行 MQTT camera/{SN}/up 告警处理结果
...
...
@@ -1408,11 +1378,8 @@ class MonitoringIndexCubit extends HydratedCubit<MonitoringIndexState> {
_bluetoothDataSub
?.
cancel
();
_bluetoothReadInfoSub
?.
cancel
();
_mcuReportChangedSub
?.
cancel
();
<<<<<<<
HEAD
_deviceAlarmSub
?.
cancel
();
=======
_careLevelChangedSub
?.
cancel
();
>>>>>>>
43
d33868106a647f3523e8dbd11674431c5cdc53
_webrtcService
.
dispose
();
_p2pVideoService
.
dispose
();
return
_disposeMqttClient
().
then
((
_
)
=>
super
.
close
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment