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
6d5b01b7
Commit
6d5b01b7
authored
Jun 26, 2026
by
张宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111111111111
parent
d9aad985
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
factory_settings_index_cubit.dart
.../factory_settings/cubit/factory_settings_index_cubit.dart
+8
-2
factory_settings_panel.dart
...ings/factory_settings/widgets/factory_settings_panel.dart
+1
-1
No files found.
lib/views/settings/factory_settings/cubit/factory_settings_index_cubit.dart
View file @
6d5b01b7
import
'package:flutter_bloc/flutter_bloc.dart'
;
import
'package:laki_icu_app/blocs/device_threshold_config/device_threshold_config.dart'
;
import
'package:laki_icu_app/utils/toast_utils.dart'
;
import
'factory_settings_index_state.dart'
;
...
...
@@ -77,8 +78,13 @@ class FactorySettingsIndexCubit extends Cubit<FactorySettingsIndexState> {
}
void
applyChanges
()
{
_thresholdConfigBloc
.
updateConfig
(
state
.
editingConfig
);
emit
(
state
.
copyWith
(
isDirty:
false
));
try
{
_thresholdConfigBloc
.
updateConfig
(
state
.
editingConfig
);
emit
(
state
.
copyWith
(
isDirty:
false
));
showToast
(
'操作成功'
);
}
catch
(
e
)
{
showToast
(
'操作失败'
);
}
}
void
resetEdits
()
{
...
...
lib/views/settings/factory_settings/widgets/factory_settings_panel.dart
View file @
6d5b01b7
...
...
@@ -146,7 +146,7 @@ class _FactoryActionColumn extends StatelessWidget {
Expanded
(
child:
_FactoryButton
(
text:
'应用更改'
,
onPressed:
isDirty
?
()
=>
cubit
.
applyChanges
()
:
null
,
onPressed:
()
=>
cubit
.
applyChanges
()
,
),
),
],
...
...
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