fix: 实体详情loading 判断调整
This commit is contained in:
@@ -400,7 +400,7 @@ export default {
|
|||||||
const dateRangeValue = 60
|
const dateRangeValue = 60
|
||||||
const { startTime, endTime } = getNowTime(dateRangeValue)
|
const { startTime, endTime } = getNowTime(dateRangeValue)
|
||||||
const chartTimeFilter = ref({ startTime, endTime, dateRangeValue })
|
const chartTimeFilter = ref({ startTime, endTime, dateRangeValue })
|
||||||
let table = ref( '')
|
const table = ref('')
|
||||||
if (isBasicTable(props.chartInfo.type)) {
|
if (isBasicTable(props.chartInfo.type)) {
|
||||||
table.value = {
|
table.value = {
|
||||||
pageSize: chartTableDefaultPageSize,
|
pageSize: chartTableDefaultPageSize,
|
||||||
|
|||||||
@@ -468,6 +468,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.loadingLeft = false
|
this.loadingLeft = false
|
||||||
|
} else {
|
||||||
|
this.loadingLeft = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -520,6 +522,8 @@ export default {
|
|||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.entityAppTotal = response.data.result
|
this.entityAppTotal = response.data.result
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
get(api.entityTotal, { entityType: 'domain' }).then(response => {
|
get(api.entityTotal, { entityType: 'domain' }).then(response => {
|
||||||
@@ -527,6 +531,8 @@ export default {
|
|||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.entityDomainTotal = response.data.result
|
this.entityDomainTotal = response.data.result
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
get(api.entityTotal, { entityType: 'ip' }).then(response => {
|
get(api.entityTotal, { entityType: 'ip' }).then(response => {
|
||||||
@@ -534,6 +540,8 @@ export default {
|
|||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.entityIpTotal = response.data.result
|
this.entityIpTotal = response.data.result
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// New
|
// New
|
||||||
|
|||||||
@@ -143,6 +143,14 @@ export default {
|
|||||||
} else if (this.entityName === 'domain') {
|
} else if (this.entityName === 'domain') {
|
||||||
this.loadingDomain = false
|
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(() => {
|
}).finally(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -274,6 +274,8 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user