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: [
{
value: 'AND',

View File

@@ -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

View File

@@ -23,8 +23,8 @@
</div>
<div class="foot__item">
<span @click="search">{{$t('overall.explore')}}</span>
<el-divider direction="vertical"></el-divider>
<span>{{$t('overall.help')}}</span>
<!-- <el-divider direction="vertical"></el-divider>
<span>{{$t('overall.help')}}</span>-->
</div>
<transition name="el-zoom-in-top">
<div class="search__history" v-show="showHistory">
@@ -36,7 +36,7 @@
</div>
<div class="clear-all">
<span @click="clearHistory" v-if="!$_.isEmpty(history)">{{$t('overall.clear')}}</span>
<div v-else>暂无记录</div>
<div v-else>{{$t('overall.noRecords')}}</div>
</div>
</div>
</transition>
@@ -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',