fix: 实体详情loading 判断调整
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -274,6 +274,8 @@ export default {
|
||||
})
|
||||
}
|
||||
this.loading = false
|
||||
} else {
|
||||
this.loading = false
|
||||
}
|
||||
}).finally(() => {
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user