修复路径规划任务的取消接口的入参的结构去掉deviceid,测试通过。

This commit is contained in:
2026-09-10 08:58:04 +08:00
parent d76bcdcdf2
commit b4bedd9737
2 changed files with 2 additions and 3 deletions

View File

@@ -95,10 +95,9 @@ class DeviceTaskDatasourceImpl implements DeviceTaskDatasource {
}) async { }) async {
final url = '${HttpApiConsts.baseUrl}/iot/deviceTask/cancelTask'; final url = '${HttpApiConsts.baseUrl}/iot/deviceTask/cancelTask';
final body = { final body = {
'deviceId': deviceId,
'taskId': taskId, 'taskId': taskId,
'orgId': orgId,
'siteId': siteId, 'siteId': siteId,
'orgId': orgId,
'forceCancel': forceCancel, 'forceCancel': forceCancel,
}; };
_logger.logWithLevel('[cancelTask] 请求: POST $url'); _logger.logWithLevel('[cancelTask] 请求: POST $url');

View File

@@ -450,7 +450,7 @@ class DevicesCubit extends Cubit<DevicesState> {
state.copyWith( state.copyWith(
isLoading: false, isLoading: false,
workRecords: state.workRecords workRecords: state.workRecords
?.where((record) => record != workName) ?.where((record) => record['workName'] != workName)
.toList(), .toList(),
), ),
), ),