2026.5.25 重点作业隐患打回图片bug

master
xufei 2026-05-25 16:39:43 +08:00
parent 644e8750e6
commit d558bd0553
1 changed files with 11 additions and 0 deletions

View File

@ -986,6 +986,17 @@ class _KeyTasksHiddenDangerDetailState extends State<KeyTasksHiddenDangerDetail>
); );
} }
late bool isSuccess = true;
List<String> ids = files2.map((file) => file['id'].toString()).toList();
await FileApi.deleteImages(ids).then((result) {
if (result['success']) {
isSuccess = true;
} else {
isSuccess = false;
}
});
// await FileApi.deleteImages(ids);
LoadingDialogHelper.hide();
LoadingDialogHelper.show(); LoadingDialogHelper.show();
final Map<String, dynamic> raw = await KeyTasksApi.setHiddenDangerRectification(hiddenDangerRectification,); final Map<String, dynamic> raw = await KeyTasksApi.setHiddenDangerRectification(hiddenDangerRectification,);