This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cyber-narrator-cn-ui/src/views/detections/DetectionSearch.vue

63 lines
1.4 KiB
Vue
Raw Normal View History

2022-02-14 22:22:31 +08:00
<template>
2022-02-15 23:27:55 +08:00
<div class="explorer-search explorer-search--show-list">
2022-02-14 22:22:31 +08:00
<div class="explorer-search__input-case explorer-search__input-case--question-mark-in-line">
<div class="explorer-search__input">
<advanced-search
ref="search"
:column-list="columnList"
:operator-list="operatorList"
:connection-list="connectionList"
:full-text="true"
class="advanced-search--show-list"
@search="search"
></advanced-search>
</div>
<div class="search-symbol-inline">
<i class="cn-icon cn-icon-help"></i>
</div>
</div>
</div>
</template>
<script>
import AdvancedSearch from '@/components/advancedSearch/Index'
export default {
name: 'DetectionSearch',
components: {
AdvancedSearch
},
data () {
return {
2022-02-15 23:27:55 +08:00
columnList: [
{
name: 'event_severity',
type: 'string',
label: 'Event severity'
},
{
name: 'security_type',
type: 'string',
label: 'Security type'
}
],
operatorList: ['=', '!=', '>', '<', '>=', '<='/*, 'IN', 'NOT IN', 'LIKE', 'NOT LIKE'*/],
connectionList: [
{
value: 'AND',
label: 'AND'
},
{
value: 'OR',
label: 'OR'
}
]
2022-02-14 22:22:31 +08:00
}
},
methods: {
search () {
}
}
}
</script>