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
ada160a1
Commit
ada160a1
authored
Jun 26, 2026
by
张宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
222222222222
parent
6d5b01b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
monitoring_index_cubit.dart
lib/views/monitoring/index/cubit/monitoring_index_cubit.dart
+6
-14
No files found.
lib/views/monitoring/index/cubit/monitoring_index_cubit.dart
View file @
ada160a1
...
...
@@ -1300,15 +1300,11 @@ class MonitoringIndexCubit extends HydratedCubit<MonitoringIndexState> {
clearSelectedAlert:
true
,
));
}
else
{
// 摄像头告警:
保持原有逻辑
// 摄像头告警:
通过 MQTT 上行处理结果,仅从 cameraAlerts 移除
_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
,
cameraAlerts:
state
.
cameraAlerts
.
where
((
item
)
=>
item
!=
alert
).
toList
()
,
clearSelectedAlert:
true
,
));
}
...
...
@@ -1329,15 +1325,11 @@ class MonitoringIndexCubit extends HydratedCubit<MonitoringIndexState> {
clearSelectedAlert:
true
,
));
}
else
{
// 摄像头告警:
保持原有逻辑
// 摄像头告警:
通过 MQTT 上行处理结果,仅从 cameraAlerts 移除
_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
,
cameraAlerts:
state
.
cameraAlerts
.
where
((
item
)
=>
item
!=
alert
).
toList
()
,
clearSelectedAlert:
true
,
));
}
...
...
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