Browse Source

告警新增等级名称字段处理

develop
ljlong_2630 1 year ago
parent
commit
1d701f2ca5
  1. 21
      src/views/model/alert/deviceparamalert.vue

21
src/views/model/alert/deviceparamalert.vue

@ -1003,7 +1003,26 @@ function computeDelPolicy() {
policyParams.value = policyParams.value.filter(element=>{
return item.id === element.policyId
})
deletePolicyRows.value.push(item);
let policyParam = {};
policyParam.id = item.id;
policyParam.deviceId = policyDeviceUuid.value;
policyParam.alertId = policyAlertId.value;
if(paramTypeValue.value == '3'){
policyParam.floatValue = item.value;
}else if(paramTypeValue.value == '2'){
policyParam.stringValue = item.value;
}else if(paramTypeValue.value == '1'){
policyParam.intValue = item.value;
}
policyParam.level = item.level;
policyParam.alertModelId = item.id;
policyParam.name = item.name;
policyParam.statusValue = item.statusValue;
policyParam.statusType = item.statusType;
policyParam.methodIds = item.methodIds?.join(',');
policyParam.operator = item.operator;
policyParam.sortId = item.sort;
deletePolicyRows.value.push(policyParam);
}
})
}

Loading…
Cancel
Save