diff --git a/src/views/detections/detectionPolicies/PolicyFilter.vue b/src/views/detections/detectionPolicies/PolicyFilter.vue
index c27d8ed8..1c71aee8 100644
--- a/src/views/detections/detectionPolicies/PolicyFilter.vue
+++ b/src/views/detections/detectionPolicies/PolicyFilter.vue
@@ -31,7 +31,7 @@
- {{ item.label }}
+ {{ item.name }}
@@ -94,13 +94,7 @@ export default {
}
if (data.eventTypeList) {
- this.eventTypeList = []
- data.eventTypeList.forEach(item => {
- const obj = detectionUnitList.eventTypeList.find(d => d.value === item.name)
- if (obj) {
- this.eventTypeList.push({ ...item, label: this.$t(obj.label) })
- }
- })
+ this.eventTypeList = data.eventTypeList
} else {
this.eventTypeList = []
}
diff --git a/src/views/detections/detectionPolicies/PolicyTable.vue b/src/views/detections/detectionPolicies/PolicyTable.vue
index 1a9b1482..fb7d1474 100644
--- a/src/views/detections/detectionPolicies/PolicyTable.vue
+++ b/src/views/detections/detectionPolicies/PolicyTable.vue
@@ -56,9 +56,6 @@
{{ changeCategory(scope.row[item.prop]) }}
-
- {{ changeEventType(scope.row[item.prop]) }}
-
{{ scope.row[item.prop] }}
@@ -181,16 +178,6 @@ export default {
}
return label
}
- },
- changeEventType (value) {
- if (value) {
- const obj = detectionUnitList.eventTypeList.find(d => d.value === value)
- let label = value
- if (obj) {
- label = this.$t(obj.label)
- }
- return label
- }
}
}
}