fix: 实体浏览器增加错误提示

This commit is contained in:
chenjinsong
2023-06-07 15:58:59 +08:00
parent d7bd6e71fb
commit 70af2a10ba
3 changed files with 9 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ export default {
} }
] ]
}, },
operatorList: ['=', '!=', '>', '<', '>=', '<=', 'IN', 'NOT IN', 'LIKE', 'NOT LIKE'], operatorList: ['=', '!=', /* '>', '<', '>=', '<=', */'IN', 'NOT IN', 'LIKE', 'NOT LIKE'],
connectionList: [ connectionList: [
{ {
value: 'AND', value: 'AND',

View File

@@ -534,7 +534,7 @@ export default {
} }
this.loadingLeft = true this.loadingLeft = true
get(api.entityFilter, queryParams).then(response => { get(api.entityFilter, queryParams).then(response => {
if (response.data && response.data.result) { if (response.code === 200 && response.data && response.data.result) {
switch (params.entityType) { switch (params.entityType) {
case 'ip': { case 'ip': {
this.filterData[0].data.forEach(d => { this.filterData[0].data.forEach(d => {
@@ -601,6 +601,9 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.listData = response.data.result this.listData = response.data.result
}) })
} else {
console.error(response.message)
this.$message.error(response.message)
} }
}).finally(() => { }).finally(() => {
this.listLoading = false this.listLoading = false

View File

@@ -23,8 +23,8 @@
</div> </div>
<div class="foot__item"> <div class="foot__item">
<span @click="search">{{$t('overall.explore')}}</span> <span @click="search">{{$t('overall.explore')}}</span>
<el-divider direction="vertical"></el-divider> <!-- <el-divider direction="vertical"></el-divider>
<span>{{$t('overall.help')}}</span> <span>{{$t('overall.help')}}</span>-->
</div> </div>
<transition name="el-zoom-in-top"> <transition name="el-zoom-in-top">
<div class="search__history" v-show="showHistory"> <div class="search__history" v-show="showHistory">
@@ -36,7 +36,7 @@
</div> </div>
<div class="clear-all"> <div class="clear-all">
<span @click="clearHistory" v-if="!$_.isEmpty(history)">{{$t('overall.clear')}}</span> <span @click="clearHistory" v-if="!$_.isEmpty(history)">{{$t('overall.clear')}}</span>
<div v-else>暂无记录</div> <div v-else>{{$t('overall.noRecords')}}</div>
</div> </div>
</div> </div>
</transition> </transition>
@@ -239,7 +239,7 @@ export default {
label: 'APP.Technology' label: 'APP.Technology'
} }
], ],
operatorList: ['=', '!=', '>', '<', '>=', '<=', 'IN', 'NOT IN', 'LIKE', 'NOT LIKE'], operatorList: ['=', '!=', /* '>', '<', '>=', '<=', */'IN', 'NOT IN', 'LIKE', 'NOT LIKE'],
connectionList: [ connectionList: [
{ {
value: 'AND', value: 'AND',