CN-1391 fix: Detection列表按新版设计更新接口和样式

This commit is contained in:
刘洪洪
2023-10-20 15:45:11 +08:00
parent 48b3e2aebd
commit 0f52bd5362
11 changed files with 814 additions and 364 deletions

View File

@@ -5,16 +5,16 @@
<advanced-search
ref="search"
:column-list="columnList[pageType]"
:operator-list="operatorList"
:connection-list="connectionList"
:full-text="false"
class="advanced-search--show-list"
:full-text="true"
:show-list="showList"
@search="search"
></advanced-search>
</div>
<div class="search-symbol-inline">
<i class="cn-icon cn-icon-help"></i>
</div>
<!-- <div class="search-symbol-inline">-->
<!-- <i class="cn-icon cn-icon-help"></i>-->
<!-- </div>-->
</div>
</div>
</template>
@@ -22,6 +22,7 @@
<script>
import AdvancedSearch from '@/components/advancedSearch/Index'
import { humpToLine } from '@/utils/tools'
import { schemaDetectionSecurity } from '@/utils/static-data'
export default {
name: 'DetectionSearch',
props: {
@@ -33,74 +34,7 @@ export default {
data () {
return {
columnList: {
securityEvent: [
{
name: 'event_severity',
type: 'string',
// label: 'Event severity',
label: 'event_severity',
doc: {
constraints: {
operator_functions: '=,in'
}
}
},
{
name: 'security_type',
type: 'string',
// label: 'Security type',
label: 'security_type',
doc: {
constraints: {
operator_functions: '=,in'
}
}
},
{
name: 'victim_ip',
type: 'string',
// label: 'Victim IP'
label: 'victim_ip',
doc: {
constraints: {
operator_functions: '=,in'
}
}
},
{
name: 'victim_location_country',
type: 'string',
// label: 'Victim location'
label: 'victim_location_country',
doc: {
constraints: {
operator_functions: '=,in'
}
}
},
{
name: 'offender_ip',
type: 'string',
// label: 'Offender IP'
label: 'offender_ip',
doc: {
constraints: {
operator_functions: '=,in'
}
}
},
{
name: 'offender_location_country',
type: 'string',
// label: 'Offender location'
label: 'offender_location_country',
doc: {
constraints: {
operator_functions: '=,in'
}
}
}
],
securityEvent: schemaDetectionSecurity,
performanceEvent: [
{
name: 'event_severity',
@@ -113,17 +47,6 @@ export default {
}
}
},
{
name: 'event_type',
type: 'string',
// label: 'Event type'
label: 'event_type',
doc: {
constraints: {
operator_functions: '=,in'
}
}
},
{
name: 'app_name',
type: 'string',
@@ -169,7 +92,8 @@ export default {
value: 'OR',
label: 'OR'
}
]
],
showList: true
}
},
emits: ['search'],