1. 选择网关参数接口传参增加 deviceId 2. 修正参数验证接口传参格式
@@ -375,7 +375,9 @@ export const deviceGatewayUpdate = async (equipmentUpdateForm: EquipmentUpdateFo
export const postParameterVerification = async (deviceId: number) => {
const data = await request<ParameterVerification[]>(apiBiz('/protocolParamVerify/list'), {
method: 'POST',
- body: JSON.stringify(deviceId),
+ body: JSON.stringify({
+ deviceId,
+ }),
});
return data;
};
@@ -1309,6 +1309,7 @@ export interface DeviceGateways {
}
export interface DeviceParamGroupRels {
+ deviceId: number;
protocolParamId: number;
paramGroupName: string;
paramType: number;
@@ -651,6 +651,7 @@ const finish = async () => {
linkId,
deviceParamGroupRels.push({
protocolParamId: id,
paramGroupName: groupName,
paramType: 1,