fix: 实体详情loading 判断调整

This commit is contained in:
@changcode
2022-04-28 11:24:04 +08:00
parent 31ef8a276b
commit 8eb26abe10
4 changed files with 19 additions and 1 deletions

View File

@@ -400,7 +400,7 @@ export default {
const dateRangeValue = 60
const { startTime, endTime } = getNowTime(dateRangeValue)
const chartTimeFilter = ref({ startTime, endTime, dateRangeValue })
let table = ref( '')
const table = ref('')
if (isBasicTable(props.chartInfo.type)) {
table.value = {
pageSize: chartTableDefaultPageSize,

View File

@@ -468,6 +468,8 @@ export default {
}
}
this.loadingLeft = false
} else {
this.loadingLeft = false
}
})
},
@@ -520,6 +522,8 @@ export default {
if (response.code === 200) {
this.entityAppTotal = response.data.result
this.loading = false
} else {
this.loading = false
}
})
get(api.entityTotal, { entityType: 'domain' }).then(response => {
@@ -527,6 +531,8 @@ export default {
if (response.code === 200) {
this.entityDomainTotal = response.data.result
this.loading = false
} else {
this.loading = false
}
})
get(api.entityTotal, { entityType: 'ip' }).then(response => {
@@ -534,6 +540,8 @@ export default {
if (response.code === 200) {
this.entityIpTotal = response.data.result
this.loading = false
} else {
this.loading = false
}
})
// New

View File

@@ -143,6 +143,14 @@ export default {
} else if (this.entityName === 'domain') {
this.loadingDomain = false
}
} else {
if (this.entityName === 'app') {
this.loadingApp = false
} else if (this.entityName === 'ip') {
this.loadingIp = false
} else if (this.entityName === 'domain') {
this.loadingDomain = false
}
}
}).finally(() => {
setTimeout(() => {

View File

@@ -274,6 +274,8 @@ export default {
})
}
this.loading = false
} else {
this.loading = false
}
}).finally(() => {
setTimeout(() => {