diff --git a/src/views/model/alert/deviceparamalert.vue b/src/views/model/alert/deviceparamalert.vue index 5c5c242..c5c369f 100644 --- a/src/views/model/alert/deviceparamalert.vue +++ b/src/views/model/alert/deviceparamalert.vue @@ -692,7 +692,7 @@ function getModelListSwitch(row){ if(response.data && response.data.length>0){ formPolicy.value.statusValue = response.data[0].statusValue; formPolicy.value.statusType = response.data[0].statusType; - formPolicy.value.methodIds = response.data[0].methodIds.split(','); + formPolicy.value.methodIds = response.data[0].methodIds.split(',').map(Number); formPolicy.value.boolValue = response.data[0].boolValue; formPolicy.value.alertId = row.id; formPolicy.value.deviceId = row.deviceUuid; @@ -741,7 +741,7 @@ function getModelList(row){ element.id = item.id; element.statusValue = item.statusValue; element.statusType = item.statusType; - element.methodIds = item.methodIds.split(','); + element.methodIds = item.methodIds.split(',').map(Number); element.operator = item.operator; element.sort = item.sortId; proxy.$refs.policyTable.toggleRowSelection(element,true);