From 70af2a10bacc443fe347fb0dc697f04fde4e813d Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 7 Jun 2023 15:58:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9E=E4=BD=93=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/detections/DetectionSearch.vue | 2 +- src/views/entityExplorer/EntityExplorer.vue | 5 ++++- src/views/entityExplorer/search/ExplorerSearch.vue | 8 ++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/detections/DetectionSearch.vue b/src/views/detections/DetectionSearch.vue index e3283ff7..1384ee8e 100644 --- a/src/views/detections/DetectionSearch.vue +++ b/src/views/detections/DetectionSearch.vue @@ -93,7 +93,7 @@ export default { } ] }, - operatorList: ['=', '!=', '>', '<', '>=', '<=', 'IN', 'NOT IN', 'LIKE', 'NOT LIKE'], + operatorList: ['=', '!=', /* '>', '<', '>=', '<=', */'IN', 'NOT IN', 'LIKE', 'NOT LIKE'], connectionList: [ { value: 'AND', diff --git a/src/views/entityExplorer/EntityExplorer.vue b/src/views/entityExplorer/EntityExplorer.vue index 98358c53..412806ec 100644 --- a/src/views/entityExplorer/EntityExplorer.vue +++ b/src/views/entityExplorer/EntityExplorer.vue @@ -534,7 +534,7 @@ export default { } this.loadingLeft = true get(api.entityFilter, queryParams).then(response => { - if (response.data && response.data.result) { + if (response.code === 200 && response.data && response.data.result) { switch (params.entityType) { case 'ip': { this.filterData[0].data.forEach(d => { @@ -601,6 +601,9 @@ export default { this.$nextTick(() => { this.listData = response.data.result }) + } else { + console.error(response.message) + this.$message.error(response.message) } }).finally(() => { this.listLoading = false diff --git a/src/views/entityExplorer/search/ExplorerSearch.vue b/src/views/entityExplorer/search/ExplorerSearch.vue index 4c1df3cf..37ca7d82 100644 --- a/src/views/entityExplorer/search/ExplorerSearch.vue +++ b/src/views/entityExplorer/search/ExplorerSearch.vue @@ -23,8 +23,8 @@
{{$t('overall.explore')}} - - {{$t('overall.help')}} +
@@ -36,7 +36,7 @@
{{$t('overall.clear')}} -
暂无记录
+
{{$t('overall.noRecords')}}
@@ -239,7 +239,7 @@ export default { label: 'APP.Technology' } ], - operatorList: ['=', '!=', '>', '<', '>=', '<=', 'IN', 'NOT IN', 'LIKE', 'NOT LIKE'], + operatorList: ['=', '!=', /* '>', '<', '>=', '<=', */'IN', 'NOT IN', 'LIKE', 'NOT LIKE'], connectionList: [ { value: 'AND',