完善设备数据查询
This commit is contained in:
parent
598f0d8399
commit
6563b24045
@ -165,9 +165,9 @@ const gridOptions: VxeGridProps<any> = {
|
|||||||
? Number(deviceTypeValue)
|
? Number(deviceTypeValue)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
const ioTDataTypeValue = formValues.IoTDataType;
|
const ioTDataTypeValue = formValues.IoTDataType;
|
||||||
|
|
||||||
console.log('=== API调用开始 ===2', ioTDataTypeValue);
|
console.log('=== API调用开始 ===2', ioTDataTypeValue);
|
||||||
|
|
||||||
// 处理DeviceId,当设备类型为集中器(10)时,使用focusId
|
// 处理DeviceId,当设备类型为集中器(10)时,使用focusId
|
||||||
let finalDeviceId = 0;
|
let finalDeviceId = 0;
|
||||||
@ -184,8 +184,8 @@ const gridOptions: VxeGridProps<any> = {
|
|||||||
pageSize: page.pageSize,
|
pageSize: page.pageSize,
|
||||||
// 优先使用表单中的值,如果没有则使用路由参数
|
// 优先使用表单中的值,如果没有则使用路由参数
|
||||||
DeviceType: deviceTypeNumber,
|
DeviceType: deviceTypeNumber,
|
||||||
DeviceId: finalDeviceId,
|
DeviceId: finalDeviceId.toString(),
|
||||||
FocusAddress: formValues.FocusAddress || FocusAddress,
|
FocusAddress: deviceInfo.focusAddress,
|
||||||
// 添加其他表单参数
|
// 添加其他表单参数
|
||||||
SystemName: formValues.SystemName,
|
SystemName: formValues.SystemName,
|
||||||
IoTDataType: ioTDataTypeValue,
|
IoTDataType: ioTDataTypeValue,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user