Commit 8193c7d3f0426fdc2df66805e2d3bb9252255e41

Authored by dev001
1 parent 1f06b72a

fix: 上报网关子设备bug

@@ -264,13 +264,16 @@ export const getGATEWAYdevice = async (params: { @@ -264,13 +264,16 @@ export const getGATEWAYdevice = async (params: {
264 ); 264 );
265 }; 265 };
266 266
267 -export const getGatewayDevice = (params: Record<'organizationId' | 'transportType', string>) => {  
268 - const { organizationId, transportType } = params; 267 +export const getGatewayDevice = (
  268 + params: Record<'organizationId' | 'transportType' | 'gatewayId', string>
  269 +) => {
  270 + const { organizationId, transportType, gatewayId } = params;
269 return defHttp.get<DeviceRecord[]>({ 271 return defHttp.get<DeviceRecord[]>({
270 url: DeviceManagerApi.GATEWAY_DEVICE, 272 url: DeviceManagerApi.GATEWAY_DEVICE,
271 params: { 273 params: {
272 organizationId, 274 organizationId,
273 transportType, 275 transportType,
  276 + gatewayId,
274 }, 277 },
275 }); 278 });
276 }; 279 };