对接路径规划的列表(根据场站的下的)
优化无人机机场的监控视频的显示视频流畅度提升80% 添加首页tcp指示灯的机器状态信息展示功能。(暂不支持在此页面上设备的切换显示)
This commit is contained in:
@@ -34,6 +34,7 @@ import 'package:maibu_satabot_v2/features/devices/presentation/bloc/device_statu
|
||||
import 'package:maibu_satabot_v2/features/devices/presentation/bloc/device_status_state.dart';
|
||||
import 'package:maibu_satabot_v2/features/devices/presentation/bloc/devices_cubit.dart';
|
||||
import 'package:maibu_satabot_v2/features/devices/presentation/bloc/devices_state.dart';
|
||||
import 'package:maibu_satabot_v2/features/v2/site/presentation/cubit/site_cubit.dart';
|
||||
import 'package:maibu_satabot_v2/features/home/presentation/widgets/BottomDirectionLine.dart';
|
||||
import 'package:maibu_satabot_v2/features/home/presentation/widgets/common/commonFn.dart';
|
||||
import 'package:maibu_satabot_v2/features/home/presentation/widgets/common/enum.dart';
|
||||
@@ -2986,12 +2987,21 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
|
||||
});
|
||||
},
|
||||
onListBox: (bool isOpen) {
|
||||
// 🔥 改动5:加载作业记录(原有逻辑保留)
|
||||
final userId =
|
||||
context.read<AppUserCubit>().state.user?.userId ??
|
||||
"";
|
||||
print('加载作业记录,当前用户ID:$userId');
|
||||
context.read<DevicesCubit>().loadWorkRecords(userId);
|
||||
// 🔥 使用新接口:根据场站ID加载作业记录
|
||||
final selectedSite = sl<SiteCubit>().state.selectedSite;
|
||||
if (selectedSite == null) {
|
||||
_showPageToast(
|
||||
message: '请先选择场站',
|
||||
type: ToastType.error,
|
||||
);
|
||||
return;
|
||||
}
|
||||
print(
|
||||
'加载作业记录,当前场站ID:${selectedSite.id},场站名称:${selectedSite.siteName}',
|
||||
);
|
||||
context.read<DevicesCubit>().loadWorkRecordsBySiteId(
|
||||
selectedSite.id,
|
||||
);
|
||||
|
||||
setState(() {
|
||||
_isListBoxOpen = isOpen;
|
||||
|
||||
Reference in New Issue
Block a user