|
|
@ -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); |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|